Skip to content

Commit 8c5dcc6

Browse files
Fix missing embed_tokens (#671)
1 parent f2171f3 commit 8c5dcc6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

awq/models/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ def forward(self, x):
309309
max_shard_size=shard_size,
310310
safe_serialization=safetensors,
311311
force_contiguous=True,
312+
shared_tensors_to_discard=self.model._tied_weights_keys,
312313
)
313314

314315
@classmethod

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"accelerate",
4343
"datasets>=2.20",
4444
"zstandard",
45+
"huggingface_hub @ git+https://github.com/huggingface/huggingface_hub@fix-discard-shared-tensors",
4546
]
4647

4748
setup(

0 commit comments

Comments
 (0)