Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions engram_demo_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def forward(self,input_ids,hidden_states):

for idx, layer in enumerate(LLM):
if idx == 0:
hidden_states = LLM[0](input_ids)
hidden_states = layer(input_ids)
## mock hyper-connection
hidden_states = hidden_states.unsqueeze(2).expand(-1, -1, backbone_config.hc_mult, -1)
elif idx == len(LLM)-1:
Expand All @@ -420,4 +420,4 @@ def forward(self,input_ids,hidden_states):

print("✅ Forward Complete!")
print(f"{input_ids.shape=}\n{output.shape=}")