Skip to content

Commit

Permalink
[Fix] Fix OOM
Browse files Browse the repository at this point in the history
  • Loading branch information
fanqiNO1 committed Sep 12, 2024
1 parent 081c8ca commit 1bf5745
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xtuner/tools/model_converters/pth_to_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def main():
else:
raise e
else:
cfg.model.llm.device_map = 'auto'
model = BUILDER.build(cfg.model)

backend = get_file_backend(args.pth_model)
Expand Down

0 comments on commit 1bf5745

Please sign in to comment.