v1-experimental
Use for LlamaFactory experimental v1 flows selected with USE_V1=1, including v1 trainer architecture, v1 config parsing, v1 core engines, samplers, plugin configs, and migration caveats from v0 configs.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- v1-experimental
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use for LlamaFactory experimental v1 flows selected with USE_V1=1, including v1 trainer architecture, v1 config parsing, v1 core engines, samplers, plugin configs, and migration caveats from v0 configs.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/troubleshooting.md6.0 KB
- 参考文档references/v1-architecture.md5.7 KB
- 参考文档references/v1-configs.md6.8 KB
- 脚本scripts/check_v1_config_keys.py13.7 KB
03 SKILL.md 正文
V1 Experimental
Use this sub-skill only when the user explicitly asks for LlamaFactory v1, USE_V1=1, v1 examples/tests, v1 plugin configs, or the experimental trainer/core architecture.
Route Here
- CLI sessions where
USE_V1=1is required beforellamafactory-cliorlmf. - v1 commands:
sft,train,rm,chat, andmergeunder the v1 launcher. - v1 YAML/JSON keys:
model,model_class,train_dataset,micro_batch_size,global_batch_size,peft_config,dist_config,kernel_config,quant_config,init_config,sample_backend, and v1 batching keys. - v1 internals:
DataEngine,ModelEngine,BaseTrainer,SFTTrainer,RMTrainer,BaseSampler, plugin registry behavior, FSDP2/DeepSpeed plugin configs, and rendering plugins. - Migration reviews that compare a v0 config to v1 and identify incompatible keys or missing v1 plugin blocks.
Route Elsewhere
- Default LlamaFactory training without
USE_V1=1: usetraining-and-configs. - v0 dataset registration,
dataset_info.json, data templates, packing, and multimodal schemas: usedata-and-templates. - v0 model loading, adapter merge/export, quantization, and model patching: use
model-loading-and-export. - v0 chat/API/Web UI/vLLM/SGLang serving or inference configs: use
inference-and-serving.
Start With
- Confirm v1 intent: ask whether
USE_V1=1is intended if the request mixes v1 examples with v0 fields. - Read
references/v1-architecture.mdto identify the launcher route, supported commands, and core engine ownership. - Read
references/v1-configs.mdbefore editing YAML/JSON because v1 uses a smaller plugin-oriented config surface than v0. - Run
scripts/check_v1_config_keys.py CONFIG.yamlfor static mixed-key warnings before proposing a v1 run. - Read
references/troubleshooting.mdfor v1-specific parser, plugin, kernel, distributed, and dependency failures.
Bundled Helper
scripts/check_v1_config_keys.pystatically inspects YAML or JSON configs without importing LlamaFactory. It reports likely v0-only keys, v1-only keys, missing pluginnamefields, unsupported enum-like values, and command hints.
Safety And Scope
- Label v1 as experimental and avoid claiming parity with the default v0 stack.
- Do not translate a complete v0 config mechanically; v1 has different field names, plugin blocks, datasets, trainer coverage, and backend assumptions.
- Do not run downloads, training, distributed launch, or adapter merge unless the user explicitly approves.
- Prefer static inspection and tiny smoke-test suggestions; many native v1 tests require specific accelerator, Transformers, bitsandbytes, FSDP2, DeepSpeed, or kernel support.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).