Unverified Commit 1dde34e0 authored by leegohi04517's avatar leegohi04517 Committed by GitHub
Browse files

GPTJConfig has no attribute rotary. (#532)

parent 6fc2a38b
......@@ -65,7 +65,7 @@ class GPTJAttention(nn.Module):
self.num_heads = self.total_num_heads // tp_world_size
scaling = self.head_size**-0.5
assert config.rotary
assert getattr(config, "rotary", True)
assert config.rotary_dim % 2 == 0
self.attn = PagedAttentionWithRoPE(self.num_heads, self.head_size,
scaling, config.rotary_dim)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment