ollama/convert
Patrick Devine 2717dce6fe
convert: convert bf16 vision weights to fp16 (#12324)
This change moves back to converting bf16 vision weights to fp16,
specifically if they start with the name "v." (such as v.blk.0.attn_k.weight).

This fixes a bug where converted images are failing because they are trying
to call `im2col` which doesn't have a bf16 kernel in ggml.
2025-09-17 17:43:17 -07:00
..
sentencepiece
testdata
convert.go gpt-oss (#11672) 2025-08-05 12:21:16 -07:00
convert_bert.go model: implement bert in ollama engine (#9080) 2025-09-15 15:35:59 -07:00
convert_commandr.go
convert_gemma.go
convert_gemma2.go
convert_gemma2_adapter.go
convert_gemma3.go
convert_gemma3n.go chore: cleanup comments + unused vars (#11225) 2025-06-27 11:45:33 -07:00
convert_gptoss.go convert(gptoss): mxfp4 to ggml layout to avoid jit conversion (#12018) 2025-08-26 16:41:02 -07:00
convert_llama.go
convert_llama4.go
convert_llama_adapter.go
convert_mistral.go
convert_mixtral.go convert: utility for merging tensors (#11069) 2025-06-20 11:12:01 -07:00
convert_mllama.go fix: mllama quality (#10807) 2025-05-22 11:30:49 -07:00
convert_phi3.go
convert_qwen2.go
convert_qwen25vl.go feat: uneven splits (#11048) 2025-06-11 12:10:54 -07:00
convert_test.go s#x/exp/maps#maps# (#11506) 2025-07-23 13:23:32 -07:00
reader.go convert(gptoss): mxfp4 to ggml layout to avoid jit conversion (#12018) 2025-08-26 16:41:02 -07:00
reader_safetensors.go convert: convert bf16 vision weights to fp16 (#12324) 2025-09-17 17:43:17 -07:00
reader_test.go convert: convert bf16 vision weights to fp16 (#12324) 2025-09-17 17:43:17 -07:00
reader_torch.go
sentencepiece_model.proto
tensor.go convert: utility for merging tensors (#11069) 2025-06-20 11:12:01 -07:00
tensor_test.go gpt-oss (#11672) 2025-08-05 12:21:16 -07:00
tokenizer.go s#x/exp/maps#maps# (#11506) 2025-07-23 13:23:32 -07:00
tokenizer_spm.go
tokenizer_test.go model: handle multiple eos tokens (#10577) 2025-05-16 13:40:23 -07:00