LLaVA-OneVision-2 is an openly released multimodal AI model and training framework that processes images, long-form video, and spatial information. Researchers use it to train, evaluate, and reproduce vision-language models with the project’s released data, encoders, checkpoints, and training records. The catalogue skills support work with this model and its training resources.
Borrowing it
Nothing to install: this file belongs to EvolvingLMMs-Lab/LLaVA-OneVision-2. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/EvolvingLMMs-Lab/LLaVA-OneVision-2/main/.opencode/skills/merge-ov2/SKILL.mdgit clone --depth 1 https://github.com/EvolvingLMMs-Lab/LLaVA-OneVision-2Wrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/evolvinglmms-lab/llava-onevision-2/merge-ov2)<a href="https://agentmods.dev/skills/evolvinglmms-lab/llava-onevision-2/merge-ov2"><img src="https://agentmods.dev/badge/skills/evolvinglmms-lab/llava-onevision-2/merge-ov2/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/evolvinglmms-lab/llava-onevision-2/merge-ov2"><img src="https://agentmods.dev/badge/skills/evolvinglmms-lab/llava-onevision-2/merge-ov2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00029 | $0.09423 |
| Opus 5.5 | $0.00012 | $0.03769 |
| Sonnet 5.5 | $0.00006 | $0.01885 |
| Haiku 4.5 | $0.00003 | $0.00942 |
Grade A, and why
merge-ov2 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 684 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Purpose / 用途
Use this skill when merging a standalone ViT encoder and LLM into a unified LlavaOnevision2 HuggingFace checkpoint, and when validating that the merged weights and inference outputs are consistent with the originals.
当需要将独立的 ViT encoder 和 LLM 合并成统一的 LlavaOnevision2 HuggingFace checkpoint,并验证合并后权重和推理输出与原始模型一致时,使用这个 skill。
Prerequisites / 前置条件
- Container
llava_megatron_container_axrunning with GPU access - All paths below assume execution inside the container at
/workspace/LLaVA-OneVision-2 PYTHONPATH=transformers_impl:.must be set for all Python commands- For large models, use tmpfs (
/train_tmp) for I/O performance
容器 llava_megatron_container_ax 需启动并有 GPU 访问权限。以下所有路径假设在容器内 /workspace/LLaVA-OneVision-2 执行。所有 Python 命令需设置 PYTHONPATH=transformers_impl:.。大模型建议用内存盘 /train_tmp。
Architecture / 架构
What merge_ov2 does / merge_ov2 做了什么
ViT encoder (e.g. onevision_encoder_patch16_0424)
+ LLM (e.g. Qwen3-4B-Instruct-2507)
+ Processor (e.g. lmms-lab-encoder/LLaVA-OneVision-2-8B-Instruct)
→ Unified LlavaOnevision2ForConditionalGeneration checkpoint
Key transformations during merge:
合并时的关键转换:
- ViT weights are prefixed with
visual.(e.g.encoder.layers.0.self_attn.q_proj.weight→visual.encoder.layers.0.self_attn.qkv.weight) - QKV fusion: separate
q_proj / k_proj / v_projare concatenated into fusedself_attn.qkv(introduces ~1e-7 bf16 divergence) - LLM weights are prefixed with
language_model.(e.g.model.layers.0.self_attn.q_proj.weight→language_model.model.layers.0.self_attn.q_proj.weight) - Adapter (
multi_modal_projector) is randomly initialized if no adapter checkpoint is provided layernorm_postfrom ViT is dropped (not used in LlavaOnevision2)class_embeddingmay not exist in some ViT encoders (e.g. patch16 variant)
Source code layout / 源码结构
transformers_impl/merge_ov2/
├── __main__.py # CLI entry point
├── cli.py # Argument parsing for merge / validate / dry-run
├── remap.py # Weight key remapping logic
├── loader.py # Weight loading from source checkpoints
├── save.py # Save merged checkpoint
├── io.py # I/O utilities
├── utils.py # Shared utilities
├── variants/
│ ├── dense.py # Dense model variant
│ └── moe.py # MoE model variant
└── validators/
├── vit_layerwise.py # ViT layer-wise weight validator
├── vit_blockorder.py # ViT block-order validator (patch14+sms=2 only)
├── llm_parallel.py # LLM parallel validator
├── llm_sequential.py # LLM sequential validator
└── e2e.py # End-to-end validator
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 684 lines · 29 tokens per session scan A 0265c0111378
merge-ov2 is a skill published in the GitHub repository EvolvingLMMs-Lab/LLaVA-OneVision-2 (1,232 stars, last pushed yesterday), licensed Apache-2.0. It adds 29 tokens to every session and 9,423 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
merge-ov2 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| merge-ov2EvolvingLMMs-Lab/LLaVA-OneVision-2 | Skill | 1.2k | yesterday | Apache-2.0 | A | 29 | OpenCode |
| add-new-modelBlaizzy/mlx-vlm | Skill | 5.7k | 4d ago | MIT | A | 83 | Claude Code |
| cli-inferenceBlaizzy/mlx-vlm | Skill | 5.7k | 4d ago | MIT | A | 67 | Claude Code |
| convert-quantizeBlaizzy/mlx-vlm | Skill | 5.7k | 4d ago | MIT | A | 99 | Claude Code |
| server-inferenceBlaizzy/mlx-vlm | Skill | 5.7k | 4d ago | MIT | A | 80 | Claude Code |
| hf-cache-modelsBlaizzy/mlx-vlm | Skill | 5.7k | 4d ago | MIT | A | 38 | Claude Code |
| mle-workflowaffaan-m/ECC | Skill | 298k | 4d ago | MIT | A | 44 | Claude Code, Codex |