计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
llava【效率与协作】Guides LLaVA vision-language model inference, serving, training, fine-tuning, evaluation, benchmark conversion, checkpoint utilities, and troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves the LLaVA package: Large Language and Vision Assistant, visual instruction tuning, image-question chat, multimodal model workers, LLaVA fine-tuning, LoRA/QLoRA, LLaVA benchmark evaluation, or checkpoint utilities.
This skill is self-contained for operating the public llava package. Do not rely on a source checkout being present. Use the bundled references and scripts here instead of reopening original repository docs or scripts.
scripts/check_install.py:python scripts/check_install.py --require-cuda
references/install-and-compatibility.md.references/model-overview.md.references/repo-provenance.md.| User task | Read |
|---|---|
Run one image prompt, inspect load_pretrained_model, choose conversation mode, launch CLI, controller, worker, or Gradio UI | sub-skills/chat-and-serve/SKILL.md |
| Prepare custom training JSON, choose pretrain/fine-tune/LoRA/QLoRA commands, validate image paths, pick DeepSpeed config, merge LoRA, apply deltas, consolidate checkpoints | sub-skills/train-and-finetune/SKILL.md |
| Evaluate custom VQA data, run benchmark-style inference, chunk across GPUs, validate question/answer JSONL, convert submissions, understand GPT/OpenAI judge caveats | sub-skills/evaluate-and-benchmark/SKILL.md |
torch==2.1.2, torchvision==0.16.2, transformers==4.37.2, tokenizers==0.15.1, and accelerate==0.21.0. Treat unpinned upgrades as a likely source of import errors.python -m llava... module invocations for public package workflows. If a bundled helper prints a command, review it before running because model downloads, datasets, GPU memory, ports, and credentials may still be required.conda create -n llava python=3.10 -y
conda activate llava
pip install --upgrade pip
pip install -e .
# For training workflows only:
pip install -e ".[train]"
# Optional, hardware-specific acceleration when you choose to use it:
# pip install flash-attn --no-build-isolation
If you are not in a source checkout, install the published package or a pinned VCS/archive build that matches the provenance baseline in references/repo-provenance.md. Do not copy private environment paths into user-facing outputs.
references/troubleshooting.md.sub-skills/chat-and-serve/references/troubleshooting.md.sub-skills/train-and-finetune/references/troubleshooting.md.sub-skills/evaluate-and-benchmark/references/troubleshooting.md.Run the nearest bundled diagnostic or validator before telling a user that an environment, data file, benchmark output, or command is ready. If a requested workflow needs a large checkpoint, dataset download, external judge, long training run, or unavailable hardware, state the limitation explicitly and provide the safe preparation steps instead of fabricating a pass.