training-core
Routes AXLearn trainer configs, fake-data smoke checks, launcher usage, and tokenizer setup.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- training-core
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes AXLearn trainer configs, fake-data smoke checks, launcher usage, and tokenizer setup.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/troubleshooting.md1.7 KB
- 参考文档references/workflows.md2.9 KB
- 脚本scripts/inspect_trainer_config.py2.5 KB
03 SKILL.md 正文
training-core
Use this sub-skill for AXLearn's shared training machinery:
config_for_function,config_for_class, andConfigurable/Modulepatterns.SpmdTrainer,SpmdEvaler, learners, optimizers, checkpointers, and schedules.axlearn.common.launch_trainer_mainandaxlearn.common.launch_trainer.- Fake-data / CPU-safe tutorial workflows such as the logistic-regression example.
- SentencePiece training and tokenizer plumbing when the task is about training setup rather than a specific model family.
If the task names GPT/Fuji/Gala/Honeycrisp/Qwen/MoE, jump to ../language-models/.
If the task names ImageNet/ResNet/vision models, jump to ../vision-workflows/.
If the task names ASR/Conformer/LibriSpeech, jump to ../audio-asr/.
If the task names axlearn gcp ..., jump to ../cli-cloud/.
What to read
references/workflows.mdfor trainer and fake-data workflows.references/troubleshooting.mdfor install/import/config pitfalls.scripts/inspect_trainer_config.pyfor a safe config-inspection helper.
Typical workflows
Inspect a trainer config
Use this when you want to see what a named trainer config resolves to without launching a long run:
python scripts/inspect_trainer_config.py --module axlearn.experiments.logistic_regression.tutorial --config LogisticRegression
Run a CPU-safe tutorial smoke check
The logistic-regression tutorial is the best small local probe because it uses synthetic data and a short config path:
DATA_DIR=FAKE python -m axlearn.common.launch_trainer_main \
--module=axlearn.experiments.logistic_regression.tutorial \
--config=LogisticRegression \
--trainer_dir=/tmp/axlearn-logreg \
--data_dir=FAKE \
--jax_backend=cpu
Inspect launcher helpers
When debugging launcher behavior, check the shared trainer entrypoints rather than the experiment module first:
axlearn.common.launch_trainer_mainaxlearn.common.launch_trainer.get_trainer_configaxlearn.common.trainer.SpmdTrainer
SentencePiece training
Use this sub-skill for tokenizer setup when the user is creating or validating a sentencepiece model. The command is CPU-oriented and can be memory-hungry, so treat it as a setup workflow, not a quick unit test.
Decision points
- Prefer fake-data or synthetic-data configs when the goal is to validate wiring.
- Prefer named trainer configs when the goal is to inspect config composition or mesh settings.
- Do not route GPT-family catalogs here if the task specifically names Fuji, Gala, Honeycrisp, Qwen, MoE, or flash attention.
- Do not route cloud launch/bundle behavior here; that belongs to
cli-cloud.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp 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.
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.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
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()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert 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.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match 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).