Updating the standard neuron model in artificial neural networks
Paper • 2605.30370 • Published
How to use AXIOM-TECH/Ouro-2.6B-Thinking-IBNN with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="AXIOM-TECH/Ouro-2.6B-Thinking-IBNN", trust_remote_code=True)
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("AXIOM-TECH/Ouro-2.6B-Thinking-IBNN", trust_remote_code=True, device_map="auto")How to use AXIOM-TECH/Ouro-2.6B-Thinking-IBNN with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "AXIOM-TECH/Ouro-2.6B-Thinking-IBNN"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "AXIOM-TECH/Ouro-2.6B-Thinking-IBNN",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/AXIOM-TECH/Ouro-2.6B-Thinking-IBNN
How to use AXIOM-TECH/Ouro-2.6B-Thinking-IBNN with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "AXIOM-TECH/Ouro-2.6B-Thinking-IBNN" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "AXIOM-TECH/Ouro-2.6B-Thinking-IBNN",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "AXIOM-TECH/Ouro-2.6B-Thinking-IBNN" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "AXIOM-TECH/Ouro-2.6B-Thinking-IBNN",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use AXIOM-TECH/Ouro-2.6B-Thinking-IBNN with Docker Model Runner:
docker model run hf.co/AXIOM-TECH/Ouro-2.6B-Thinking-IBNN
import torch, time, gc, sys
from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
assert torch.cuda.is_available()
print(f"GPU : {torch.cuda.get_device_name(0)}")
print(f"VRAM : {torch.cuda.get_device_properties(0).total_memory/1e9:.1f} GB")
torch.backends.cuda.matmul.allow_tf32 = True
torch.backends.cudnn.allow_tf32 = True
tok = AutoTokenizer.from_pretrained("AXIOM-TECH/Ouro-2.6B-Thinking-IBNN", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
"AXIOM-TECH/Ouro-2.6B-Thinking-IBNN",
device_map="auto",
torch_dtype=torch.float16,
trust_remote_code=True,
attn_implementation="sdpa",
)
# Configure custom architecture parameters
model.config.total_ut_steps = 4
model.config.early_exit_threshold = 1.0
model.config.use_cache = True
model.generation_config = GenerationConfig.from_model_config(model.config)
model.generation_config.use_cache = True
model.eval()
model = torch.compile(model, mode="max-autotune")
print(f"VRAM used: {torch.cuda.memory_allocated()/1e9:.2f} GB")
print("Model ready")
@article{zhu2025scaling,
title={Scaling Latent Reasoning via Looped Language Models},
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},
journal={arXiv preprint arXiv:2510.25741},
year={2025}
}
## License
This model is licensed under Apache-2.0. See the LICENSE file for details.
## Project Links
- **Paper**: [Updating the standard neuron model in artificial neural networks](https://arxiv.org/pdf/2605.30370)
- **Paper**: [Scaling Latent Reasoning via Looped Language Models](https://huggingface.co/papers/2510.25741)
- **Project Page**: [https://ouro-llm.github.io](https://ouro-llm.github.io)
- **Code**: [https://github.com/ByteDance/Ouro](https://github.com/ByteDance/Ouro)
---