We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2171f3 commit 8c5dcc6Copy full SHA for 8c5dcc6
awq/models/base.py
@@ -309,6 +309,7 @@ def forward(self, x):
309
max_shard_size=shard_size,
310
safe_serialization=safetensors,
311
force_contiguous=True,
312
+ shared_tensors_to_discard=self.model._tied_weights_keys,
313
)
314
315
@classmethod
setup.py
@@ -42,6 +42,7 @@
42
"accelerate",
43
"datasets>=2.20",
44
"zstandard",
45
+ "huggingface_hub @ git+https://github.com/huggingface/huggingface_hub@fix-discard-shared-tensors",
46
]
47
48
setup(
0 commit comments