[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M792HJH87WEZ4830283K452Q":3,"skill-same:01M792HJH87WEZ4830283K452Q":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M792HJH87WEZ4830283K452Q","lora-and-quantization",null,"Configure PEFT LoRA, LoRA variants, and quantized-base workflows, including QLoRA, LoftQ, QALoRA, trainable tokens, and quantization backend selection.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpeft\u002Fsub-skills\u002Flora-and-quantization\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: lora-and-quantization\ndescription: \"Configure PEFT LoRA, LoRA variants, and quantized-base workflows,\n  including QLoRA, LoftQ, QALoRA, trainable tokens, and quantization backend\n  selection.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: Apache 2.0\n---\n\n# LoRA and Quantization\n\nUse this sub-skill when the task is about choosing or debugging `LoraConfig`, AdaLoRA-like LoRA variants, LoRA initialization strategies, quantized base model preparation, or quantization backend compatibility in PEFT.\n\nDo not use this sub-skill for adapter save\u002Fload\u002Fmerge\u002Fconversion mechanics, distributed launcher configuration, or non-LoRA tuner families.\n\n## Fast routing\n\n- Need ordinary LoRA, QLoRA, DoRA, RS-LoRA, PiSSA, CorDA, EVA, OLoRA, LoftQ, QALoRA, aLoRA, LoRA-GA, MonteLoRA, VeLoRA, BdLoRA, Arrow routing, or trainable-token interactions: start here.\n- Need `save_pretrained`, `from_pretrained`, `merge_and_unload`, PiSSA\u002FCorDA\u002FOLoRA conversion on save, adapter composition, or hotswapping: route to `save-load-merge`.\n- Need `Trainer`, `Accelerate`, DeepSpeed, FSDP, launch commands, or dataset\u002Ftraining-loop integration: route to `training-and-integrations`.\n- Need IA3, prompt tuning, OFT\u002FBOFT, VeRA, LoHa\u002FLoKr, Poly, FourierFT, or other non-LoRA tuners: route to `specialized-tuners`.\n\n## Core LoRA checklist\n\n1. Pick target layers before tuning hyperparameters.\n   - For transformer QLoRA-style tuning, prefer `target_modules=\"all-linear\"` so PEFT targets every linear\u002FConv1D layer except the output layer where applicable.\n   - For smaller adapters, use architecture names such as `q_proj`, `k_proj`, `v_proj`, `o_proj`, `up_proj`, `down_proj`, `gate_proj`, `query`, `value`, or a regex string.\n   - If PEFT cannot infer the architecture and `target_modules=None`, specify `target_modules` manually.\n   - Use `target_modules=[]` only when intentionally using `target_parameters` for parameters that are not wrapped by a module `forward`, such as some MoE expert parameters.\n2. Choose rank and scaling together.\n   - `r` controls adapter capacity and memory.\n   - `lora_alpha` controls LoRA scaling.\n   - Default LoRA scales by `lora_alpha \u002F r`; `use_rslora=True` scales by `lora_alpha \u002F sqrt(r)` and is often better when raising `r`.\n   - Use `rank_pattern` and `alpha_pattern` for layer-specific capacity instead of creating separate adapters.\n3. Keep dropout and bias intentional.\n   - `lora_dropout=0.0` is common for large language model instruction tuning; small data or overfitting may benefit from nonzero dropout.\n   - `bias=\"none\"` keeps adapter-disabled output closest to the base model. `bias=\"all\"` or `\"lora_only\"` trains bias terms and can change outputs even when adapters are disabled.\n4. Add task heads or tokens explicitly.\n   - Use `modules_to_save` for randomly initialized heads such as classifiers that must train and be saved with the adapter.\n   - Use `trainable_token_indices` for a small set of newly added token embeddings. Add tokens to the tokenizer and resize embeddings yourself before applying PEFT.\n\nMinimal causal-LM LoRA pattern:\n\n```python\nfrom peft import LoraConfig, get_peft_model\n\npeft_config = LoraConfig(\n    task_type=\"CAUSAL_LM\",\n    target_modules=\"all-linear\",\n    r=16,\n    lora_alpha=32,\n    lora_dropout=0.05,\n    bias=\"none\",\n    use_rslora=True,\n)\nmodel = get_peft_model(base_model, peft_config)\n```\n\n## Variant selection\n\n- `use_rslora=True`: use when increasing rank or when standard `alpha \u002F r` scaling is unstable or underpowered.\n- `use_dora=True`: adds a learnable magnitude branch in addition to LoRA direction; useful at low ranks, but adds overhead and currently targets linear and Conv2D layers. QDoRA can work with bitsandbytes, but DeepSpeed ZeRO-2 has reported issues.\n- `init_lora_weights=\"pissa\"` or `\"pissa_niter_16\"`: SVD\u002FFast-SVD initialization; use for faster convergence and quantization-error reduction. Full PiSSA can take minutes on large models; fast PiSSA trades exactness for speed.\n- `init_lora_weights=\"corda\"` with `CordaConfig`: use when you can run a preprocessing pass over task or knowledge-preservation data. Instruction-previewed mode favors task adaptation; knowledge-preserved mode favors retaining pretrained knowledge.\n- `init_lora_weights=\"eva\"` with `EvaConfig`: data-driven activation SVD initialization. Call `initialize_lora_eva_weights(peft_model, dataloader)` after wrapping. Use an accelerator and consider `low_cpu_mem_usage=True` in `get_peft_model`.\n- `init_lora_weights=\"olora\"`: QR-based initialization that mutates base weights before training; plan save\u002Frestore conversion carefully.\n- `init_lora_weights=\"loftq\"` with `LoftQConfig`: full LoftQ initialization that quantizes the backbone itself; do not pass an already quantized model.\n- `init_lora_weights=\"lora_ga\"` with `LoraGAConfig`: gradient-approximation initialization; run `preprocess_loraga` before training. Requires full-precision weights and does not support quantized models.\n- `use_qalora=True`: QALoRA is currently implemented for GPTQ and linear layers. Ensure `module.in_features` is divisible by `qalora_group_size`.\n- `alora_invocation_tokens=[...]`: aLoRA activates only during and after a tokenized invocation sequence for causal LM workflows and can reuse KV cache before invocation. Merging is not possible because adapter application is selective.\n- `monteclora_config=MontecloraConfig(...)`: adds stochastic Monte Carlo sampling over LoRA adapters; tune sample count and regularization for calibration\u002Fstability tradeoffs.\n- `velora_config=VeloraConfig(...)`: uses compressed activation storage in LoRA A backward pass to reduce training memory.\n- `use_bdlora=BdLoraConfig(...)`: block-diagonal LoRA factors for serving-oriented communication reduction; keep A\u002FB block target lists non-overlapping.\n- `arrow_config=ArrowConfig(...)`: Arrow routing builds a router over compatible loaded LoRA adapters. The task\u002Fgeneral adapters must have compatible target modules and rank.\n- `AdaLoraConfig`: use AdaLoRA when the task calls for adaptive rank allocation during training; it has its own schedule parameters and supports bitsandbytes and GPTQ quantization.\n\nSee `references\u002Flora-api.md` for parameter guidance and variant patterns.\n\n## Quantized-base workflow\n\nFor 4-bit\u002F8-bit bitsandbytes QLoRA-style training:\n\n```python\nimport torch\nfrom peft import LoraConfig, get_peft_model, prepare_model_for_kbit_training\nfrom transformers import AutoModelForCausalLM, BitsAndBytesConfig\n\nbnb_config = BitsAndBytesConfig(\n    load_in_4bit=True,\n    bnb_4bit_quant_type=\"nf4\",\n    bnb_4bit_use_double_quant=True,\n    bnb_4bit_compute_dtype=torch.bfloat16,\n)\nbase_model = AutoModelForCausalLM.from_pretrained(\n    model_id,\n    quantization_config=bnb_config,\n    device_map=\"auto\",\n)\nbase_model = prepare_model_for_kbit_training(base_model)\npeft_config = LoraConfig(task_type=\"CAUSAL_LM\", target_modules=\"all-linear\", r=16, lora_alpha=32)\nmodel = get_peft_model(base_model, peft_config)\n```\n\nRules of thumb:\n\n- Call `prepare_model_for_kbit_training` for k-bit bitsandbytes training before `get_peft_model`.\n- Use `target_modules=\"all-linear\"` for QLoRA-style language-model tuning and LoftQ coverage.\n- Prefer NF4 for 4-bit bitsandbytes when combining with LoftQ.\n- Use `dtype`\u002Fcompute dtype deliberately: mismatched input and compute dtype can slow training or destabilize gradients.\n- Save adapters separately for quantization formats that cannot merge LoRA into quantized weights.\n\nSee `references\u002Fquantization-workflows.md` for the backend matrix and LoftQ choice guide.\n\n## LoftQ decision guide\n\n- If the base model is not quantized yet and you can afford an initialization pass, use `LoraConfig(init_lora_weights=\"loftq\", loftq_config=LoftQConfig(...))`. PEFT quantizes the backbone and initializes LoRA; do not pass a pre-quantized model.\n- If the base model is already loaded with bitsandbytes 4-bit quantization, wrap it with ordinary LoRA first and then call `replace_lora_weights_loftq(peft_model)`. This only replaces LoRA weights in place, requires safetensors reference weights, supports only bitsandbytes 4-bit, and performs one LoftQ step.\n- In either path, target as many linear layers as possible; layers without LoRA cannot receive LoftQ correction.\n\n## Sanity script\n\nRun the bundled sanity script without loading a model:\n\n```bash\npython skills\u002Fpeft\u002Fsub-skills\u002Flora-and-quantization\u002Fscripts\u002Flora_config_sanity.py --check\npython skills\u002Fpeft\u002Fsub-skills\u002Flora-and-quantization\u002Fscripts\u002Flora_config_sanity.py --list-variants\n```\n\nThe script constructs representative `LoraConfig` objects, reports optional dependency caveats, and catches configuration-time warnings\u002Ferrors before a user spends time loading a large model.\n\n## Failure triage\n\n- `Please specify target_modules...`: use `target_modules=\"all-linear\"`, explicit module suffixes, or `target_parameters` with `target_modules=[]` for parameter-only targets.\n- LoftQ error with an already quantized model: switch from `init_lora_weights=\"loftq\"` to ordinary LoRA plus `replace_lora_weights_loftq`.\n- `loftq_config` ignored: set `init_lora_weights=\"loftq\"`; otherwise remove `loftq_config`.\n- QALoRA shape error: choose a `qalora_group_size` that divides each targeted linear layer input dimension, or narrow target modules.\n- aLoRA appears inactive: ensure the tokenized invocation sequence is present in every input and the task is causal LM.\n- Trainable tokens save too large: when only trainable tokens changed after resizing embeddings, consider `save_embedding_layers=False` during save.\n- Missing quantization package: install the backend-specific extra or fall back to full precision, bitsandbytes, or a prequantized model supported by installed packages.\n\nMore issue patterns are in `references\u002Ftroubleshooting.md`.\n","# LoRA and Quantization\n\nUse this sub-skill when the task is about choosing or debugging `LoraConfig`, AdaLoRA-like LoRA variants, LoRA initialization strategies, quantized base model preparation, or quantization backend compatibility in PEFT.\n\nDo not use this sub-skill for adapter save\u002Fload\u002Fmerge\u002Fconversion mechanics, distributed launcher configuration, or non-LoRA tuner families.\n\n## Fast routing\n\n- Need ordinary LoRA, QLoRA, DoRA, RS-LoRA, PiSSA, CorDA, EVA, OLoRA, LoftQ, QALoRA, aLoRA, LoRA-GA, MonteLoRA, VeLoRA, BdLoRA, Arrow routing, or trainable-token interactions: start here.\n- Need `save_pretrained`, `from_pretrained`, `merge_and_unload`, PiSSA\u002FCorDA\u002FOLoRA conversion on save, adapter composition, or hotswapping: route to `save-load-merge`.\n- Need `Trainer`, `Accelerate`, DeepSpeed, FSDP, launch commands, or dataset\u002Ftraining-loop integration: route to `training-and-integrations`.\n- Need IA3, prompt tuning, OFT\u002FBOFT, VeRA, LoHa\u002FLoKr, Poly, FourierFT, or other non-LoRA tuners: route to `specialized-tuners`.\n\n## Core LoRA checklist\n\n1. Pick target layers before tuning hyperparameters.\n   - For transformer QLoRA-style tuning, prefer `target_modules=\"all-linear\"` so PEFT targets every linear\u002FConv1D layer except the output layer where applicable.\n   - For smaller adapters, use architecture names such as `q_proj`, `k_proj`, `v_proj`, `o_proj`, `up_proj`, `down_proj`, `gate_proj`, `query`, `value`, or a regex string.\n   - If PEFT cannot infer the architecture and `target_modules=None`, specify `target_modules` manually.\n   - Use `target_modules=[]` only when intentionally using `target_parameters` for parameters that are not wrapped by a module `forward`, such as some MoE expert parameters.\n2. Choose rank and scaling together.\n   - `r` controls adapter capacity and memory.\n   - `lora_alpha` controls LoRA scaling.\n   - Default LoRA scales by `lora_alpha \u002F r`; `use_rslora=True` scales by `lora_alpha \u002F sqrt(r)` and is often better when raising `r`.\n   - Use `rank_pattern` and `alpha_pattern` for layer-specific capacity instead of creating separate adapters.\n3. Keep dropout and bias intentional.\n   - `lora_dropout=0.0` is common for large language model instruction tuning; small data or overfitting may benefit from nonzero dropout.\n   - `bias=\"none\"` keeps adapter-disabled output closest to the base model. `bias=\"all\"` or `\"lora_only\"` trains bias terms and can change outputs even when adapters are disabled.\n4. Add task heads or tokens explicitly.\n   - Use `modules_to_save` for randomly initialized heads such as classifiers that must train and be saved with the adapter.\n   - Use `trainable_token_indices` for a small set of newly added token embeddings. Add tokens to the tokenizer and resize embeddings yourself before applying PEFT.\n\nMinimal causal-LM LoRA pattern:\n\n```python\nfrom peft import LoraConfig, get_peft_model\n\npeft_config = LoraConfig(\n    task_type=\"CAUSAL_LM\",\n    target_modules=\"all-linear\",\n    r=16,\n    lora_alpha=32,\n    lora_dropout=0.05,\n    bias=\"none\",\n    use_rslora=True,\n)\nmodel = get_peft_model(base_model, peft_config)\n```\n\n## Variant selection\n\n- `use_rslora=True`: use when increasing rank or when standard `alpha \u002F r` scaling is unstable or underpowered.\n- `use_dora=True`: adds a learnable magnitude branch in addition to LoRA direction; useful at low ranks, but adds overhead and currently targets linear and Conv2D layers. QDoRA can work with bitsandbytes, but DeepSpeed ZeRO-2 has reported issues.\n- `init_lora_weights=\"pissa\"` or `\"pissa_niter_16\"`: SVD\u002FFast-SVD initialization; use for faster convergence and quantization-error reduction. Full PiSSA can take minutes on large models; fast PiSSA trades exactness for speed.\n- `init_lora_weights=\"corda\"` with `CordaConfig`: use when you can run a preprocessing pass over task or knowledge-preservation data. Instruction-previewed mode favors task adaptation; knowledge-preserved mode favors retaining pretrained knowledge.\n- `init_lora_weights=\"eva\"` with `EvaConfig`: data-driven activation SVD initialization. Call `initialize_lora_eva_weights(peft_model, dataloader)` after wrapping. Use an accelerator and consider `low_cpu_mem_usage=True` in `get_peft_model`.\n- `init_lora_weights=\"olora\"`: QR-based initialization that mutates base weights before training; plan save\u002Frestore conversion carefully.\n- `init_lora_weights=\"loftq\"` with `LoftQConfig`: full LoftQ initialization that quantizes the backbone itself; do not pass an already quantized model.\n- `init_lora_weights=\"lora_ga\"` with `LoraGAConfig`: gradient-approximation initialization; run `preprocess_loraga` before training. Requires full-precision weights and does not support quantized models.\n- `use_qalora=True`: QALoRA is currently implemented for GPTQ and linear layers. Ensure `module.in_features` is divisible by `qalora_group_size`.\n- `alora_invocation_tokens=[...]`: aLoRA activates only during and after a tokenized invocation sequence for causal LM workflows and can reuse KV cache before invocation. Merging is not possible because adapter application is selective.\n- `monteclora_config=MontecloraConfig(...)`: adds stochastic Monte Carlo sampling over LoRA adapters; tune sample count and regularization for calibration\u002Fstability tradeoffs.\n- `velora_config=VeloraConfig(...)`: uses compressed activation storage in LoRA A backward pass to reduce training memory.\n- `use_bdlora=BdLoraConfig(...)`: block-diagonal LoRA factors for serving-oriented communication reduction; keep A\u002FB block target lists non-overlapping.\n- `arrow_config=ArrowConfig(...)`: Arrow routing builds a router over compatible loaded LoRA adapters. The task\u002Fgeneral adapters must have compatible target modules and rank.\n- `AdaLoraConfig`: use AdaLoRA when the task calls for adaptive rank allocation during training; it has its own schedule parameters and supports bitsandbytes and GPTQ quantization.\n\nSee `references\u002Flora-api.md` for parameter guidance and variant patterns.\n\n## Quantized-base workflow\n\nFor 4-bit\u002F8-bit bitsandbytes QLoRA-style training:\n\n```python\nimport torch\nfrom peft import LoraConfig, get_peft_model, prepare_model_for_kbit_training\nfrom transformers import AutoModelForCausalLM, BitsAndBytesConfig\n\nbnb_config = BitsAndBytesConfig(\n    load_in_4bit=True,\n    bnb_4bit_quant_type=\"nf4\",\n    bnb_4bit_use_double_quant=True,\n    bnb_4bit_compute_dtype=torch.bfloat16,\n)\nbase_model = AutoModelForCausalLM.from_pretrained(\n    model_id,\n    quantization_config=bnb_config,\n    device_map=\"auto\",\n)\nbase_model = prepare_model_for_kbit_training(base_model)\npeft_config = LoraConfig(task_type=\"CAUSAL_LM\", target_modules=\"all-linear\", r=16, lora_alpha=32)\nmodel = get_peft_model(base_model, peft_config)\n```\n\nRules of thumb:\n\n- Call `prepare_model_for_kbit_training` for k-bit bitsandbytes training before `get_peft_model`.\n- Use `target_modules=\"all-linear\"` for QLoRA-style language-model tuning and LoftQ coverage.\n- Prefer NF4 for 4-bit bitsandbytes when combining with LoftQ.\n- Use `dtype`\u002Fcompute dtype deliberately: mismatched input and compute dtype can slow training or destabilize gradients.\n- Save adapters separately for quantization formats that cannot merge LoRA into quantized weights.\n\nSee `references\u002Fquantization-workflows.md` for the backend matrix and LoftQ choice guide.\n\n## LoftQ decision guide\n\n- If the base model is not quantized yet and you can afford an initialization pass, use `LoraConfig(init_lora_weights=\"loftq\", loftq_config=LoftQConfig(...))`. PEFT quantizes the backbone and initializes LoRA; do not pass a pre-quantized model.\n- If the base model is already loaded with bitsandbytes 4-bit quantization, wrap it with ordinary LoRA first and then call `replace_lora_weights_loftq(peft_model)`. This only replaces LoRA weights in place, requires safetensors reference weights, supports only bitsandbytes 4-bit, and performs one LoftQ step.\n- In either path, target as many linear layers as possible; layers without LoRA cannot receive LoftQ correction.\n\n## Sanity script\n\nRun the bundled sanity script without loading a model:\n\n```bash\npython skills\u002Fpeft\u002Fsub-skills\u002Flora-and-quantization\u002Fscripts\u002Flora_config_sanity.py --check\npython skills\u002Fpeft\u002Fsub-skills\u002Flora-and-quantization\u002Fscripts\u002Flora_config_sanity.py --list-variants\n```\n\nThe script constructs representative `LoraConfig` objects, reports optional dependency caveats, and catches configuration-time warnings\u002Ferrors before a user spends time loading a large model.\n\n## Failure triage\n\n- `Please specify target_modules...`: use `target_modules=\"all-linear\"`, explicit module suffixes, or `target_parameters` with `target_modules=[]` for parameter-only targets.\n- LoftQ error with an already quantized model: switch from `init_lora_weights=\"loftq\"` to ordinary LoRA plus `replace_lora_weights_loftq`.\n- `loftq_config` ignored: set `init_lora_weights=\"loftq\"`; otherwise remove `loftq_config`.\n- QALoRA shape error: choose a `qalora_group_size` that divides each targeted linear layer input dimension, or narrow target modules.\n- aLoRA appears inactive: ensure the tokenized invocation sequence is present in every input and the task is causal LM.\n- Trainable tokens save too large: when only trainable tokens changed after resizing embeddings, consider `save_embedding_layers=False` during save.\n- Missing quantization package: install the backend-specific extra or fall back to full precision, bitsandbytes, or a prequantized model supported by installed packages.\n\nMore issue patterns are in `references\u002Ftroubleshooting.md`.\n",{"name":5,"license":23,"metadata":24,"description":7,"disable-model-invocation":26},"Apache 2.0",{"disco-role":25},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Fpeft\u002Fsub-skills\u002Flora-and-quantization",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":26},[36,39,42],{"tool":37,"command":38},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill lora-and-quantization",{"tool":40,"command":41},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill lora-and-quantization",{"tool":43,"command":44},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill lora-and-quantization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpeft\u002Fsub-skills\u002Flora-and-quantization\u002FSKILL.md",[47,53,57,61],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Flora-api.md","REFERENCE","参考文档",8783,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpeft\u002Fsub-skills\u002Flora-and-quantization\u002Freferences\u002Flora-api.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fquantization-workflows.md",6664,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpeft\u002Fsub-skills\u002Flora-and-quantization\u002Freferences\u002Fquantization-workflows.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Ftroubleshooting.md",5872,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpeft\u002Fsub-skills\u002Flora-and-quantization\u002Freferences\u002Ftroubleshooting.md",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Flora_config_sanity.py","SCRIPT","脚本",12084,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpeft\u002Fsub-skills\u002Flora-and-quantization\u002Fscripts\u002Flora_config_sanity.py",[68,75,82,89,96,103],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp 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.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","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.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","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()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert 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.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch 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).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]