mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 03:14:53 +00:00
Fix the OOM issue of Llama-4-Scout-17B-16E-Instruct
Signed-off-by: yuanwu <yuan.wu@intel.com>
This commit is contained in:
parent
f14044009a
commit
fb104d8b42
@ -143,6 +143,8 @@ class FlashLlamaAttention(torch.nn.Module):
|
||||
config.num_key_value_heads = getattr(
|
||||
config, "num_key_value_heads", config.num_attention_heads
|
||||
)
|
||||
|
||||
if config.model_type != "llama4_text":
|
||||
self.rotary_emb = PositionRotaryEmbedding.static(
|
||||
config=config,
|
||||
dim=self.head_size,
|
||||
|
Loading…
Reference in New Issue
Block a user