hermaeuswaelon/fl33t/lfm2-vl-gguf-conversion
Claude Code and agent skill by hermaeuswaelon/fl33t
- community
Checking that the SKILL.md file is still in the repository.
Convert LFM2-VL fine-tune safetensors to dual GGUF (text + mmproj) for llama-server
Install
npx vskill@latest install hermaeuswaelon/fl33t/lfm2-vl-gguf-conversionSKILL.md
The same SKILL.md was published earlier as hermaeuswaelon/fl33t/lfm2-vl-gguf-conversion.
LFM2-VL GGUF Conversion
Convert fine-tuned LFM2-VL safetensors (vision language model) to dual GGUF format for llama-server deployment.
Architecture
LFM2-VL = SigLIP2 vision encoder (12/24 layers, 768 dim) + projector (layer_norm→linear_1→linear_2) + LFM2 text backbone (16 layers, 1024 dim, shortconv)
Full safetensors: 352 tensors (~1.7 GB FP32) = 203 vision+projector + 149 text. GGUF conversion produces two files:
- Text GGUF: 149 text tensors only (F16 → quantize to Q4_K_M)
- Mmproj GGUF: 203 vision+projector tensors only (Q8_0)
llama-server uses: --model text-gguf --mmproj mmproj-gguf
Conversion
1. Text GGUF (text backbone only)
2. Mmproj GGUF (vision encoder + projector)
3. Deploy
Tensor Naming
Fine-tune safetensors uses model.vision_tower.vision_model.* and model.multi_modal_projector.* prefixes. LFM2VLModel.filter_tensors strips the model. prefix before MMPROJ tensor mapping:
multi_modal_projector.linear_{bid}→mm.{bid}(V_MMPROJ)multi_modal_projector.layer_norm→mm.input_norm(V_MM_INP_NORM)vision_tower.vision_model.*→v.*(V_ENC_*)
Pitfalls
- DO NOT use
--typeflag — it's--outtypein convert_hf_to_gguf.py - Default python3 is 3.14 which lacks gguf/safetensors. Use
/usr/bin/python3.13for conversion - Quantize syntax:
llama-quantize input.gguf output.gguf TYPE(output BEFORE type) - Old mmproj incompatible if projector dimensions differ — always regenerate mmproj from fine-tune
- `get_model_architecture()` bug: For TEXT mode,
text_config.architecturesoverrides top-level VL arch. This is intentional — the text-only conversion should use LFM2Model. The --mmproj path is NOT affected (model_type != TEXT check)
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingprofile/skills/dev/lfm2-vl-gguf-conversion/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hermaeuswaelon/fl33t/lfm2-vl-gguf-conversion)