AGENT SKILL

specialized-tuners

Select, configure, and troubleshoot PEFT's specialized non-LoRA/non-prompt tuners such as IA3, BOFT, OFT, LyCORIS-style LoHa/LoKr, VeRA/PVeRA, VBLoRA, XLora, LN tuning, FourierFT, FRoD, HRA/HiRA/SHiRA, RandLoRA, RoAd, OSF, and newer experimental tuner configs.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
specialized-tuners
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Select, configure, and troubleshoot PEFT's specialized non-LoRA/non-prompt tuners such as IA3, BOFT, OFT, LyCORIS-style LoHa/LoKr, VeRA/PVeRA, VBLoRA, XLora, LN tuning, FourierFT, FRoD, HRA/HiRA/SHiRA, RandLoRA, RoAd, OSF, and newer experimental tuner configs.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

PEFT Specialized Tuners

Use this sub-skill when the user needs a PEFT adapter that is not ordinary LoRA, not a LoRA quantization workflow, and not prompt/soft-prompt tuning. It covers method selection, config-class lookup, target-module planning, compatibility checks, and troubleshooting for specialized tuners.

Route here for

  • IA3, BOFT, OFT, LoHa, LoKr, Poly, Vera/PVera, VBLoRA, XLora, LN tuning, FourierFT, FROD, HRA, Hira, Shira, RandLoRA, Road, WaveFT, OSF, Delora, Gralora, Adamss, Beft, C3A, Lily, MISS, Psoft, Peanut, TinyLoRA, and nearby config/model classes.
  • Choosing a non-LoRA alternative when LoRA is too large, too low-rank, unsuitable for heterogeneous serving, or not expressive enough.
  • Validating that a method has a public *Config class and that its target-module constraints match the base model.
  • Debugging method-specific errors such as missing feedforward_modules, unsupported layer classes, projection reproducibility, or mixed-adapter incompatibility.

Route elsewhere

  • LoRA, AdaLoRA, DoRA, RS-LoRA, LoRA initialization variants, QLoRA, LoftQ, bitsandbytes quantization, and target-parameter LoRA: use ../lora-and-quantization/SKILL.md.
  • Prompt tuning, prefix tuning, P-tuning, multitask prompt tuning, CPT, trainable tokens, and adaption prompt methods: use ../prompt-and-soft-methods/SKILL.md.
  • Generic PeftModel, save/load, adapter naming, hotswapping, merging, and model lifecycle: use ../adapter-core/SKILL.md.

Fast workflow

  1. Identify the task surface: causal LM, seq2seq LM, sequence/token classification, vision, diffusion, continual learning, multi-adapter serving, or checkpoint-size reduction.
  2. Pick a method family from references/method-catalog.md instead of mirroring a source folder name mechanically.
  3. Confirm the public config class with references/api-reference.md or scripts/list_peft_methods.py --filter <method>.
  4. Set target_modules explicitly for custom models; rely on PEFT defaults only when the method documents a mapping for the model family.
  5. Use get_peft_model(base_model, config) and inspect trainable parameters before training.
  6. If the adapter will be mixed with other adapters, check mixed compatibility before promising adapter_names batch routing or weighted fusion.

Minimal patterns

from peft import IA3Config, TaskType, get_peft_model

config = IA3Config(
    task_type=TaskType.CAUSAL_LM,
    target_modules=["q_proj", "v_proj", "fc2"],
    feedforward_modules=["fc2"],
)
model = get_peft_model(base_model, config)
model.print_trainable_parameters()
from peft import VeraConfig, get_peft_model

config = VeraConfig(
    target_modules=["q_proj", "v_proj"],
    r=256,
    save_projection=True,
)
model = get_peft_model(base_model, config)

Bundled references

  • references/method-catalog.md: selection guidance by method family and use case.
  • references/api-reference.md: config/model class names, common fields, and config naming gotchas.
  • references/troubleshooting.md: errors and diagnosis for target layers, optional dependencies, mixed adapters, and method constraints.
  • scripts/list_peft_methods.py: local PEFT introspection helper for PeftType and public *Config classes.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351