技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
lora【数据与研究】Use the LoRA repository and loralib package to add low-rank adapters to PyTorch modules, fine-tune RoBERTa or DeBERTa on GLUE tasks, or reproduce the repository's GPT-2 data-to-text workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task involves the loralib PyTorch package, low-rank
adaptation, LoRA-only checkpoints, trainable-parameter selection, merged
attention projections, RoBERTa/DeBERTa GLUE fine-tuning, or the repository's
GPT-2 E2E/WebNLG/DART examples.
python -m pip install loralib; for a local
source checkout, python -m pip install -e . is the editable equivalent.
The public import is import loralib as lora.Linear, Embedding,
MergedLinear, convolution wrappers, trainable-parameter marking, LoRA-only
checkpoint state, bias policies, fan-in/fan-out weights, and eval-time
merging.run_glue.py flags, query/value insertion points, checkpoint
transfer, launcher construction, and CUDA/multi-GPU caveats.MergedLinear QKV adaptation, E2E/WebNLG/DART JSONL formats, training and
beam-search command construction, decoding, and evaluation-file validation.strict=False; save only
the adapter state when the goal is a small task-specific artifact.r=0 as the no-adapter case. A positive rank creates lora_A and
lora_B; lora_alpha / r is the scaling factor.python scripts/check_lora_core.py --json
The helper checks the public import, tiny forwards for the supported layer
families, eval/train merge transitions, trainable-parameter filtering, and the
keys returned by lora_state_dict. Read its sub-skill references before
changing defaults or using a nonstandard bias policy.
Use this skill for requests such as:
If the user asks for a specific route, jump directly to the owning sub-skill
instead of reading all three routes. If the user asks for a general question
about rank, scaling, or merged weights, start in core-lora-api.
This skill does not replace modern PEFT/Transformers documentation, does not ship model weights or benchmark datasets, and does not make external download, Java/perl metric, credential, or multi-GPU actions safe by default. Those limits are intentional so future agents can reuse the guidance without mistaking historical benchmark settings for always-safe defaults.