Skip to main content

AXIOM-1: The first EGen Core language model by EGen Labs / ErebusTN (LoopLLM built from existing codebase)

Project description

AXIOM-1 | EGen-Core/AXIOM-1

EGen Labs | ErebusTN

AXIOM-1 is a 130M-parameter recurrent-depth language model built on the LoopLLM architecture. A single shared transformer block is applied 12 times to generate text.

Note: This model is built from scratch by editing the existent AXIOM-1 codebase. It serves as a prototype and testing ground for recurrent-depth models.

Quick Reference

  • Parameters: ~130M (with weight tying)
  • Size: d_model=512, heads=8q/2kv, d_ff=1365, loops=12
  • Precision: bfloat16 ONLY (never float16)
  • Vocab: 32000 (LLaMA-compatible tokenizer)

Installation (PyPI Ready)

You can install AXIOM-1 as a python package directly from the source repository:

pip install .

Once published to PyPI, you can install it via:

pip install axiom1

Running the Google Colab Prototype

We have provided a ready-to-use Google Colab notebook: axiom1_colab_training.ipynb

Features included in the notebook:

  1. Installs the axiom1 package and all dependencies directly.
  2. Loads the official dataset: ErebusTN/axiom1 using the datasets library.
  3. Instantiates the AXIOM-1 model and runs the mandatory 5-step sanity check.
  4. Trains the prototype using PyTorch's native Trainer or loop.
  5. Exports the final model weights and pushes the checkpoint directly to the Hugging Face Hub.

How to use:

  1. Upload axiom1_colab_training.ipynb to Google Colab.
  2. Set your runtime to T4 GPU or higher.
  3. Run all cells. (You will be prompted to log in to Hugging Face to push your model).

Manual Usage

Sanity Check (Required Before Training)

from axiom1.model.config import AXIOM1Config
from axiom1.model.model import AXIOM1
from axiom1.evals.sanity_check import run_sanity_check

cfg = AXIOM1Config()
model = AXIOM1(cfg)
run_sanity_check(model, cfg)

Inference

import torch
from axiom1.model.config import AXIOM1Config
from axiom1.model.model import AXIOM1
from axiom1.inference.generate import generate

cfg = AXIOM1Config()
model = AXIOM1(cfg).to('cuda')
prompt_ids = torch.tensor([[1, 234, 555]], device='cuda')
ids = generate(model, prompt_ids, cfg, max_new_tokens=256)

"One block. Twelve iterations. The first axiom of EGen Core."

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axiom1-1.0.4.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

axiom1-1.0.4-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file axiom1-1.0.4.tar.gz.

File metadata

  • Download URL: axiom1-1.0.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for axiom1-1.0.4.tar.gz
Algorithm Hash digest
SHA256 f83df0f6b2bc0e74754ac32572ff62c2ecbfa92421bc3c13366608b33ce54daa
MD5 93b95f1c4a68e084f34d750739b527c1
BLAKE2b-256 b193e5ccd949237b96aa62b5215c764c71b2553baacfd905f3b4f3a7ce60a13d

See more details on using hashes here.

File details

Details for the file axiom1-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: axiom1-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for axiom1-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 28097ae853a732bbaa55b1c8a4b23edb1a0647d3307886a17881d3418b4302e9
MD5 8410603f45295c89d2b8bdc258bb95d4
BLAKE2b-256 6e8e91d656dcca72aa607f6713677630ff611e78d65e670462ec861038f87d55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page