[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78T4X124PQEARA66X0BKX61":3,"skill-same:01M78T4X124PQEARA66X0BKX61":65},{"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},"01M78T4X124PQEARA66X0BKX61","baichuan-7b",null,"Operate Baichuan-7B model loading, architecture inspection, C-Eval\u002FMMLU evaluation preflights, and DeepSpeed pretraining setup from self-contained repo guidance.","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\u002Fbaichuan-7b\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: baichuan-7b\ndescription: \"Operate Baichuan-7B model loading, architecture inspection,\n  C-Eval\u002FMMLU evaluation preflights, and DeepSpeed pretraining setup from\n  self-contained repo guidance.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: Apache 2.0\n---\n\n# Baichuan-7B Repo Skill\n\nUse this skill when a task involves the Baichuan-7B repository, its custom Transformers model code, official Hugging Face loading pattern, C-Eval\u002FMMLU benchmark scripts, or DeepSpeed pretraining demo. The skill is self-contained for operating decisions; do not reopen the original README or source scripts unless the user's active task is explicitly to edit a checkout.\n\n## Route by task\n\n| User intent | Read | Why |\n|---|---|---|\n| Load Baichuan-7B, inspect `BaiChuanConfig`, debug generation\u002Fcache behavior, or run a tiny architecture smoke | [architecture-and-loading](sub-skills\u002Farchitecture-and-loading\u002FSKILL.md) | Owns model classes, config defaults, `trust_remote_code` loading, and safe local-source checks. |\n| Prepare C-Eval or MMLU evaluation, validate benchmark layout, render commands, or interpret output files | [evaluation-workflows](sub-skills\u002Fevaluation-workflows\u002FSKILL.md) | Owns Chinese\u002FEnglish benchmark preflights, dataset layout, output artifacts, and benchmark-specific failures. |\n| Prepare pretraining data, validate `tokenizer.model`, DeepSpeed JSON\u002Fhostfile, render launch commands, or explain checkpoints | [pretraining-and-deepspeed](sub-skills\u002Fpretraining-and-deepspeed\u002FSKILL.md) | Owns corpus sharding, tokenizer placement, DeepSpeed setup, and safe training dry-runs. |\n| Check class signatures, dependency surfaces, or source-derived architecture facts shared across workflows | [API reference](references\u002Fapi-reference.md) | Summarizes verified public classes, signatures, model dimensions, and script surfaces. |\n| Diagnose install\u002Fimport\u002Fbackend\u002Fmodel-weight problems before choosing a sub-skill | [troubleshooting](references\u002Ftroubleshooting.md) | Covers cross-cutting dependency pins, CUDA\u002FxFormers, model assets, datasets, and training resource boundaries. |\n| Decide whether this skill is stale for a checkout | [repo provenance](references\u002Frepo-provenance.md) | Records the commit, dirty state, dependency pins, and evidence paths used to create this skill. |\n\n## Operating assumptions\n\n- Baichuan-7B is a decoder-only 7B causal language model for Chinese and English with a 4096-token training context, 64k vocabulary, RMSNorm, SwiGLU MLP, rotary embeddings, and LLaMA-like design choices.\n- The repository has no `setup.py` or `pyproject.toml` package metadata in this snapshot. Local source checks therefore use a Baichuan checkout path or a compatible model directory rather than a pip distribution import.\n- The official README loading path uses `AutoTokenizer.from_pretrained(..., trust_remote_code=True)` and `AutoModelForCausalLM.from_pretrained(..., device_map=\"auto\", trust_remote_code=True)`.\n- Full 7B generation, benchmark scoring, and DeepSpeed training require model weights\u002Ftokenizer files, CUDA-capable runtime, and task-specific data. The bundled helpers are safe preflight\u002Fsmoke tools and do not download weights, fetch datasets, or launch training by default.\n- Code is Apache-2.0 licensed. Model weights have a separate Baichuan model license; check the model source before commercial or redistribution decisions.\n\n## Setup checklist for a later runtime\n\n1. Choose the workflow route above before installing optional packages.\n2. Install the repo-documented stack when feasible: `deepspeed==0.9.2`, `numpy==1.23.5`, `sentencepiece==0.1.97`, `torch==2.0.0`, `transformers==4.29.1`, and `xformers==0.0.20`. If newer CUDA\u002FTorch wheels are required, treat compatibility as a runtime decision and run the safe checks again.\n3. For architecture-only checks, run the tiny smoke from the architecture sub-skill; it needs no official weights or datasets.\n4. For real inference or evaluation, ensure the model identifier or local model directory contains compatible weights, config, tokenizer assets, and trusted remote-code files.\n5. For benchmark runs, validate C-Eval or MMLU prerequisites with the evaluation preflight helper before loading the model.\n6. For pretraining, validate corpus shards, `tokenizer.model`, DeepSpeed config, hostfile, and checkpoint path before rendering or launching any command.\n\n## Safe first checks\n\nArchitecture-only smoke against an active Baichuan-style checkout:\n\n```bash\npython sub-skills\u002Farchitecture-and-loading\u002Fscripts\u002Flocal_model_smoke.py --repo-root \u002Fpath\u002Fto\u002FBaichuan-7B\n```\n\nBenchmark preflight without executing inference:\n\n```bash\npython sub-skills\u002Fevaluation-workflows\u002Fscripts\u002Fcheck_evaluation_inputs.py ceval --model \u002Fpath\u002Fto\u002Fmodel --shot 5 --split val\n```\n\nTraining preflight without launching DeepSpeed:\n\n```bash\npython sub-skills\u002Fpretraining-and-deepspeed\u002Fscripts\u002Fvalidate_training_inputs.py \\\n  --data-dir \u002Fpath\u002Fto\u002Fdata_dir \\\n  --tokenizer-path \u002Fpath\u002Fto\u002Ftokenizer.model \\\n  --deepspeed-config \u002Fpath\u002Fto\u002Fdeepspeed.json \\\n  --hostfile \u002Fpath\u002Fto\u002Fhostfile\n```\n\n## Stop conditions\n\nStop and ask for explicit user resources before:\n\n- downloading official weights, benchmark datasets, or external benchmark checkouts;\n- running full C-Eval\u002FMMLU inference;\n- launching DeepSpeed or distributed training;\n- changing pinned package versions in a user-owned environment;\n- accepting unverified CUDA\u002FDeepSpeed behavior as a completed benchmark or training result.\n","# Baichuan-7B Repo Skill\n\nUse this skill when a task involves the Baichuan-7B repository, its custom Transformers model code, official Hugging Face loading pattern, C-Eval\u002FMMLU benchmark scripts, or DeepSpeed pretraining demo. The skill is self-contained for operating decisions; do not reopen the original README or source scripts unless the user's active task is explicitly to edit a checkout.\n\n## Route by task\n\n| User intent | Read | Why |\n|---|---|---|\n| Load Baichuan-7B, inspect `BaiChuanConfig`, debug generation\u002Fcache behavior, or run a tiny architecture smoke | [architecture-and-loading](sub-skills\u002Farchitecture-and-loading\u002FSKILL.md) | Owns model classes, config defaults, `trust_remote_code` loading, and safe local-source checks. |\n| Prepare C-Eval or MMLU evaluation, validate benchmark layout, render commands, or interpret output files | [evaluation-workflows](sub-skills\u002Fevaluation-workflows\u002FSKILL.md) | Owns Chinese\u002FEnglish benchmark preflights, dataset layout, output artifacts, and benchmark-specific failures. |\n| Prepare pretraining data, validate `tokenizer.model`, DeepSpeed JSON\u002Fhostfile, render launch commands, or explain checkpoints | [pretraining-and-deepspeed](sub-skills\u002Fpretraining-and-deepspeed\u002FSKILL.md) | Owns corpus sharding, tokenizer placement, DeepSpeed setup, and safe training dry-runs. |\n| Check class signatures, dependency surfaces, or source-derived architecture facts shared across workflows | [API reference](references\u002Fapi-reference.md) | Summarizes verified public classes, signatures, model dimensions, and script surfaces. |\n| Diagnose install\u002Fimport\u002Fbackend\u002Fmodel-weight problems before choosing a sub-skill | [troubleshooting](references\u002Ftroubleshooting.md) | Covers cross-cutting dependency pins, CUDA\u002FxFormers, model assets, datasets, and training resource boundaries. |\n| Decide whether this skill is stale for a checkout | [repo provenance](references\u002Frepo-provenance.md) | Records the commit, dirty state, dependency pins, and evidence paths used to create this skill. |\n\n## Operating assumptions\n\n- Baichuan-7B is a decoder-only 7B causal language model for Chinese and English with a 4096-token training context, 64k vocabulary, RMSNorm, SwiGLU MLP, rotary embeddings, and LLaMA-like design choices.\n- The repository has no `setup.py` or `pyproject.toml` package metadata in this snapshot. Local source checks therefore use a Baichuan checkout path or a compatible model directory rather than a pip distribution import.\n- The official README loading path uses `AutoTokenizer.from_pretrained(..., trust_remote_code=True)` and `AutoModelForCausalLM.from_pretrained(..., device_map=\"auto\", trust_remote_code=True)`.\n- Full 7B generation, benchmark scoring, and DeepSpeed training require model weights\u002Ftokenizer files, CUDA-capable runtime, and task-specific data. The bundled helpers are safe preflight\u002Fsmoke tools and do not download weights, fetch datasets, or launch training by default.\n- Code is Apache-2.0 licensed. Model weights have a separate Baichuan model license; check the model source before commercial or redistribution decisions.\n\n## Setup checklist for a later runtime\n\n1. Choose the workflow route above before installing optional packages.\n2. Install the repo-documented stack when feasible: `deepspeed==0.9.2`, `numpy==1.23.5`, `sentencepiece==0.1.97`, `torch==2.0.0`, `transformers==4.29.1`, and `xformers==0.0.20`. If newer CUDA\u002FTorch wheels are required, treat compatibility as a runtime decision and run the safe checks again.\n3. For architecture-only checks, run the tiny smoke from the architecture sub-skill; it needs no official weights or datasets.\n4. For real inference or evaluation, ensure the model identifier or local model directory contains compatible weights, config, tokenizer assets, and trusted remote-code files.\n5. For benchmark runs, validate C-Eval or MMLU prerequisites with the evaluation preflight helper before loading the model.\n6. For pretraining, validate corpus shards, `tokenizer.model`, DeepSpeed config, hostfile, and checkpoint path before rendering or launching any command.\n\n## Safe first checks\n\nArchitecture-only smoke against an active Baichuan-style checkout:\n\n```bash\npython sub-skills\u002Farchitecture-and-loading\u002Fscripts\u002Flocal_model_smoke.py --repo-root \u002Fpath\u002Fto\u002FBaichuan-7B\n```\n\nBenchmark preflight without executing inference:\n\n```bash\npython sub-skills\u002Fevaluation-workflows\u002Fscripts\u002Fcheck_evaluation_inputs.py ceval --model \u002Fpath\u002Fto\u002Fmodel --shot 5 --split val\n```\n\nTraining preflight without launching DeepSpeed:\n\n```bash\npython sub-skills\u002Fpretraining-and-deepspeed\u002Fscripts\u002Fvalidate_training_inputs.py \\\n  --data-dir \u002Fpath\u002Fto\u002Fdata_dir \\\n  --tokenizer-path \u002Fpath\u002Fto\u002Ftokenizer.model \\\n  --deepspeed-config \u002Fpath\u002Fto\u002Fdeepspeed.json \\\n  --hostfile \u002Fpath\u002Fto\u002Fhostfile\n```\n\n## Stop conditions\n\nStop and ask for explicit user resources before:\n\n- downloading official weights, benchmark datasets, or external benchmark checkouts;\n- running full C-Eval\u002FMMLU inference;\n- launching DeepSpeed or distributed training;\n- changing pinned package versions in a user-owned environment;\n- accepting unverified CUDA\u002FDeepSpeed behavior as a completed benchmark or training result.\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\u002Fbaichuan-7b",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 baichuan-7b",{"tool":40,"command":41},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill baichuan-7b",{"tool":43,"command":44},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill baichuan-7b","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbaichuan-7b\u002FSKILL.md",[47,53,57,61],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fapi-reference.md","REFERENCE","参考文档",5849,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbaichuan-7b\u002Freferences\u002Fapi-reference.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Frepo-provenance.md",2695,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbaichuan-7b\u002Freferences\u002Frepo-provenance.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Frepo-routing-metadata.json",565,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbaichuan-7b\u002Freferences\u002Frepo-routing-metadata.json",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Ftroubleshooting.md",5396,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbaichuan-7b\u002Freferences\u002Ftroubleshooting.md",[66,73,80,87,94,101],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"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":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"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":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"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":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"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":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"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":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"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",[],[]]