Skip to content

Commit

Permalink
Fix missing embed_tokens (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
casper-hansen authored Dec 6, 2024
1 parent f2171f3 commit 8c5dcc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions awq/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ def forward(self, x):
max_shard_size=shard_size,
safe_serialization=safetensors,
force_contiguous=True,
shared_tensors_to_discard=self.model._tied_weights_keys,
)

@classmethod
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"accelerate",
"datasets>=2.20",
"zstandard",
"huggingface_hub @ git+https://github.com/huggingface/huggingface_hub@fix-discard-shared-tensors",
]

setup(
Expand Down

0 comments on commit 8c5dcc6

Please sign in to comment.