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 in AReaL. It covers the model files, weight key mapping, parallelization and registration.

  • 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/.claude/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 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

A

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

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.

add-archon-model Install

Add to stack

Loading.