mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-05-19 13:50:01 +00:00
[fix] fix weight not close;
This commit is contained in:
parent
c18ef060cf
commit
203033ea16
@ -389,7 +389,8 @@ def test_zerobubble_pipeline_base(
|
||||
##########################
|
||||
# fwd & bwd
|
||||
output_base = model_base(input_base)
|
||||
loss_base = output_base.mean()
|
||||
# loss_base = output_base.mean()
|
||||
loss_base = criterion(output_base)
|
||||
loss_base.backward()
|
||||
print(f"After base fwd & bwd: {torch.cuda.memory_allocated()/1024**3 :.3f} GB;")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user