Run this model with HF Jobs
Run zgcagi/Recurloop-1.3B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/zgcagi/Recurloop-1.3B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/zgcagi/Recurloop-1.3B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/zgcagi/Recurloop-1.3B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/zgcagi/Recurloop-1.3B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use zgcagi/Recurloop-1.3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zgcagi/Recurloop-1.3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="zgcagi/Recurloop-1.3B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("zgcagi/Recurloop-1.3B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use zgcagi/Recurloop-1.3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zgcagi/Recurloop-1.3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zgcagi/Recurloop-1.3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/zgcagi/Recurloop-1.3B
- SGLang
How to use zgcagi/Recurloop-1.3B 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 "zgcagi/Recurloop-1.3B" \ --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": "zgcagi/Recurloop-1.3B", "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 "zgcagi/Recurloop-1.3B" \ --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": "zgcagi/Recurloop-1.3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use zgcagi/Recurloop-1.3B with Docker Model Runner:
docker model run hf.co/zgcagi/Recurloop-1.3B
Rename to Recurloop Transformer and update model card & assets
Browse filesFiles changed (5)
38 unmodified lines39404138 unmodified linesassets/dlt-results.png filter=lfs diff=lfs merge=lfs -textassets/dlt-architecture.png filter=lfs diff=lfs merge=lfs -textassets/dlt-training-decoding.png filter=lfs diff=lfs merge=lfs -text38 unmodified lines39404142434438 unmodified linesassets/dlt-results.png filter=lfs diff=lfs merge=lfs -textassets/dlt-architecture.png filter=lfs diff=lfs merge=lfs -textassets/dlt-training-decoding.png filter=lfs diff=lfs merge=lfs -textassets/recurloop-architecture.png filter=lfs diff=lfs merge=lfs -textassets/recurloop-results.png filter=lfs diff=lfs merge=lfs -textassets/recurloop-training-decoding.png filter=lfs diff=lfs merge=lfs -text
4 unmodified lines56789101112131415161718192021222324252627282930313233343536373839404142434411 unmodified lines565758596061621 unmodified line6465666768694 unmodified lines- base-model- looped-transformer---# DLT-1.3BA base language model from the **Dual Looped Transformer** family, trained on **130B tokens** with a **8,192-token context**.[Model collection](https://huggingface.co/collections/zgcagi/dlt) · [Code](https://github.com/zgcagi/DLT) · [Inference example](https://github.com/zgcagi/DLT/blob/main/examples/generate.py) · [Evaluation](https://github.com/zgcagi/DLT/blob/main/evaluation/README.md)## DLT family results[](https://huggingface.co/zgcagi/DLT-1.3B/resolve/main/assets/dlt-results.png)DLT-1.3B averages **55.65%** across ten tasks, compared with **53.60%** for Qwen3.5-2B-Base (left). The center panel compares models with available training-compute estimates. In a separate 400M experiment on a fixed 84B-token dataset, DLT reaches the looped baseline’s final validation loss using **41.8%** of its training FLOPs (right).## QuickstartFollow the [CUDA installation instructions](https://github.com/zgcagi/DLT#generate), then run this command from the repository root:```bashpython -m examples.generate --model zgcagi/DLT-1.3B \--prompt "The capital of France is" --max-new-tokens 32```The default generator uses two passes, each with its own KV cache. Add `--backend fast` to use the optimized engine.## How DLT worksDLT reuses a shared Transformer core to refine each token’s representation over several depth steps. It also passes the resulting hidden state to the next token position as feedback.[](https://huggingface.co/zgcagi/DLT-1.3B/resolve/main/assets/dlt-architecture.png)Both **(a)** and **(b)** repeat the shared core vertically. In **(b)**, the dark blue arrows carry each position’s final state to the next position. **(c)** shows where the feedback enters. One stream starts with the token embedding alone. The other adds gated feedback from the previous state. Dynamic Hyper-Connections mix the streams during the core iterations.## Training and decoding[](https://huggingface.co/zgcagi/DLT-1.3B/resolve/main/assets/dlt-training-decoding.png)**(a) Training.** Each pass processes all token positions in parallel. The first pass uses zero feedback. On the next pass, position *t* receives the preceding pass’s state from position *t − 1*. In the three-pass example, passes 2 and 3 contribute next-token loss. Pass 1 learns through the feedback it supplies to pass 2.11 unmodified lines| ---: | ---: | ---: | ---: || 73.24 | 41.20 | 41.46 | 54.76 |Generation scores are percentages from the paper’s main comparison using greedy BF16 decoding with two-pass Parallel KV and eight core iterations per pass. The [evaluation guide](https://github.com/zgcagi/DLT/blob/main/evaluation/README.md) documents the task protocols and the prepared inputs needed to rerun them.## Model and training1 unmodified line| ---: | ---: | ---: || 1,292,542,432 | 130B | 8,192 |**Training data:** A curated mixture from the ZGCM-1 training corpus ([ZGCM-DLT-Loop-Data](https://huggingface.co/datasets/zgcagi/ZGCM-DLT-Loop-Data)). The safetensors checkpoint preserves the original FP32 parameters. [Checkpoint provenance](https://huggingface.co/zgcagi/DLT-1.3B/blob/main/provenance.json) records the training step and the checkpoint, export, and tokenizer hashes.**Model sizes** [113M](https://huggingface.co/zgcagi/DLT-113M) · [400M](https://huggingface.co/zgcagi/DLT-400M) · [766M](https://huggingface.co/zgcagi/DLT-766M) · **1.3B**4 unmodified lines56789101112131415161718192021222324252627282930313233343536373839404142434411 unmodified lines565758596061621 unmodified line6465666768694 unmodified lines- base-model- looped-transformer---# Recurloop-1.3BA base language model from the **Recurloop Transformer** family, trained on **130B tokens** with a **8,192-token context**.[Model collection](https://huggingface.co/collections/zgcagi/recurloop) · [Code](https://github.com/zgcagi/Recurloop) · [Inference example](https://github.com/zgcagi/Recurloop/blob/main/examples/generate.py) · [Evaluation](https://github.com/zgcagi/Recurloop/blob/main/evaluation/README.md)## Recurloop family results[](https://huggingface.co/zgcagi/Recurloop-1.3B/resolve/main/assets/recurloop-results.png)Recurloop-1.3B averages **55.65%** across ten tasks, compared with **53.60%** for Qwen3.5-2B-Base (left). The center panel compares models with available training-compute estimates. In a separate 400M experiment on a fixed 84B-token dataset, Recurloop reaches the looped baseline’s final validation loss using **41.8%** of its training FLOPs (right).## QuickstartFollow the [CUDA installation instructions](https://github.com/zgcagi/Recurloop#generate), then run this command from the repository root:```bashpython -m examples.generate --model zgcagi/Recurloop-1.3B \--prompt "The capital of France is" --max-new-tokens 32```The default generator uses two passes, each with its own KV cache. Add `--backend fast` to use the optimized engine.## How Recurloop worksRecurloop reuses a shared Transformer core to refine each token’s representation over several depth steps. It also passes the resulting hidden state to the next token position as feedback.[](https://huggingface.co/zgcagi/Recurloop-1.3B/resolve/main/assets/recurloop-architecture.png)Both **(a)** and **(b)** repeat the shared core vertically. In **(b)**, the dark blue arrows carry each position’s final state to the next position. **(c)** shows where the feedback enters. One stream starts with the token embedding alone. The other adds gated feedback from the previous state. Dynamic Hyper-Connections mix the streams during the core iterations.## Training and decoding[](https://huggingface.co/zgcagi/Recurloop-1.3B/resolve/main/assets/recurloop-training-decoding.png)**(a) Training.** Each pass processes all token positions in parallel. The first pass uses zero feedback. On the next pass, position *t* receives the preceding pass’s state from position *t − 1*. In the three-pass example, passes 2 and 3 contribute next-token loss. Pass 1 learns through the feedback it supplies to pass 2.11 unmodified lines| ---: | ---: | ---: | ---: || 73.24 | 41.20 | 41.46 | 54.76 |Generation scores are percentages from the paper’s main comparison using greedy BF16 decoding with two-pass Parallel KV and eight core iterations per pass. The [evaluation guide](https://github.com/zgcagi/Recurloop/blob/main/evaluation/README.md) documents the task protocols and the prepared inputs needed to rerun them.## Model and training1 unmodified line| ---: | ---: | ---: || 1,292,542,432 | 130B | 8,192 |**Training data:** A curated mixture from the ZGCM-1 training corpus ([ZGCM-Recurloop-Data](https://huggingface.co/datasets/zgcagi/ZGCM-Recurloop-Data)). The safetensors checkpoint preserves the original FP32 parameters. [Checkpoint provenance](https://huggingface.co/zgcagi/Recurloop-1.3B/blob/main/provenance.json) records the training step and the checkpoint, export, and tokenizer hashes.**Model sizes** [113M](https://huggingface.co/zgcagi/Recurloop-113M) · [400M](https://huggingface.co/zgcagi/Recurloop-400M) · [766M](https://huggingface.co/zgcagi/Recurloop-766M) · **1.3B**
.gitattributes+3
README.md+15-15
assets/dlt-architecture.png → assets/recurloop-architecture.pngRenamed

