File /usr/local/lib/python3.8/dist-packages/safetensors/torch.py:404, in _tobytes(tensor, name)
396 raise ValueError(
397 f"You are trying to save a non contiguous tensor: {name} which is not allowed. It either means you"
398 " are trying to save tensors which are reference of each other in which case it's recommended to save"
399 " only the full tensors, and reslice at load time, or simply call .contiguous() on your tensor to"
400 " pack it before saving."
401 )
402 if tensor.device.type != "cpu":
403 # Moving tensor to cpu before saving
--> 404 tensor = tensor.to("cpu")
406 import ctypes
408 import numpy as np
NotImplementedError: Cannot copy out of meta tensor; no data!
使用codefuse-deepseek-33B lora微调,执行ds_single_launch.sh 正常微调完后,合并模型报错
File /usr/local/lib/python3.8/dist-packages/safetensors/torch.py:404, in _tobytes(tensor, name) 396 raise ValueError( 397 f"You are trying to save a non contiguous tensor:
{name}
which is not allowed. It either means you" 398 " are trying to save tensors which are reference of each other in which case it's recommended to save" 399 " only the full tensors, and reslice at load time, or simply call.contiguous()
on your tensor to" 400 " pack it before saving." 401 ) 402 if tensor.device.type != "cpu": 403 # Moving tensor to cpu before saving --> 404 tensor = tensor.to("cpu") 406 import ctypes 408 import numpy as npNotImplementedError: Cannot copy out of meta tensor; no data!