add-archon-model
Skill by areal-project
Guides an assistant through adding support for a new HuggingFace model architecture to the Archon training engine in AReaL. It covers the model files, weight key mapping, parallelization and registration.
Install add-archon-model
Built from the published package, never by AI.
git clone --depth 1 https://github.com/areal-project/AReaL /tmp/AReaL && mkdir -p ~/.claude/skills && cp -r /tmp/AReaL/.claude/skills/add-archon-model ~/.claude/skills/add-archon-modelRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/areal-project/AReaL /tmp/AReaL && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/AReaL/.claude/skills/add-archon-model ~/.gemini/antigravity-cli/skills/add-archon-modelAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a step-by-step guide for adding a new HuggingFace model architecture to ArchonEngine, the Archon training engine in the areal project. It starts by reading the model's config.json and modeling source, then picks a reference model, such as qwen2 or qwen3, to copy from.
It covers adapting the args, model, RoPE, state dict adapter and parallelize files. It then shows how to build a ModelSpec in spec.py, register it, and import it in __init__.py. The last step is staged verification, pointing to the existing tests in tests/experimental/archon/. It is intended for developers who want to support a new model family, such as Llama, Mistral or DeepSeek, in ArchonEngine.
Written from the project's SKILL.md and checked against it.
What it can do
- Analyze model architectureReads a HuggingFace config.json and modeling source to summarize attention, FFN, MoE, RoPE and norm choices.
- Select reference modelSuggests qwen2 or qwen3 as the closest existing implementation to copy from.
- Adapt model filesGuides changes to args.py, model.py and rope.py for the target architecture.
- Map weight keysExplains how to write the state dict adapter between HuggingFace and Archon key names.
- Configure parallelismDescribes the parallelize.py plan for TP, EP, CP, activation checkpointing and FSDP.
- Register model specShows how to create a ModelSpec in spec.py and register it in the Archon package.
What you need
- A HuggingFace model with a config.json that includes model_type
- The HuggingFace model ID of the target model
- The areal repository with the Archon model directory
Try asking
- Help me add a new HuggingFace model to ArchonEngine.
- Which reference model should I copy for a model with QK norm and MoE?
- Walk me through writing the state dict adapter for my new Archon model.
Good to know
- Targets standard decoder-only transformer architectures.
- The source calls the state dict adapter step the most error-prone.
- Verification is adapted to the available hardware.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/add-archon-model/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md19 KB
Alternatives to add-archon-model
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
add-archon-model: common questions
What models does this skill cover?
It covers adding new HuggingFace model architectures to ArchonEngine, such as Llama, Mistral or DeepSeek. The source says the model should use a standard decoder-only transformer architecture.
Which existing models can I copy from?
The source recommends qwen2 for dense models with standard GQA and no QK norm. It recommends qwen3 for models with QK norm or MoE support.
How does the new model get registered?
The skill has the user create a ModelSpec in spec.py with register_model_spec, then import the module in areal/experimental/models/archon/__init__.py.
How do I install add-archon-model?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is add-archon-model free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is add-archon-model safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to add-archon-model?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
