Text Generation
Transformers
Safetensors
English
arloop_baseline
arloop
recurrent
custom_code
pretrained
Instructions to use osunlp/PreNormLoop-0.6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use osunlp/PreNormLoop-0.6B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="osunlp/PreNormLoop-0.6B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("osunlp/PreNormLoop-0.6B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use osunlp/PreNormLoop-0.6B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "osunlp/PreNormLoop-0.6B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "osunlp/PreNormLoop-0.6B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/osunlp/PreNormLoop-0.6B
- SGLang
How to use osunlp/PreNormLoop-0.6B 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 "osunlp/PreNormLoop-0.6B" \ --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": "osunlp/PreNormLoop-0.6B", "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 "osunlp/PreNormLoop-0.6B" \ --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": "osunlp/PreNormLoop-0.6B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use osunlp/PreNormLoop-0.6B with Docker Model Runner:
docker model run hf.co/osunlp/PreNormLoop-0.6B
Add paper links, Figure 1 and citation
Browse files- .gitattributes +1 -0
- README.md +17 -1
- assets/figure1.png +3 -0
.gitattributes
CHANGED
|
@@ -1 +1,2 @@
|
|
| 1 |
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 1 |
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
assets/figure1.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -13,11 +13,13 @@ tags:
|
|
| 13 |
|
| 14 |
# PreNormLoop-0.6B
|
| 15 |
|
|
|
|
|
|
|
| 16 |
PreNormLoop is a fully-open pretrained looped transformer with PreNorm residual connections, serving as the baseline for ARLoop. This release
|
| 17 |
contains the final checkpoint of the 0.6B, 180B-token training run.
|
| 18 |
It is a **base pretrained model**, intended for text completion, which can be used for mid-training and post-training.
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
## Load and generate
|
| 23 |
|
|
@@ -70,3 +72,17 @@ Model release: [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
|
| 70 |
| Optimizer step | Training tokens | Revision |
|
| 71 |
| ---: | ---: | --- |
|
| 72 |
| 171,660 (final) | 179,998,556,160 | [main](https://huggingface.co/osunlp/PreNormLoop-0.6B/tree/main) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
# PreNormLoop-0.6B
|
| 15 |
|
| 16 |
+
馃摎 [Paper](https://arxiv.org/abs/2611.05234) 路 馃捇 [Code](https://github.com/OSU-NLP-Group/ARLoop)
|
| 17 |
+
|
| 18 |
PreNormLoop is a fully-open pretrained looped transformer with PreNorm residual connections, serving as the baseline for ARLoop. This release
|
| 19 |
contains the final checkpoint of the 0.6B, 180B-token training run.
|
| 20 |
It is a **base pretrained model**, intended for text completion, which can be used for mid-training and post-training.
|
| 21 |
|
| 22 |
+

|
| 23 |
|
| 24 |
## Load and generate
|
| 25 |
|
|
|
|
| 72 |
| Optimizer step | Training tokens | Revision |
|
| 73 |
| ---: | ---: | --- |
|
| 74 |
| 171,660 (final) | 179,998,556,160 | [main](https://huggingface.co/osunlp/PreNormLoop-0.6B/tree/main) |
|
| 75 |
+
|
| 76 |
+
## Citation
|
| 77 |
+
|
| 78 |
+
```bibtex
|
| 79 |
+
@misc{yao2026arloop,
|
| 80 |
+
title={{ARLoop}: Fully-Open Pre-trained Looped Transformers with Attention Residuals},
|
| 81 |
+
author={Yuekun Yao and Yupei Du and Dawei Zhu and Huan Sun},
|
| 82 |
+
year={2026},
|
| 83 |
+
eprint={2611.05234},
|
| 84 |
+
archivePrefix={arXiv},
|
| 85 |
+
primaryClass={cs.CL},
|
| 86 |
+
url={https://arxiv.org/abs/2611.05234}
|
| 87 |
+
}
|
| 88 |
+
```
|
assets/figure1.png
ADDED
|
Git LFS Details
|