fix: lint with ruff

This commit is contained in:
drbh 2024-12-23 14:39:55 +00:00
parent 575d97339c
commit 4c8f5cdc35

View File

@ -647,7 +647,7 @@ class FlashLlamaForCausalLM(torch.nn.Module):
) )
self.model = FlashLlamaModel(prefix, config, weights) self.model = FlashLlamaModel(prefix, config, weights)
if config.tie_word_embeddings: if config.tie_word_embeddings:
suffix = f"model.embed_tokens" suffix = "model.embed_tokens"
else: else:
suffix = "lm_head" suffix = "lm_head"