TheLightArchitect's picture
|
download
raw
6.7 kB
metadata
language:
  - en
license: llama3.3
base_model: unsloth/Llama-3_3-Nemotron-Super-49B-v1_5
tags:
  - nemotron
  - llama
  - lora
  - fine-tuned
  - light-architects
  - text-generation
  - tool-calling
  - agentic
pipeline_tag: text-generation
library_name: transformers

LÆX — Light Architects Exodus

LÆX (Light Architects Exodus) is a LoRA fine-tune of NVIDIA Llama-3.3-Nemotron-Super-49B-v1.5, trained to embody the Light Architects engineering methodology: BCRA risk analysis, CORSO build cycles, QUANTUM investigation, Biblical alignment, and the Builders Cookbook standards.

Private / Research Use Only. Training corpus contains outputs derived from Claude (Anthropic). Commercial use requires a clean-room retrain. See License section.


Model Details

Field Value
Base model unsloth/Llama-3_3-Nemotron-Super-49B-v1_5
Architecture nemotron-nas (DeciLMForCausalLM)
Parameters ~49B
Hidden size 8192
Layers 80
Attention heads 64
Context length 131,072 tokens (128K)
Vocab size 128,256
dtype bfloat16
LoRA rank r=32, alpha=64
LoRA modules q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj

Training

Field Value
Framework Unsloth + TRL
Hardware 4× NVIDIA H100 SXM 80GB
Steps 3,656 / 3,656
Train loss 3.344 (final)
Duration 3h 58m
Cost ~$42.80 (RunPod, $10.76/hr)
Corpus light-architects-corpus-v3-fixed.jsonl
Training examples 30,716
Format Llama 3 chat template

Training completed 2026-03-25. Loss curve: 3.66 → 2.76 by step 1500 → 3.344 final (expected for long-tail generalization on methodology content).


Intended Use

LÆX is purpose-built for the Light Architects internal platform. It is designed to:

  • Execute the CORSO build cycle (SCOUT → FETCH → SNIFF → GUARD → CHASE → HUNT → SCRUM)
  • Apply BCRA (Boundary Chain Risk Analysis) before high-stakes engineering decisions
  • Reason through the QUANTUM investigation methodology (evidence chains, hypothesis testing)
  • Generate code that meets the Builders Cookbook standards (cyclomatic complexity ≤10, 60-line functions, no .unwrap())
  • Serve as the canon keeper for Light Architects constitutional documents

Usage

Requires trust_remote_code=True — the nemotron-nas architecture uses custom Python files (modeling_decilm.py, configuration_decilm.py, and helpers) that must be loaded from the repo.

Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "TheLightArchitect/laex-nemotron-49b"

tokenizer = AutoTokenizer.from_pretrained(
    model_id,
    trust_remote_code=True,
)

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

messages = [
    {
        "role": "system",
        "content": (
            "You are LÆX — the Light Architects AI. You embody the squad's methodology: "
            "CORSO build cycles, QUANTUM investigation, BCRA risk analysis, Biblical alignment, "
            "and the Builders Cookbook standards. You think before acting. You cite evidence. "
            "You serve the mission."
        ),
    },
    {"role": "user", "content": "Run BCRA on deploying a 120B model to RunPod Serverless."},
]

input_ids = tokenizer.apply_chat_template(
    messages,
    tokenize=True,
    add_generation_prompt=True,
    return_tensors="pt",
).to(model.device)

output = model.generate(
    input_ids,
    max_new_tokens=1024,
    temperature=0.7,
    do_sample=True,
)

print(tokenizer.decode(output[0][input_ids.shape[-1]:], skip_special_tokens=True))

HF Inference Endpoints

When creating an endpoint:

  1. Select 2× NVIDIA H100 80GB (recommended) or 2× NVIDIA A100 80GB (budget)
  2. Under Advanced configuration, set environment variables:
    • TRUST_REMOTE_CODE=true
    • MAX_INPUT_LENGTH=65536
    • MAX_TOTAL_TOKENS=65536
  3. Framework: PyTorch (text-generation-inference)
  4. Task: Text Generation
  5. Type: Private

Why 64K context? The NeMo NAS architecture uses 31 no-op attention layers, reducing effective KV layers to 49. At 64K context, KV cache per request is 12.2 GB — leaving 42 GB headroom for 4 concurrent requests on 160 GB hardware.


Hardware Requirements

Use case VRAM Concurrent @ 64K
HF Endpoints (recommended) 2× H100 80GB = 160 GB 4 req
HF Endpoints (budget) 2× A100 80GB = 160 GB 4 req
4-bit quantized (Q4_K_M GGUF) 32–40 GB (single A100 or Mac M4 Ultra) local only

For local inference on Mac, use the Q4_K_M GGUF variant with Ollama (see Modelfile in repo).


Architecture Note

This model uses NVIDIA's NeMo NAS architecture (nemotron-nas / DeciLMForCausalLM), which applies Neural Architecture Search to produce heterogeneous transformer layers — some layers use full attention, others use sliding window or no-attention patterns. This reduces inference compute by ~20% vs. standard dense Llama 3.3 at equivalent quality.

The auto_map in config.json points to custom Python files included in this repo:

{
  "AutoConfig": "configuration_decilm.DeciLMConfig",
  "AutoModelForCausalLM": "modeling_decilm.DeciLMForCausalLM"
}

This is why trust_remote_code=True is required.


License

  • Base model: Llama 3.3 Community License — commercial use permitted under Meta's terms
  • Fine-tune weights (this repo): Private / Research Use Only
    • Training corpus includes outputs derived from Claude (Anthropic API). Anthropic's usage policy prohibits using Claude outputs to train models that compete with Anthropic products. This model is for Light Architects internal research use only. A clean-room retrained version is required before any commercial release.

Citation

@misc{laex2026,
  title        = {LÆX: Light Architects Exodus — Fine-tuned Llama-3.3-Nemotron-Super-49B},
  author       = {The Light Architect (KFT)},
  year         = {2026},
  month        = {March},
  note         = {LoRA fine-tune of nvidia/Llama-3.3-Nemotron-Super-49B-v1.5 on the Light Architects engineering methodology corpus. Private/research use only.},
  howpublished = {HuggingFace Hub, \url{https://huggingface.co/TheLightArchitect/laex-nemotron-49b}}
}

Xet Storage Details

Size:
6.7 kB
·
Xet hash:
7273e99428e0a6807c98754cb0be4a41fe678d216a6c278db3f18e89a520b4bc

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.