Views
No views yet
Qwen/Qwen3-VL-4B-Instruct in
PEFT and llama.cpp GGUF formats. Version 2 prioritizes Food-101 dish recognition
and adds experimental visible-ingredient and rough-gram output.adapter_model.safetensors: v2 PEFT weightsadapter_config.json: rank 8, alpha 16 PEFT configurationbeforeat-food-nutrition-vision-lora-v2-f16.gguf: v2 F16 llama.cpp adapterblend_metadata.json: reproducible v2 weight-interpolation metadatabeforeat-food-nutrition-vision-lora-f16.gguf: historical v1 GGUF releaseIdentify the dish in this image. Reply with only the exact Food-101 class name.Estimate the visible ingredients and their portions in grams. Reply only with a JSON array of objects using keys "name" and "grams".| Task | Evaluation | Result |
|---|---|---|
| Food-101 dish recognition | 500-image held-out set, strict | 438/500 (87.60%) |
| Food-101 dish recognition | Alias/near matching | 440/500 (88.00%) |
| Visible ingredients | Nutrition5k, 100 images | 44.51% mean recall |
| Matched ingredient portions | Nutrition5k, 100 images | 52.93% mean recall |
| Matched ingredient grams | Nutrition5k, 85 parsed rows | 43.34 g MAE |
0.25. Both inputs use the same rank, alpha, tensor names, and target
modules, producing a single 504-tensor LoRA adapter.816q_proj, k_proj, v_proj, o_proj, gate_proj,
up_proj, down_projQwen/Qwen3-VL-4B-InstructQwen3-VL-4B-Instruct-UD-Q4_K_XL.ggufunsloth/Qwen3-VL-4B-Instruct-GGUFmmproj-F16.gguf from the same base GGUF repository1.000fa7cb284cbf133fc426733bd64238a3588a33e50433065152 bytesac31fb420d91fd8a4149e694c4da540db6208889c53f86b383069a6422a01f621PYTHONPATH=tools/llama.cpp \
2python tools/llama.cpp/convert_lora_to_gguf.py \
3 adapters/qwen3vl4b_food_nutrition_blend_w025 \
4 --base models/Qwen3-VL-4B-Instruct-bf16-remapped \
5 --outfile adapters/qwen3vl4b_food_nutrition_blend_w025/beforeat-food-nutrition-vision-lora-v2-f16.gguf \
6 --outtype f16 \
7 --verbose1llama-mtmd-cli \
2 -m Qwen3-VL-4B-Instruct-UD-Q4_K_XL.gguf \
3 --mmproj mmproj-F16.gguf \
4 --image food.jpg \
5 --lora-scaled beforeat-food-nutrition-vision-lora-v2-f16.gguf:1.0 \
6 -p "Identify the dish in this image. Reply with only the exact Food-101 class name." \
7 --jinja --temp 0 -n 16 -c 4096 --image-min-tokens 1024--device none -ngl 0 --no-mmproj-offload --no-op-offload --no-kv-offload --fit off after the local
Metal command queue was unavailable. llama.cpp accepted all adapter tensors with
no missing, incompatible, or unexpected tensor errors. The Unsloth
UD-Q4_K_XL base and its existing mmproj-F16.gguf are compatible and reusable.| Expected | PyTorch/PEFT v2 | Base GGUF | GGUF + v2 LoRA |
|---|---|---|---|
| prime rib | prime rib | roast beef | prime rib |
| bread pudding | panna cotta | dessert | panna cotta |
| chocolate cake | chocolate mousse | Chocolate Cake | chocolate mousse |