Fix model loading & format code (#125)

This commit is contained in:
Lianmin Zheng authored and GitHub committed 2024-01-30 23:49:52 -08:00
1 parent 71b54eea7d
commit ad82bac6f5
3 files changed
+16 -6

No files matched your search

+5 -1
View File
@@ -351,7 +351,11 @@ class MixtralForCausalLM(nn.Module):
params_dict = dict(self.named_parameters())
for name, loaded_weight in hf_model_weights_iterator(
model_name_or_path, cache_dir, load_format, revision
model_name_or_path,
cache_dir,
load_format,
revision,
fall_back_to_pt=False,
):
if "rotary_emb.inv_freq" in name:
continue