Instructions to use lix543/LX6-3M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lix543/LX6-3M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="lix543/LX6-3M", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("lix543/LX6-3M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use lix543/LX6-3M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lix543/LX6-3M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lix543/LX6-3M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/lix543/LX6-3M
- SGLang
How to use lix543/LX6-3M with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "lix543/LX6-3M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lix543/LX6-3M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "lix543/LX6-3M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lix543/LX6-3M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use lix543/LX6-3M with Docker Model Runner:
docker model run hf.co/lix543/LX6-3M
Configuration Parsing Warning:In UNKNOWN_FILENAME: "auto_map.AutoTokenizer" must be a string
LX6-3M
A 2,985,492-parameter causal language model pretrained from scratch. Each block combines three components adapted from neuroscience and probability theory.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("lix543/LX6-3M", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("lix543/LX6-3M", trust_remote_code=True)
Custom architecture: trust_remote_code=True is required for the model and the tokenizer. The code is plain PyTorch (no extra packages) and was tested with transformers 4.57.1 and 5.24.1.
Parameters
sum(p.numel() for p in model.parameters()) = 2,985,492. Input and output embeddings are tied and counted once. Vocab 4096, d_model 192, 6 layers, trained with a 256-token context.
Architecture
- Reverse-replay local mixer, inspired by hippocampal sharp-wave-ripple replay: a low-rank (48) backward sweep over a 16-token window.
- Excursion-tree attention (3 global heads, 3 query / 1 KV): attention routed through the lowest common ancestor in a random-walk excursion tree.
- Apical-coincidence FFN, inspired by cortical pyramidal neurons: a two-pass FFN (hidden 416) in which a rank-32 signal from the first pass gates the second. The first pass gets an auxiliary loss (weight 0.3) during training.
Tokenizer: units-first numbers
A byte-level BPE with 4096 entries in which every digit is its own token. The bundled tokenizer reverses each run of digits before encoding ("1234" → "4321"), so the model reads and writes the ones digit first, which is the order in which carries are computed. Decoding restores normal order. Load it with trust_remote_code=True.
In a matched pair of 300M-token runs (same data, seed and schedule), units-first numbers raised ArithMark-3 from 51.4 to 59.8 and the Open SLM Intelligence Index from 10.15 to 12.54.
Training
Run: a 3.2B-token schedule on 4× RTX 4090 (the released checkpoint saw about 2.4B tokens, see below), bf16, AdamW (lr 3e-3, wd 0.1, β 0.9/0.95), 65,536 tokens per step. Schedule: 1% warmup, constant LR, then linear decay to zero over the last 15% of training.
Stable-phase mix (token share):
Share Source 24% FineWeb-Edu 18% Cosmopedia textbooks (stanford, openstax, khanacademy) 10% Cosmopedia WikiHow 7% Cosmopedia auto-math 6% Cosmopedia stories 8% TinyStories 8% Math Q&A: Orca-Math, the GSM subset of MetaMathQA, and the GSM8K train split (main and socratic), written as Question:/Answer:text19% Original procedurally generated grade-school arithmetic stories; every answer is computed exactly Released checkpoint: the weight EMA (decay 0.9995, started at 70% of the run) taken at 75% of the run (step 36,621, about 2.4B tokens), still in the constant-LR phase. It scored higher than the end of the run, so the decay-phase data below is not in the released weights.
Decay-phase mix (used for the full run, not in the released checkpoint): the same sources, shifted toward textbooks, WikiHow, math Q&A and arithmetic, plus 3% science Q&A from the train splits of SciQ (with support passages), QASC (with facts) and OpenBookQA (with facts).
Decontamination: every training document was checked against all scored evaluation texts: HellaSwag validation, every split of ARC-Easy and ARC-Challenge, PIQA validation, ArithMark-3 and Tiny Theory of Mind. Any document sharing a 13-word sequence with any of them was dropped. No benchmark test or validation data was used for training. The only benchmark-derived data in the released weights is the GSM8K train split (GSM8K is not scored on either leaderboard listed below); the SciQ, QASC and OpenBookQA train splits appear only in the decay phase, which the released checkpoint never saw. BananaMind Base Bench was never used for training.
Evaluation (zero-shot, self-run)
lm-evaluation-harness 0.4.13, float32, acc_norm (HellaSwag, ARC-Easy, ARC-Challenge, PIQA); official bencharithmark-3.py with default settings; Tiny Theory of Mind and BananaMind Base Bench 1.1 via the official BETU runner (float32; BananaMind Base Bench on CPU). The BETU Overall Index is computed with the runner's own formula against the leaderboard's model list as of 2026-11-30.
| Checkpoint (this repo = first row) | ARC-E | ARC-C | HellaSwag | PIQA | ArithMark-3 | Tiny ToM | BananaMind Base Bench 1.1 | Open SLM Intelligence Index | BETU Quality / Overall |
|---|---|---|---|---|---|---|---|---|---|
| Released (75% run, EMA) | 32.15 | 22.35 | 27.53 | 53.54 | 63.3 | 31.65 | 35.71 (Elo 880) | 12.78 | 15.16 / 16.68 |
| End of run, EMA | 35.19 | 22.27 | 26.98 | 53.86 | 58.3 | 31.00 | 36.57 (Elo 883) | 12.11 | 14.70 / 16.11 |
| End of run, raw | 34.81 | 22.70 | 26.93 | 54.13 | 54.8 | 31.55 | not run | 11.42 | — |
ArithMark-3 63.3 is the official script's default setting (bfloat16 on GPU); in float32 it is 63.2 (Intelligence Index 12.76). Runs are deterministic: repeating the same setting reproduces every score exactly.
Limitations
This is a research model at a very small scale. It often produces fluent but wrong text and should not be relied on for facts or advice.
- Downloads last month
- -