Skip to content

Commit

Permalink
new config
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmeda14960 committed Sep 11, 2024
1 parent b4fdf82 commit 0bfcf1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/levanter/models/llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ def hf_checkpoint_converter(self) -> HFCheckpointConverter["LlamaConfig"]: # ty

@classmethod
def from_hf_config(cls, hf_config: HfConfig):
print(f'\n hf_config: {hf_config}')
print(type(hf_config))
print(dir(hf_config))
return LlamaConfig(
seq_len=hf_config.max_position_embeddings,
hidden_dim=hf_config.hidden_size,
Expand Down

0 comments on commit 0bfcf1c

Please sign in to comment.