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