Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 87
  • 5.9k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-model

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install add-archon-model in Claude Code

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

A

No 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 →

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.

add-archon-model Install

Add to stack

Loading.