mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 20:04:52 +00:00
Fix.
This commit is contained in:
parent
be4d0be8c8
commit
fc7221369e
@ -189,7 +189,7 @@ class FlashLlamaAttention(torch.nn.Module):
|
||||
# config=config, prefix=f"{prefix}.rotary_emb", weights=weights
|
||||
# )
|
||||
self.rotary_emb = PositionRotaryEmbedding.static(
|
||||
config=config, dim=config.head_size, base=10000.0, device=weights.device
|
||||
config=config, dim=self.head_size, base=10000.0, device=weights.device
|
||||
)
|
||||
|
||||
self.softmax_scale = self.head_size**-0.5
|
||||
|
Loading…
Reference in New Issue
Block a user