Text Generation
PyTorch
English
recurrent-depth
fineweb-edu

Constoloop

Constoloop is an experimental 214.75M-parameter English language model trained from scratch. Its shared core can run one to three times per token at inference. The model uses a width of 1,024, 16 query heads, eight key/value heads, and alternating gated short convolution and grouped-query attention blocks. The two-block prelude and coda surround a ten-block shared core. The embedding and output weights are tied.

Checkpoints

File Training
base.pt Final pretraining checkpoint, step 38,147
distill-sft.pt Best of three epochs on the original single-turn DeepSeek distillation subset, epoch 2 at step 1,220
ultrachat-sft.pt Best of two epochs on length-filtered UltraChat conversations, epoch 2 at step 1,220
dpo-pilot.pt One local DPO pass over 27 DeepSeek-reviewed preference pairs, initialized from ultrachat-sft.pt

Run locally

Download this repository with the Hugging Face CLI. The weights use a custom PyTorch checkpoint format. The included runner loads them with weights_only=True and fetches the pinned LFM2.5 tokenizer on first use.

hf download aldigobbler/constoloop --local-dir constoloop
cd constoloop
uv run chat.py base.pt --raw --loops 1 --max-new 120 "The history of Dublin begins"
uv run chat.py ultrachat-sft.pt --loops 2 --max-new 120

Training and evaluation

Pretraining used seven shards of FineWeb-Edu from the CC-MAIN-2024-10 crawl, with approximately 4.568B source tokens after tokenization. The run completed 38,147 optimizer steps at 131,072 tokens per step, or about 5.0B token positions processed. It ran on Modal GPUs with Muon and AdamW. At the final step, held-out cross-entropy was 2.694 / 2.634 / 2.628 nats per token for R=1/2/3. The interactive pretraining curves are included in pretrain.html.

Both SFT runs used 19,500 training examples and 500 validation examples and supervised assistant text and its end-of-turn marker. The original distillation run used single-turn prompt/reply pairs. Its best R=2 validation loss was 2.384, compared with 3.388 from the base on that split. UltraChat SFT used complete multi-turn conversations fitting within 1,024 tokens. Its best R=2 validation loss was 1.557, compared with 2.010 from the base on the UltraChat split. Validation losses come from different evaluation sets.

The DPO pilot used DeepSeek V4.1 Flash to generate prompts and review student answers. The local run used R=2, a fixed UltraChat reference, beta 0.1, and AdamW at 5e-6. On eight held-out prompts requiring exact answers and an end token, both the reference and the DPO checkpoint scored 0/8. See dpo-eval.json for the outputs.

Limitations

The base checkpoint can produce readable prose but frequently invents facts. The chat checkpoints can produce stock disclaimers, lose track of earlier turns, miss simple arithmetic, and ignore exact-output constraints. These checkpoints are intended for experimentation.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Datasets used to train aldigobbler/constoloop