Skip to content

Commit

Permalink
support llama3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-goliaro committed Sep 29, 2024
1 parent 7848871 commit 6bc1eab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/flexflow/serve/models/llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,7 @@ def convert_hf_model(model, dst_folder):
for name, params in model.named_parameters():
name = FlexFlowLLAMA.convert_hf_weight_name(name)
params.detach().cpu().numpy().tofile(f"{dst_folder}/{name}")
# LM head weight
model.lm_head.weight.detach().cpu().numpy().tofile(
os.path.join(dst_folder, "lm_head.weight")
)

0 comments on commit 6bc1eab

Please sign in to comment.