add-archon-model
Skill by areal-project
Guides an assistant through adding support for a new HuggingFace model architecture to the Archon training engine. It is for developers working on ArchonEngine in the AReaL project.
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/.opencode/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/.opencode/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 agent skill is a step-by-step guide for adding a new HuggingFace model architecture to the Archon training engine. It starts by reading the target model's config.json and modeling source to identify attention, FFN, MoE, RoPE, normalization and weight tying details. It then recommends a reference model, either qwen2 for dense models or qwen3 for models with QK norm or MoE, and walks through the files to create or adapt.
The guide covers args.py, model.py, rope.py, state_dict_adapter.py, parallelize.py and spec.py, plus registration in the package __init__.py. It lists the base class contracts the new code must follow and suggests a roundtrip check for weight key mapping. It is aimed at developers who maintain or extend ArchonEngine in the areal repository.
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 the target model's architecture.
- Select reference modelChooses qwen2 or qwen3 as a starting implementation based on the target model's features.
- Implement model argsAdapts the ModelArgs dataclass and from_hf_config mapping to the target model's hyperparameters.
- Implement model and RoPEGuides changes to normalization, attention, FFN, MoE, transformer blocks and RoPE for the new model.
- Map weight keysExplains how to write the state dict adapter between HuggingFace and Archon key names.
- Set up parallelismDescribes the parallelize function order for TP, EP, CP, AC, torch.compile and FSDP.
- Register model specShows how to assemble a ModelSpec, register it and add the import to __init__.py.
- Verify and testPoints to the existing tests in tests/experimental/archon/ and a roundtrip check for the adapter.
What you need
- A HuggingFace model ID with a config.json that includes model_type
- A copy of the areal repository containing the Archon engine
- Hardware suited to the verification tests
Try asking
- How do I add a new HuggingFace model architecture to ArchonEngine?
- Analyze the config.json of this model and summarize its architecture for Archon
- Which reference model should I start from for a model with QK norm and MoE?
Good to know
- Assumes the target model is a standard decoder-only transformer.
- The state dict adapter step is described as the most error-prone part.
- Verification depends on the hardware available to the user.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .opencode/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 copy for a new Archon model?
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 must match between the HuggingFace config and the Archon model args?
The guide says every field mapping must be checked against the HF config.json, because incorrect mappings cause silent errors downstream.
How is the new model registered in ArchonEngine?
The ModelSpec is registered with register_model_spec when its module is imported. The module is imported from 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.
