[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M790CPME3VN5TQ0MPCC2YS89":3,"skill-same:01M790CPME3VN5TQ0MPCC2YS89":78},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":45},"01M790CPME3VN5TQ0MPCC2YS89","mixtral-offloading",null,"Use dvmazur\u002Fmixtral-offloading for source-only CUDA\u002FHQQ\u002FTriton Mixtral-8x7B expert offloading workflows.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"MIT","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmixtral-offloading\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mixtral-offloading\ndescription: \"Use dvmazur\u002Fmixtral-offloading for source-only CUDA\u002FHQQ\u002FTriton\n  Mixtral-8x7B expert offloading workflows.\"\nmetadata:\n  disco-role: operating\ndisable-model-invocation: true\nlicense: MIT\n---\n\n# mixtral-offloading\n\nUse this repo skill when a task involves the `dvmazur\u002Fmixtral-offloading`\nrepository: efficient Mixtral-8x7B inference through mixed HQQ quantization,\nTriton matmul kernels, and MoE expert offloading between GPU and CPU memory.\n\n## Read this when\n\n- The user asks to run or adapt the Mixtral offloading demo notebook locally.\n- The task names `OffloadConfig`, `QuantConfig`, `build_model`,\n  `HQQLinearTritonSavable`, `ExpertCache`, `MixtralExpertWrapper`, or\n  `SparseMoeWrapper`.\n- The user is debugging CUDA\u002FTriton\u002FHQQ errors in a source-only checkout.\n- The user needs a safe smoke check that avoids model downloads and long\n  interactive generation.\n\n## First checks\n\n1. This repository is source-only: it has no installable package metadata and no\n   CLI. Future agents should install the runtime requirements and add the user's\n   checkout root to `PYTHONPATH` before importing `src.*` modules.\n2. Actual offloaded inference is a CUDA workflow. CPU-only checks can validate\n   imports, config math, and packing helpers, but not Mixtral generation or\n   Triton kernel execution.\n3. The full demo depends on external Hugging Face model\u002Ftokenizer artifacts and\n   a quantized safetensors state directory. Do not download large artifacts or\n   start an interactive chat loop without explicit approval.\n\nMinimal public setup pattern:\n\n```bash\npython -m pip install -r requirements.txt\nPYTHONPATH=\"\u002Fpath\u002Fto\u002Fuser\u002Fmixtral-offloading\" python -c \"from src.build_model import build_model; print('ok')\"\npython \u002Fpath\u002Fto\u002Fthis-skill\u002Fscripts\u002Fcheck_environment.py --repo-root \u002Fpath\u002Fto\u002Fuser\u002Fmixtral-offloading --require-cuda\n```\n\nRun [scripts\u002Fcheck_environment.py](scripts\u002Fcheck_environment.py) for dependency,\nsource-import, and optional CUDA checks.\n\n## Route map\n\n- Use [sub-skills\u002Finference-workflow\u002FSKILL.md](sub-skills\u002Finference-workflow\u002FSKILL.md)\n  to convert the demo into a script, validate a quantized state directory,\n  choose `offload_per_layer`, build the model, and structure generation loops.\n- Use [sub-skills\u002Fquantization-kernels\u002FSKILL.md](sub-skills\u002Fquantization-kernels\u002FSKILL.md)\n  to inspect HQQ quantized layers, packing helpers, state-dict hooks, and\n  Triton matmul wrapper issues.\n- Use [sub-skills\u002Fexpert-cache\u002FSKILL.md](sub-skills\u002Fexpert-cache\u002FSKILL.md) to\n  debug LRU expert-cache capacity, storage movement, eviction groups, and sparse\n  MoE routing.\n\n## Repo-level references\n\n- [references\u002Finstallation-and-runtime.md](references\u002Finstallation-and-runtime.md)\n  covers source-only installation, `PYTHONPATH`, dependency versions, CUDA\n  expectations, and safe smoke checks.\n- [references\u002Fapi-reference.md](references\u002Fapi-reference.md) summarizes the\n  public source modules and key signatures; use sub-skills for deeper workflows.\n- [references\u002Fdemo-workflow.md](references\u002Fdemo-workflow.md) summarizes the\n  original demo's purpose, resource assumptions, and translation into reusable\n  guidance.\n- [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) covers\n  cross-cutting install\u002Fimport, CUDA, model-state, HQQ, and source-only errors.\n- [references\u002Frepo-provenance.md](references\u002Frepo-provenance.md) records the\n  source snapshot and evidence paths used to build this skill.\n\n## Common task recipes\n\n### User wants to run the demo as a script\n\n1. Read the installation reference and verify dependencies\u002FCUDA.\n2. Read the inference workflow reference.\n3. Render a skeleton with the inference sub-skill script.\n4. Validate the state directory before calling `build_model`.\n5. Start with short generation and low `max_new_tokens`.\n\n### User hits a quantization or Triton error\n\n1. Run the packing round-trip helper from the quantization sub-skill.\n2. If CUDA behavior matters, run its Triton smoke against the user's checkout.\n3. Inspect HQQ group sizes, packed weight shapes, and tensor contiguity.\n4. Route model-level issues back to inference only after the kernel check passes.\n\n### User is extending expert offloading\n\n1. Use the expert-cache plan helper to validate cache sizes and UIDs.\n2. Read cache\u002Fstorage invariants before changing prefetch or eviction policy.\n3. Keep storage type\u002Fsize\u002Fdevice consistent across all cached experts.\n4. Treat realistic cache construction as CUDA-backed unless using source-only\n   reasoning.\n\n## Avoid using this skill when\n\n- The request is general Transformers usage unrelated to this repository's\n  HQQ\u002FTriton\u002Foffloading code.\n- The user needs fine-tuning, training, serving infrastructure, or quantization\n  methods not implemented here.\n- The task is only to evaluate base Mixtral models without this repo's\n  safetensors\u002Foffloading state layout.\n","# mixtral-offloading\n\nUse this repo skill when a task involves the `dvmazur\u002Fmixtral-offloading`\nrepository: efficient Mixtral-8x7B inference through mixed HQQ quantization,\nTriton matmul kernels, and MoE expert offloading between GPU and CPU memory.\n\n## Read this when\n\n- The user asks to run or adapt the Mixtral offloading demo notebook locally.\n- The task names `OffloadConfig`, `QuantConfig`, `build_model`,\n  `HQQLinearTritonSavable`, `ExpertCache`, `MixtralExpertWrapper`, or\n  `SparseMoeWrapper`.\n- The user is debugging CUDA\u002FTriton\u002FHQQ errors in a source-only checkout.\n- The user needs a safe smoke check that avoids model downloads and long\n  interactive generation.\n\n## First checks\n\n1. This repository is source-only: it has no installable package metadata and no\n   CLI. Future agents should install the runtime requirements and add the user's\n   checkout root to `PYTHONPATH` before importing `src.*` modules.\n2. Actual offloaded inference is a CUDA workflow. CPU-only checks can validate\n   imports, config math, and packing helpers, but not Mixtral generation or\n   Triton kernel execution.\n3. The full demo depends on external Hugging Face model\u002Ftokenizer artifacts and\n   a quantized safetensors state directory. Do not download large artifacts or\n   start an interactive chat loop without explicit approval.\n\nMinimal public setup pattern:\n\n```bash\npython -m pip install -r requirements.txt\nPYTHONPATH=\"\u002Fpath\u002Fto\u002Fuser\u002Fmixtral-offloading\" python -c \"from src.build_model import build_model; print('ok')\"\npython \u002Fpath\u002Fto\u002Fthis-skill\u002Fscripts\u002Fcheck_environment.py --repo-root \u002Fpath\u002Fto\u002Fuser\u002Fmixtral-offloading --require-cuda\n```\n\nRun [scripts\u002Fcheck_environment.py](scripts\u002Fcheck_environment.py) for dependency,\nsource-import, and optional CUDA checks.\n\n## Route map\n\n- Use [sub-skills\u002Finference-workflow\u002FSKILL.md](sub-skills\u002Finference-workflow\u002FSKILL.md)\n  to convert the demo into a script, validate a quantized state directory,\n  choose `offload_per_layer`, build the model, and structure generation loops.\n- Use [sub-skills\u002Fquantization-kernels\u002FSKILL.md](sub-skills\u002Fquantization-kernels\u002FSKILL.md)\n  to inspect HQQ quantized layers, packing helpers, state-dict hooks, and\n  Triton matmul wrapper issues.\n- Use [sub-skills\u002Fexpert-cache\u002FSKILL.md](sub-skills\u002Fexpert-cache\u002FSKILL.md) to\n  debug LRU expert-cache capacity, storage movement, eviction groups, and sparse\n  MoE routing.\n\n## Repo-level references\n\n- [references\u002Finstallation-and-runtime.md](references\u002Finstallation-and-runtime.md)\n  covers source-only installation, `PYTHONPATH`, dependency versions, CUDA\n  expectations, and safe smoke checks.\n- [references\u002Fapi-reference.md](references\u002Fapi-reference.md) summarizes the\n  public source modules and key signatures; use sub-skills for deeper workflows.\n- [references\u002Fdemo-workflow.md](references\u002Fdemo-workflow.md) summarizes the\n  original demo's purpose, resource assumptions, and translation into reusable\n  guidance.\n- [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) covers\n  cross-cutting install\u002Fimport, CUDA, model-state, HQQ, and source-only errors.\n- [references\u002Frepo-provenance.md](references\u002Frepo-provenance.md) records the\n  source snapshot and evidence paths used to build this skill.\n\n## Common task recipes\n\n### User wants to run the demo as a script\n\n1. Read the installation reference and verify dependencies\u002FCUDA.\n2. Read the inference workflow reference.\n3. Render a skeleton with the inference sub-skill script.\n4. Validate the state directory before calling `build_model`.\n5. Start with short generation and low `max_new_tokens`.\n\n### User hits a quantization or Triton error\n\n1. Run the packing round-trip helper from the quantization sub-skill.\n2. If CUDA behavior matters, run its Triton smoke against the user's checkout.\n3. Inspect HQQ group sizes, packed weight shapes, and tensor contiguity.\n4. Route model-level issues back to inference only after the kernel check passes.\n\n### User is extending expert offloading\n\n1. Use the expert-cache plan helper to validate cache sizes and UIDs.\n2. Read cache\u002Fstorage invariants before changing prefetch or eviction policy.\n3. Keep storage type\u002Fsize\u002Fdevice consistent across all cached experts.\n4. Treat realistic cache construction as CUDA-backed unless using source-only\n   reasoning.\n\n## Avoid using this skill when\n\n- The request is general Transformers usage unrelated to this repository's\n  HQQ\u002FTriton\u002Foffloading code.\n- The user needs fine-tuning, training, serving infrastructure, or quantization\n  methods not implemented here.\n- The task is only to evaluate base Mixtral models without this repo's\n  safetensors\u002Foffloading state layout.\n",{"name":5,"license":14,"metadata":23,"description":7,"disable-model-invocation":25},{"disco-role":24},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Fmixtral-offloading",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":25},[35,38,41],{"tool":36,"command":37},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill mixtral-offloading",{"tool":39,"command":40},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill mixtral-offloading",{"tool":42,"command":43},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill mixtral-offloading","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmixtral-offloading\u002FSKILL.md",[46,52,56,60,64,68,72],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fapi-reference.md","REFERENCE","参考文档",3242,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmixtral-offloading\u002Freferences\u002Fapi-reference.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fdemo-workflow.md",1793,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmixtral-offloading\u002Freferences\u002Fdemo-workflow.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Finstallation-and-runtime.md",3059,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmixtral-offloading\u002Freferences\u002Finstallation-and-runtime.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Frepo-provenance.md",1786,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmixtral-offloading\u002Freferences\u002Frepo-provenance.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Frepo-routing-metadata.json",466,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmixtral-offloading\u002Freferences\u002Frepo-routing-metadata.json",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Ftroubleshooting.md",1911,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmixtral-offloading\u002Freferences\u002Ftroubleshooting.md",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Fcheck_environment.py","SCRIPT","脚本",1842,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmixtral-offloading\u002Fscripts\u002Fcheck_environment.py",[79,87,94,101,108,115],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"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.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"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":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"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":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"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":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"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":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"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",[],[]]