mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
fix: lint with ruff
This commit is contained in:
parent
575d97339c
commit
4c8f5cdc35
@ -647,7 +647,7 @@ class FlashLlamaForCausalLM(torch.nn.Module):
|
||||
)
|
||||
self.model = FlashLlamaModel(prefix, config, weights)
|
||||
if config.tie_word_embeddings:
|
||||
suffix = f"model.embed_tokens"
|
||||
suffix = "model.embed_tokens"
|
||||
else:
|
||||
suffix = "lm_head"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user