Name and Version
llama.cpp$ git reset --hard
HEAD is now at deee238 vulkan: add GATED_DELTA_NET op support (#20334)
Operating systems
Linux
Which llama.cpp modules do you know to be affected?
Documentation/Github
Command line
python convert_lora_to_gguf.py ./Solo_qwen35_lora/checkpoint-123 --outfile ./20260312_qwen3.5_lora.gguf --base ./base/Solo_qwen35 --outtype bf16
Problem description & steps to reproduce
We trained lora with qwen3.5, want to convert lora weight(safetensors), when we convert with the command, the error message is:
INFO:lora-to-gguf:Exporting model...
Traceback (most recent call last):
File "/home/user/llama.cpp/convert_lora_to_gguf.py", line 492, in
model_instance.write()
File "/home/user/llama.cpp/convert_hf_to_gguf.py", line 852, in write
self.prepare_tensors()
File "/home/user/llama.cpp/convert_hf_to_gguf.py", line 4512, in prepare_tensors
super().prepare_tensors()
File "/home/user/llama.cpp/convert_hf_to_gguf.py", line 718, in prepare_tensors
for new_name, data_torch in (self.modify_tensors(data_torch, name, bid)):
File "/home/user/llama.cpp/convert_lora_to_gguf.py", line 449, in modify_tensors
dest = list(super().modify_tensors(data_torch, name, bid))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/llama.cpp/convert_hf_to_gguf.py", line 4979, in modify_tensors
data_torch = self._reorder_v_heads(data_torch, 0, num_k_heads, num_v_per_k, 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/llama.cpp/convert_hf_to_gguf.py", line 4952, in _reorder_v_heads
return tensor.permute(*perm).contiguous().reshape(*shape)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'LoraTorchTensor' object has no attribute 'contiguous'
we convert other model(qwen2.5, qwen3) before, it works fine, does anyone encounter same issue with qwen3.5 model?
First Bad Commit
No response
Relevant log output
No response
Name and Version
llama.cpp$ git reset --hard
HEAD is now at deee238 vulkan: add GATED_DELTA_NET op support (#20334)
Operating systems
Linux
Which llama.cpp modules do you know to be affected?
Documentation/Github
Command line
Problem description & steps to reproduce
We trained lora with qwen3.5, want to convert lora weight(safetensors), when we convert with the command, the error message is:
INFO:lora-to-gguf:Exporting model...
Traceback (most recent call last):
File "/home/user/llama.cpp/convert_lora_to_gguf.py", line 492, in
model_instance.write()
File "/home/user/llama.cpp/convert_hf_to_gguf.py", line 852, in write
self.prepare_tensors()
File "/home/user/llama.cpp/convert_hf_to_gguf.py", line 4512, in prepare_tensors
super().prepare_tensors()
File "/home/user/llama.cpp/convert_hf_to_gguf.py", line 718, in prepare_tensors
for new_name, data_torch in (self.modify_tensors(data_torch, name, bid)):
File "/home/user/llama.cpp/convert_lora_to_gguf.py", line 449, in modify_tensors
dest = list(super().modify_tensors(data_torch, name, bid))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/llama.cpp/convert_hf_to_gguf.py", line 4979, in modify_tensors
data_torch = self._reorder_v_heads(data_torch, 0, num_k_heads, num_v_per_k, 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/llama.cpp/convert_hf_to_gguf.py", line 4952, in _reorder_v_heads
return tensor.permute(*perm).contiguous().reshape(*shape)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'LoraTorchTensor' object has no attribute 'contiguous'
we convert other model(qwen2.5, qwen3) before, it works fine, does anyone encounter same issue with qwen3.5 model?
First Bad Commit
No response
Relevant log output
No response