language-models
Use this sub-skill for AXLearn's decoder-only language-model catalogs and related tokenizer/model-family helpers.
Typical triggers:
- GPT, C4, Pajama, Fuji, Gala, Honeycrisp, Qwen, or MoE model names.
- Long-context, flash-attention, RoPE, ALiBi, or mesh-shape questions in
axlearn.experiments.text.gpt.
- Tokenizer files such as
bpe_32k.json, bpe_128k.json, Llama-3-tokenizer.json, or Fuji v3 vocabulary helpers.
- Queries about
tokamax, qwix, FlashAttention, or the model-specific trainer catalogs.
If the user is only asking about the shared trainer runtime, config_for_function, or fake-data smoke checks, use ../training-core/ first.
If the user is asking about cloud launch or GCP job execution, use ../cli-cloud/.
What to read
references/overview.md for the GPT catalog structure and major model families.
references/troubleshooting.md for optional dependency and tokenizer-path failures.
scripts/inspect_gpt_configs.py for a safe config-inspection helper.
Families covered
c4_trainer for C4-based training catalogs.
fuji, gala, honeycrisp, gspmd, and qwen for model-family builders and trainer variants.
deterministic_trainer and the Pajama configs for dataset-specific catalog variants.
vocabulary_fuji_v3 for tokenizer compatibility and Llama-3-style tokenizer files.
gala_sigmoid for sigmoid-attention-related config manipulation.
Typical workflows
Inspect exported config names
Use the bundled helper to list the named trainer configs for a module and to inspect one resolved config:
python scripts/inspect_gpt_configs.py --module axlearn.experiments.text.gpt.gala --config 7B
Understand tokenizer wiring
The GPT helpers read tokenizer files from the configured data directory. When DATA_DIR=FAKE, they fall back to the packaged repository data under axlearn/data/tokenizers/.
Route around optional dependencies
Some GPT-family modules pull in extra MoE or flash-attention dependencies at import time. If the import fails, check references/troubleshooting.md before assuming the catalog is unavailable.
Decision points
- Use this sub-skill when the user names a concrete GPT-family architecture or tokenizer file.
- Keep reusable trainer mechanics in
training-core.
- Do not send vision or ASR questions here just because they also use trainer configs.
1---2name: language-models3description: "Routes AXLearn GPT-family trainer catalogs, tokenizer variants,4 MoE configs, and flash-attention workflows."5disable-model-invocation: true6metadata:7 source: https://skillmd.com/skills/vectorspacelab/language-models8 disco-role: operating9license: Apache 2.010---1112# language-models1314Use this sub-skill for AXLearn's decoder-only language-model catalogs and related tokenizer/model-family helpers.1516Typical triggers:1718- GPT, C4, Pajama, Fuji, Gala, Honeycrisp, Qwen, or MoE model names.19- Long-context, flash-attention, RoPE, ALiBi, or mesh-shape questions in `axlearn.experiments.text.gpt`.20- Tokenizer files such as `bpe_32k.json`, `bpe_128k.json`, `Llama-3-tokenizer.json`, or Fuji v3 vocabulary helpers.21- Queries about `tokamax`, `qwix`, `FlashAttention`, or the model-specific trainer catalogs.2223If the user is only asking about the shared trainer runtime, `config_for_function`, or fake-data smoke checks, use `../training-core/` first.24If the user is asking about cloud launch or GCP job execution, use `../cli-cloud/`.2526## What to read2728- `references/overview.md` for the GPT catalog structure and major model families.29- `references/troubleshooting.md` for optional dependency and tokenizer-path failures.30- `scripts/inspect_gpt_configs.py` for a safe config-inspection helper.3132## Families covered3334- `c4_trainer` for C4-based training catalogs.35- `fuji`, `gala`, `honeycrisp`, `gspmd`, and `qwen` for model-family builders and trainer variants.36- `deterministic_trainer` and the Pajama configs for dataset-specific catalog variants.37- `vocabulary_fuji_v3` for tokenizer compatibility and Llama-3-style tokenizer files.38- `gala_sigmoid` for sigmoid-attention-related config manipulation.3940## Typical workflows4142### Inspect exported config names4344Use the bundled helper to list the named trainer configs for a module and to inspect one resolved config:4546```bash47python scripts/inspect_gpt_configs.py --module axlearn.experiments.text.gpt.gala --config 7B48```4950### Understand tokenizer wiring5152The GPT helpers read tokenizer files from the configured data directory. When `DATA_DIR=FAKE`, they fall back to the packaged repository data under `axlearn/data/tokenizers/`.5354### Route around optional dependencies5556Some GPT-family modules pull in extra MoE or flash-attention dependencies at import time. If the import fails, check `references/troubleshooting.md` before assuming the catalog is unavailable.5758## Decision points5960- Use this sub-skill when the user names a concrete GPT-family architecture or tokenizer file.61- Keep reusable trainer mechanics in `training-core`.62- Do not send vision or ASR questions here just because they also use trainer configs.