Skip to content

Commit

Permalink
[hotfix] fix opt tutorial example
Browse files Browse the repository at this point in the history
  • Loading branch information
ver217 committed Aug 23, 2023
1 parent 9d02650 commit 846d8db
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/tutorial/opt/opt/run_clm.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,7 @@ def main():
PLACEMENT_POLICY = 'auto'
if version.parse(cai_version) >= version.parse("0.3.1"):
from colossalai.zero import GeminiDDP
model = GeminiDDP(model,
chunk_init_device=get_current_device(),
placement_policy=PLACEMENT_POLICY,
pin_memory=True)
model = GeminiDDP(model, offload_optim_frac=1.0, pin_memory=True)
elif version.parse(cai_version) > version.parse("0.1.10"):
try:
from colossalai.nn.parallel import GeminiDDP
Expand Down

0 comments on commit 846d8db

Please sign in to comment.