Skip to content

Commit

Permalink
g# This is a combination of 2 commits.
Browse files Browse the repository at this point in the history
[chat] fix gemini strategy

fox
  • Loading branch information
flybird11111 committed Sep 13, 2023
1 parent 23281b1 commit 81c662a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/Chat/coati/trainer/strategies/colossalai.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __init__(
warnings.warn(f'Stage 3 only supports fp16. Precision is set to fp16.')

# NOTE: dist should be initialized before calling get_current_device()
plugin_initializer = lambda: GeminiPlugin(chunk_init_device=get_current_device(),
plugin_initializer = lambda: GeminiPlugin(device=get_current_device(),
placement_policy=placement_policy,
precision='fp16',
pin_memory=pin_memory,
Expand Down

0 comments on commit 81c662a

Please sign in to comment.