mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-02 01:28:31 +00:00
[CI] fix typo with tests/ etc. (#3727)
* fix spelling error with examples/comminity/ * fix spelling error with tests/ * fix some spelling error with tests/ colossalai/ etc. * fix spelling error with tests/ etc. date:2023.5.10
This commit is contained in:
@@ -64,7 +64,7 @@ class MyModule(torch.nn.Module):
|
||||
|
||||
|
||||
def _run_act_ckpt_codegen(rank, world_size, port):
|
||||
# launch colossalai to make sure we could execute colossalai.utils.checkpoint currectly
|
||||
# launch colossalai to make sure we could execute colossalai.utils.checkpoint currently
|
||||
colossalai.launch(config={}, rank=rank, world_size=world_size, host='localhost', port=port, backend='nccl')
|
||||
|
||||
# build model and run forward
|
||||
@@ -122,7 +122,7 @@ def test_act_ckpt_codegen():
|
||||
|
||||
|
||||
def _run_act_ckpt_python_code_torch11(rank, world_size, port):
|
||||
# launch colossalai to make sure we could execute colossalai.utils.checkpoint currectly
|
||||
# launch colossalai to make sure we could execute colossalai.utils.checkpoint currently
|
||||
colossalai.launch(config={}, rank=rank, world_size=world_size, host='localhost', port=port, backend='nccl')
|
||||
|
||||
# build model and run forward
|
||||
|
@@ -32,7 +32,7 @@ class MyModule(torch.nn.Module):
|
||||
|
||||
|
||||
def _run_act_ckpt_codegen(rank, world_size, port):
|
||||
# launch colossalai to make sure we could execute colossalai.utils.checkpoint currectly
|
||||
# launch colossalai to make sure we could execute colossalai.utils.checkpoint currently
|
||||
colossalai.launch(config={}, rank=rank, world_size=world_size, host='localhost', port=port, backend='nccl')
|
||||
|
||||
# build model and run forward
|
||||
@@ -89,7 +89,7 @@ def test_act_ckpt_codegen():
|
||||
|
||||
|
||||
def _run_act_ckpt_python_code_torch11(rank, world_size, port):
|
||||
# launch colossalai to make sure we could execute colossalai.utils.checkpoint currectly
|
||||
# launch colossalai to make sure we could execute colossalai.utils.checkpoint currently
|
||||
colossalai.launch(config={}, rank=rank, world_size=world_size, host='localhost', port=port, backend='nccl')
|
||||
|
||||
# build model and run forward
|
||||
|
@@ -56,7 +56,7 @@ def _test_fwd_and_bwd(model: torch.nn.Module, gm: ColoGraphModule, data: torch.T
|
||||
fx_out = gm(data)
|
||||
assert torch.equal(non_fx_out, fx_out), "fx_out doesn't comply with original output"
|
||||
|
||||
# test barckward
|
||||
# test backward
|
||||
loss0 = non_fx_out.sum()
|
||||
loss0.backward()
|
||||
loss1 = fx_out.sum()
|
||||
@@ -65,7 +65,7 @@ def _test_fwd_and_bwd(model: torch.nn.Module, gm: ColoGraphModule, data: torch.T
|
||||
|
||||
|
||||
def _run_offload_codegen(rank, world_size, port):
|
||||
# launch colossalai to make sure we could execute colossalai.utils.checkpoint currectly
|
||||
# launch colossalai to make sure we could execute colossalai.utils.checkpoint currently
|
||||
colossalai.launch(config={}, rank=rank, world_size=world_size, host='localhost', port=port, backend='nccl')
|
||||
|
||||
# build model and input
|
||||
@@ -120,7 +120,7 @@ def test_act_ckpt_codegen():
|
||||
|
||||
|
||||
def _run_offload_codegen_torch11(rank, world_size, port):
|
||||
# launch colossalai to make sure we could execute colossalai.utils.checkpoint currectly
|
||||
# launch colossalai to make sure we could execute colossalai.utils.checkpoint currently
|
||||
colossalai.launch(config={}, rank=rank, world_size=world_size, host='localhost', port=port, backend='nccl')
|
||||
|
||||
# build model and input
|
||||
|
Reference in New Issue
Block a user