add-archon-model
Skill by areal-project
Guides an AI assistant through adding support for a new HuggingFace model architecture to the Archon training engine. Aimed at developers who extend ArchonEngine with a new model family.
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/.agents/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/.agents/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 the Archon training engine. It walks through analyzing the target model's config.json and modeling source, choosing a reference model (qwen2 or qwen3), and copying and adapting the model directory. The steps cover args, model, RoPE, state dict adapter, parallelization, and spec registration.
It is written for developers who want to add a new model family, such as Llama, Mistral or DeepSeek, to ArchonEngine. The source says incorrect config field mappings cause silent errors downstream, so each mapping should be checked against config.json. The guide ends with verification steps that point to the existing tests in tests/experimental/archon/.
Written from the project's SKILL.md and checked against it.
What it can do
- Analyze architectureReads config.json and modeling source to list attention, FFN, MoE, RoPE and norm details.
- Select reference modelSuggests qwen2 for dense models or qwen3 when QK norm or MoE support is needed.
- Implement model argsAdapts the ModelArgs dataclass and its from_hf_config field mapping.
- Implement model and RoPEAdapts transformer blocks, attention, FFN and rotary embedding code.
- Map weight keysBuilds the state dict adapter between HuggingFace and Archon key names.
- Set up parallelismDefines a parallelize function covering TP, EP, CP, AC, compile and FSDP.
- Register the model specCreates a ModelSpec with supported_model_types and auto-registers it on import.
- Verify with testsDescribes a state dict roundtrip check and points to existing archon tests.
What you need
- A target model on HuggingFace with config.json and model_type
- Access to the model's HuggingFace modeling source files
Try asking
- How do I add a new Mistral-style model to Archon?
- Walk me through analyzing a HuggingFace model's config.json for Archon.
- Which reference model should I copy for a model with QK norm and MoE?
Good to know
- Assumes a standard decoder-only transformer architecture.
- Test steps depend on available hardware, according to the source.
- Incorrect config field mappings can cause silent errors downstream.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/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
Which reference model should I start from?
The guide suggests qwen2 for dense models with standard GQA and no QK norm. It suggests qwen3 when the target has QK norm or MoE support.
What is the most error-prone step?
The source calls the state dict adapter the most error-prone step. It recommends a roundtrip check from Archon to HF and back.
What must the model provide before starting?
It must be on HuggingFace with a config.json that includes a model_type. The guide assumes a standard decoder-only transformer.
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.
