[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78T54YTG193MNWHKWWGKPQA":3,"skill-same:01M78T54YTG193MNWHKWWGKPQA":71},{"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},"01M78T54YTG193MNWHKWWGKPQA","pretraining-and-deepspeed",null,"Prepare and preflight Baichuan-7B pretraining corpora, tokenizer placement, DeepSpeed host\u002Fconfig files, launch command rendering, and checkpoint expectations without executing training.","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\u002Fsub-skills\u002Fpretraining-and-deepspeed\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pretraining-and-deepspeed\ndescription: \"Prepare and preflight Baichuan-7B pretraining corpora, tokenizer\n  placement, DeepSpeed host\u002Fconfig files, launch command rendering, and\n  checkpoint expectations without executing training.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: Apache 2.0\n---\n\n# Baichuan-7B Pretraining and DeepSpeed\n\nUse this sub-skill when the task is about Baichuan-7B pretraining setup, corpus sharding, `tokenizer.model` placement, DeepSpeed JSON\u002Fhostfile validation, rendering the training launch command, checkpoint output expectations, or troubleshooting a failed training launch.\n\nDo **not** use this sub-skill for C-Eval\u002FMMLU benchmark execution or architecture-only inference. Route architecture and model internals questions to `..\u002Farchitecture-and-loading\u002F`; route shared package\u002FAPI and install issues to the root skill's `..\u002F..\u002Freferences\u002Fapi-reference.md` and `..\u002F..\u002Freferences\u002Ftroubleshooting.md`.\n\n## Operating contract\n\n- Treat the original `train.py` as a **launch script**, not an importable API. It parses arguments and initializes distributed DeepSpeed at module import time.\n- Use bundled helpers for safe preflight work:\n  - `scripts\u002Fvalidate_training_inputs.py` checks corpus, tokenizer, hostfile, DeepSpeed JSON, and checkpoint path layout.\n  - `scripts\u002Frender_deepspeed_command.py` renders a `deepspeed ... train.py ...` command without running it.\n- Never execute DeepSpeed training unless the user explicitly asks to run it and provides suitable GPU\u002Fcluster resources, training data, tokenizer, and runtime environment.\n- Keep full training claims bounded: bundled helpers validate inputs and render commands only; DeepSpeed training itself is not run by default.\n\n## Fast routing\n\n| User intent | Read first | Action |\n|---|---|---|\n| \"Prepare Baichuan pretraining data\" | `references\u002Fworkflows.md` | Confirm UTF-8 shard files, shard count as a multiple of total ranks, and tokenizer placement; run `validate_training_inputs.py`. |\n| \"Validate DeepSpeed settings\" | `references\u002Fconfiguration.md` | Parse JSON and hostfile; check ZeRO\u002Fbf16\u002Fmicro-batch expectations; report cluster\u002Fresource assumptions. |\n| \"Render\u002Ftrain command\" | `references\u002Fworkflows.md` | Use `render_deepspeed_command.py`; show the command and warnings, do not launch by default. |\n| \"Where do checkpoints go?\" | `references\u002Fworkflows.md` | Explain `checkpoint_saving_path` and `Epoch-N` tag expectations from `model_engine.save_checkpoint(...)`. |\n| \"Training launch failed\" | `references\u002Ftroubleshooting.md` | Match the symptom to missing tokenizer\u002Fdata, malformed hostfile\u002Fconfig, dependency pins, or GPU\u002Fcluster issues. |\n\n## Required user inputs for preflight\n\nAsk for or infer these paths from the user's active training workspace:\n\n- Corpus directory, defaulting to `data_dir` in the Baichuan demo.\n- SentencePiece tokenizer path, defaulting to `tokenizer.model`.\n- DeepSpeed JSON config path, defaulting to `config\u002Fdeepspeed.json`.\n- DeepSpeed hostfile path, defaulting to `config\u002Fhostfile`.\n- Training entrypoint path if rendering a command, commonly `train.py` in an active checkout or equivalent copied training script.\n- Checkpoint output directory, defaulting to `checkpoints`.\n- Expected total rank count when the hostfile is unavailable.\n\n## Evidence distilled\n\nThis sub-skill is based on the Baichuan-7B training sections in the Chinese and English READMEs, `train.py`, `config\u002Fdeepspeed.json`, `config\u002Fhostfile`, `scripts\u002Ftrain.sh`, and `requirements.txt`. Treat exact `deepspeed==0.9.2`, `torch==2.0.0`, `transformers==4.29.1`, `xformers==0.0.20`, and `sentencepiece==0.1.97` compatibility as a runtime environment concern; the bundled helpers validate layout\u002Fconfiguration and do not prove a full GPU training launch.\n","# Baichuan-7B Pretraining and DeepSpeed\n\nUse this sub-skill when the task is about Baichuan-7B pretraining setup, corpus sharding, `tokenizer.model` placement, DeepSpeed JSON\u002Fhostfile validation, rendering the training launch command, checkpoint output expectations, or troubleshooting a failed training launch.\n\nDo **not** use this sub-skill for C-Eval\u002FMMLU benchmark execution or architecture-only inference. Route architecture and model internals questions to `..\u002Farchitecture-and-loading\u002F`; route shared package\u002FAPI and install issues to the root skill's `..\u002F..\u002Freferences\u002Fapi-reference.md` and `..\u002F..\u002Freferences\u002Ftroubleshooting.md`.\n\n## Operating contract\n\n- Treat the original `train.py` as a **launch script**, not an importable API. It parses arguments and initializes distributed DeepSpeed at module import time.\n- Use bundled helpers for safe preflight work:\n  - `scripts\u002Fvalidate_training_inputs.py` checks corpus, tokenizer, hostfile, DeepSpeed JSON, and checkpoint path layout.\n  - `scripts\u002Frender_deepspeed_command.py` renders a `deepspeed ... train.py ...` command without running it.\n- Never execute DeepSpeed training unless the user explicitly asks to run it and provides suitable GPU\u002Fcluster resources, training data, tokenizer, and runtime environment.\n- Keep full training claims bounded: bundled helpers validate inputs and render commands only; DeepSpeed training itself is not run by default.\n\n## Fast routing\n\n| User intent | Read first | Action |\n|---|---|---|\n| \"Prepare Baichuan pretraining data\" | `references\u002Fworkflows.md` | Confirm UTF-8 shard files, shard count as a multiple of total ranks, and tokenizer placement; run `validate_training_inputs.py`. |\n| \"Validate DeepSpeed settings\" | `references\u002Fconfiguration.md` | Parse JSON and hostfile; check ZeRO\u002Fbf16\u002Fmicro-batch expectations; report cluster\u002Fresource assumptions. |\n| \"Render\u002Ftrain command\" | `references\u002Fworkflows.md` | Use `render_deepspeed_command.py`; show the command and warnings, do not launch by default. |\n| \"Where do checkpoints go?\" | `references\u002Fworkflows.md` | Explain `checkpoint_saving_path` and `Epoch-N` tag expectations from `model_engine.save_checkpoint(...)`. |\n| \"Training launch failed\" | `references\u002Ftroubleshooting.md` | Match the symptom to missing tokenizer\u002Fdata, malformed hostfile\u002Fconfig, dependency pins, or GPU\u002Fcluster issues. |\n\n## Required user inputs for preflight\n\nAsk for or infer these paths from the user's active training workspace:\n\n- Corpus directory, defaulting to `data_dir` in the Baichuan demo.\n- SentencePiece tokenizer path, defaulting to `tokenizer.model`.\n- DeepSpeed JSON config path, defaulting to `config\u002Fdeepspeed.json`.\n- DeepSpeed hostfile path, defaulting to `config\u002Fhostfile`.\n- Training entrypoint path if rendering a command, commonly `train.py` in an active checkout or equivalent copied training script.\n- Checkpoint output directory, defaulting to `checkpoints`.\n- Expected total rank count when the hostfile is unavailable.\n\n## Evidence distilled\n\nThis sub-skill is based on the Baichuan-7B training sections in the Chinese and English READMEs, `train.py`, `config\u002Fdeepspeed.json`, `config\u002Fhostfile`, `scripts\u002Ftrain.sh`, and `requirements.txt`. Treat exact `deepspeed==0.9.2`, `torch==2.0.0`, `transformers==4.29.1`, `xformers==0.0.20`, and `sentencepiece==0.1.97` compatibility as a runtime environment concern; the bundled helpers validate layout\u002Fconfiguration and do not prove a full GPU training launch.\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\u002Fsub-skills\u002Fpretraining-and-deepspeed",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 pretraining-and-deepspeed",{"tool":40,"command":41},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill pretraining-and-deepspeed",{"tool":43,"command":44},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill pretraining-and-deepspeed","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbaichuan-7b\u002Fsub-skills\u002Fpretraining-and-deepspeed\u002FSKILL.md",[47,53,57,61,67],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fconfiguration.md","REFERENCE","参考文档",6059,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbaichuan-7b\u002Fsub-skills\u002Fpretraining-and-deepspeed\u002Freferences\u002Fconfiguration.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Ftroubleshooting.md",7384,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbaichuan-7b\u002Fsub-skills\u002Fpretraining-and-deepspeed\u002Freferences\u002Ftroubleshooting.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fworkflows.md",6808,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbaichuan-7b\u002Fsub-skills\u002Fpretraining-and-deepspeed\u002Freferences\u002Fworkflows.md",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Frender_deepspeed_command.py","SCRIPT","脚本",11367,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbaichuan-7b\u002Fsub-skills\u002Fpretraining-and-deepspeed\u002Fscripts\u002Frender_deepspeed_command.py",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Fvalidate_training_inputs.py",20964,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbaichuan-7b\u002Fsub-skills\u002Fpretraining-and-deepspeed\u002Fscripts\u002Fvalidate_training_inputs.py",[72,79,86,93,100,107],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"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":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"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":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"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":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"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":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"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",[],[]]