mirror of
				https://github.com/ml-explore/mlx-examples.git
				synced 2025-10-31 10:58:07 +08:00 
			
		
		
		
	Update convert.py
Docs are right, however, the code has a typo.
This commit is contained in:
		 Merrick Christensen
					Merrick Christensen
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							9a02dce35c
						
					
				
				
					commit
					2206e8f7d9
				
			| @@ -16,7 +16,7 @@ if __name__ == "__main__": | ||||
|     ) | ||||
|     args = parser.parse_args() | ||||
|     model_path = Path(args.model_path) | ||||
|     state = torch.load(str(model_path / "consolidated.00.pt")) | ||||
|     state = torch.load(str(model_path / "consolidated.00.pth")) | ||||
|     np.savez( | ||||
|         str(model_path / "weights.npz"), | ||||
|         **{k: v.to(torch.float16).numpy() for k, v in state.items()}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user