Skip to main content

ArchGene

Verify your LLM architecture before you waste $50K on compute.

Training an LLM costs $10K–$100K+. The #1 reason training fails? Architecture misconfiguration — hidden dimension misalignment, attention bugs, incompatible layer configurations.

ArchGene catches these issues BEFORE you spend on GPU time.

The Problem

You spend $50K on GPU cluster
↓
Start training
↓
Day 3: OOM errors, NaN outputs, training crashes
↓
Why? Hidden dimension not divisible by attention heads
↓
$50K wasted

ArchGene prevents this.

What It Does

Feature What It Tells You
Z3 Verification "Your architecture is mathematically valid" or "Here's what's broken"
Cost Estimation "This will cost $12K to train on 8x A100s"
Benchmark Projections "Expected MMLU score: ~42%"
Model Zoo Compare against GPT-2, Llama-2, Mistral, etc.
Design Session Conversational Q&A that designs a verified architecture for your use case
Kernel Generation Generates runnable PyTorch model.py, config.json, and train.py

Quick Start

# Install
pip install archgene

# Design an architecture through conversational Q&A
archgene design

# Verify your architecture BEFORE training
archgene verify --hidden 4096 --heads 32 --layers 24

# Generate runnable PyTorch code
archgene generate --session 0

# Get cost estimate
archgene cost gpt2 --gpu A100

# Check against known architectures
archgene zoo-evaluate llama2_7b

Why This Matters

  • Don't waste compute: Catch bugs before GPU costs begin
  • Know your bill: Estimate training cost before you start
  • Validate fast: Z3 proves correctness mathematically

Use Cases

  1. Building a custom LLM? Verify architecture before training
  2. Fine-tuning an existing model? Check your config is valid
  3. Comparing architectures? Benchmark against model zoo

CLI Examples

# Verify custom architecture
archgene verify --hidden 4096 --heads 32 --layers 24

# Cost estimation
archgene cost gpt2 --gpu H100 --batch-size 16

# List pre-trained architectures
archgene zoo-list

# Benchmark estimate
archgene benchmark llama2_7b

# Design an architecture through conversational Q&A
archgene design

# Generate runnable PyTorch code from a design
archgene generate -d 4096 -l 32 -n 16 -i 11008

Architecture Parameters

Parameter Description Example Values
vocab_dim Vocabulary size 32000, 50257
hidden_dim Hidden dimension 768, 4096, 8192
num_layers Layer count 12, 24, 32
num_heads Attention heads 8, 16, 32
head_dim Head dimension 64, 128
intermediate_size FFN hidden 2048, 11008

Cost Reference

Model Parameters VRAM (FP16) Training Cost (1T tokens)
GPT-2 176M 0.4 GB ~$50
Llama-2-7B 6.4B 14 GB ~$2,500
Llama-2-70B 70B 145 GB ~$25,000

Tech Stack

  • Python 3.12+
  • Z3 theorem prover (formal verification)
  • PyTorch (code generation)
  • Streamlit (optional web UI: pip install archgene[web])

License

MIT

Metadata

Release files for archgene 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for archgene 0.4.1
File Size Uploaded Provenance Actions
archgene-0.4.1.tar.gz 39.9 kB Without provenance Details for archgene-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for archgene 0.4.1
File Interpreter ABI Platform Actions
archgene-0.4.1-py3-none-any.whl Python 3 none any Details for archgene-0.4.1-py3-none-any.whl

Total release size: 81.0 kB

Release files / archgene-0.4.1.tar.gz

Download URL archgene-0.4.1.tar.gz
Size 39.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bed9a946b96a91b513f9e6ab337ecd57baa3888d59e0538b24214b415a9674fe
BLAKE2b-256 checksum
How to use checksums
0fb058c80062434290322046c39e28b1eee1658ad8f0a1916c51aca2a9dc74a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release files / archgene-0.4.1-py3-none-any.whl

Download URL archgene-0.4.1-py3-none-any.whl
Size 41.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4267ad315bb88dccc48cb720d0cce00bc72bcaf33f6581497dfa24cd0ceedd2
BLAKE2b-256 checksum
How to use checksums
35447233c93faac7f85bdd0bce1c5543c07a4f6021c7e657c70019a42a8ee9b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Security for archgene 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page