Correct type annotation of llama.ModelArgs.num_key_value_heads (#827)

This commit is contained in:
Yi Wang 2024-06-10 14:47:31 -07:00 committed by GitHub
parent c5da302fc4
commit bb8227f181
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ class ModelArgs(BaseModelArgs):
num_attention_heads: int
rms_norm_eps: float
vocab_size: int
num_key_value_heads: int = None
num_key_value_heads: Optional[int] = None
attention_bias: bool = False
mlp_bias: bool = False
rope_theta: float = 10000