Skip to content

Commit

Permalink
[upd] fix zero shot
Browse files Browse the repository at this point in the history
  • Loading branch information
cylinbao committed Apr 11, 2024
1 parent 7dafad0 commit 0a4da67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def skip(*args, **kwargs):
param.requires_grad = False

if args.multigpu:
if "llama" in args.model.lower():
if ("llama" in args.model.lower()) or ("mixtral" in args.model.lower()):
map_layers_to_multi_gpus(lm.model.model.layers)
input_device = lm.model.model.layers[0].device
output_device = lm.model.model.layers[-1].device
Expand Down

0 comments on commit 0a4da67

Please sign in to comment.