Merge pull request #233 from huggingface/fix_sysntax

Fix sysntax error in PR 232
This commit is contained in:
Mandy Li 2024-10-15 14:33:21 -07:00 committed by GitHub
commit d07e7f4f62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -696,7 +696,7 @@ class CausalLM(Model):
if model.config.model_type in ["llama", "mistral", "starcoder2", "qwen2", "falcon"]:
if model.config.model_type not in ["falcon"]
if model.config.model_type not in ["falcon"]:
kwargs["attn_softmax_bf16"] = True
kwargs["trim_logits"] = True