./Pai-Megatron-Patch/megatron_patch/model/llava/clip_encoder.py:26: UserWarning: The cvcuda environment does not exist. Install cvcuda and use it
warnings.warn("The cvcuda environment does not exist. Install cvcuda and use it")
Traceback (most recent call last):
File "/home/ybZhang/miniconda3/envs/glm-m/lib/python3.8/site-packages/swift/cli/export.py", line 5, in <module>
export_main()
File "/home/ybZhang/miniconda3/envs/glm-m/lib/python3.8/site-packages/swift/utils/run_utils.py", line 32, in x_main
result = llm_x(args, **kwargs)
File "/home/ybZhang/miniconda3/envs/glm-m/lib/python3.8/site-packages/swift/llm/export.py", line 302, in llm_export
convert_hf_to_megatron(model, extra_args, args.torch_dtype)
File "/home/ybZhang/miniconda3/envs/glm-m/lib/python3.8/site-packages/swift/llm/megatron/convert.py", line 22, in convert_hf_to_megatron
mg_model = model_provider()
File "/home/ybZhang/miniconda3/envs/glm-m/lib/python3.8/site-packages/swift/llm/megatron/model.py", line 61, in model_provider
model = gpt_model_cls(
File "./Pai-Megatron-Patch/megatron_patch/model/qwen2/model.py", line 103, in __init__
self.decoder = TransformerBlock(
File "./Pai-Megatron-Patch/megatron_patch/model/qwen2/transformer_block.py", line 137, in __init__
) = get_cpu_offload_context(
TypeError: get_cpu_offload_context() missing 1 required positional argument: 'weight_offloading'