Views
No views yet


config.json file:1{
2 "total_ut_steps": 4,
3 "early_exit_threshold": 1.0
4}total_ut_steps: Controls the number of recurrent steps (default: 4). You can adjust this value to trade off between performance and computation time.early_exit_threshold: Controls the adaptive exit mechanism (default: 1.0). Lower values encourage earlier exit, while 1.0 means always use all steps.1from transformers import AutoConfig, AutoModelForCausalLM
2
3config = AutoConfig.from_pretrained("ByteDance/Ouro-1.4B")
4config.total_ut_steps = 3 # Use 3 recurrent steps instead of 4
5model = AutoModelForCausalLM.from_pretrained(
6 "ByteDance/Ouro-1.4B",
7 config=config,
8 device_map="auto"
9)Note: vLLM does not currently support the adaptive exit feature due to its inference optimization characteristics. When using vLLM, the model will always execute the full number oftotal_ut_steps.
| Configuration | Value |
|---|---|
| Parameters | 1.4B |
| Layers | 24 |
| Recurrent Steps | 4 |
| Hidden Size | 2048 |
| Attention Heads | Multi-Head Attention (MHA) |
| FFN Activation | SwiGLU |
| Position Embedding | RoPE |
| Vocabulary Size | 49,152 |
| Context Length | 4K (training), extendable to 64K |
| Normalization | Sandwich RMSNorm |
transformers<4.56.0 to avoid compatibility issues. We recommend transformers==4.54.1 or earlier versions.1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "ByteDance/Ouro-1.4B"
4tokenizer = AutoTokenizer.from_pretrained(model_name)
5model = AutoModelForCausalLM.from_pretrained(
6 model_name,
7 device_map="auto",
8 torch_dtype="auto"
9)
10
11# Generate text
12inputs = tokenizer("The future of AI is", return_tensors="pt").to(model.device)
13outputs = model.generate(**inputs, max_new_tokens=100)
14print(tokenizer.decode(outputs[0], skip_special_tokens=True))1@article{zhu2025scaling,
2 title={Scaling Latent Reasoning via Looped Language Models},
3 author={Zhu, Rui-Jie and Wang, Zixuan and Hua, Kai and Zhang, Tianyu and Li, Ziniu and Que, Haoran and Wei, Boyi and Wen, Zixin and Yin, Fan and Xing, He and others},
4 journal={arXiv preprint arXiv:2510.25741},
5 year={2025}
6}
7
8## License
9
10This model is licensed under Apache-2.0. See the LICENSE file for details.
11
12---