Skip to content

Commit

Permalink
bug correction
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiyueXu77 committed Nov 5, 2024
1 parent 8919757 commit 5ef5e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/advanced/llm_hf/src/hf_sft_peft_fl.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def evaluate(input_weights, mode):
out_param["model." + key] = out_param.pop(key).cpu()

# cast out_param to float32 preparing for communication
out_param = {k: v.to(torch.float16) for k, v in out_param.items()}
out_param = {k: v.to(torch.float32) for k, v in out_param.items()}

# construct trained FL model
output_model = flare.FLModel(
Expand Down

0 comments on commit 5ef5e90

Please sign in to comment.