Large File Pointer Details
- SHA256: 272fac76deea34e1ccf5242f361e62c1c39466f06c69e51930d4b4916ff30177
- Pointer size: 131 Bytes
- Size of remote file: 138 kB

Large File Pointer Details
- SHA256: 53c27dc2bd5473f71711951e7d1a103c5ead21a399aab71caab5125c7d4512b7
- Pointer size: 131 Bytes
- Size of remote file: 156 kB
assets/dlt-results.png → assets/recurloop-results.pngRenamed

Large File Pointer Details
- SHA256: e6b131b315a9d5f12693c796cef3605e72e371993afe2df2ea2b882aa53a0dd1
- Pointer size: 131 Bytes
- Size of remote file: 173 kB

Large File Pointer Details
- SHA256: 31cdd16e9359decb23662af77a22ecfcafa0c4143099ca29e6a3e1e09c2d1272
- Pointer size: 131 Bytes
- Size of remote file: 221 kB
assets/dlt-training-decoding.png → assets/recurloop-training-decoding.pngRenamed

Large File Pointer Details
- SHA256: e3f38f5651df1a8179d0168987f623d0834f67cd22d29f9114f6b2c64bcf063b
- Pointer size: 131 Bytes
- Size of remote file: 247 kB

Large File Pointer Details
- SHA256: 94241874e639b849f9f790796102444bac44b8a6ce388bc5c445bed0b4249bb8
- Pointer size: 131 Bytes
- Size of remote file: 274 kB