mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
No access to transformers config, only config_dict here.
This commit is contained in:
parent
5829b7821e
commit
c4b78bd214
@ -758,7 +758,7 @@ def get_model(
|
||||
trust_remote_code=trust_remote_code,
|
||||
lora_adapter_ids=lora_adapter_ids,
|
||||
# hidden_size / num_attention_heads is wrong in `google/gemma-2-9b-it`
|
||||
head_size=config.head_dim,
|
||||
head_size=config_dict["head_dim"],
|
||||
)
|
||||
elif sharded:
|
||||
raise NotImplementedError(FLASH_ATT_ERROR_MESSAGE.format("Sharded Gemma2"))
|
||||
|
Loading…
Reference in New Issue
Block a user