Text Generation
Transformers
Safetensors
ouro
looped-language-model
reasoning
recurrent-depth
thinking
chain-of-thought
conversational
custom_code
Instructions to use ByteDance/Ouro-2.6B-Thinking with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ByteDance/Ouro-2.6B-Thinking with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ByteDance/Ouro-2.6B-Thinking", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("ByteDance/Ouro-2.6B-Thinking", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ByteDance/Ouro-2.6B-Thinking with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ByteDance/Ouro-2.6B-Thinking" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ByteDance/Ouro-2.6B-Thinking", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ByteDance/Ouro-2.6B-Thinking
- SGLang
How to use ByteDance/Ouro-2.6B-Thinking 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 "ByteDance/Ouro-2.6B-Thinking" \ --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": "ByteDance/Ouro-2.6B-Thinking", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "ByteDance/Ouro-2.6B-Thinking" \ --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": "ByteDance/Ouro-2.6B-Thinking", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ByteDance/Ouro-2.6B-Thinking with Docker Model Runner:
docker model run hf.co/ByteDance/Ouro-2.6B-Thinking
Commit History
-
Updated ids for bos_id, eos_id (#4)
- Updated ids for bos_id, eos_id (0b1039b65898197465c91926d4f75b225016d219) Co-authored-by: Petrov <sirorezka@users.noreply.huggingface.co>f1edd81 -
Added 'pad_token_id'. (#5)
- Added 'pad_token_id'. (5a0ba6d26ddd59f64e527d50f1311a52570e169a) Co-authored-by: Petrov <sirorezka@users.noreply.huggingface.co>bed729a -
rope_type='default' excluded from ROPE_INIT_FUNCTIONS in transfomers >=5.0 (#6)
- rope_type='default' excluded from ROPE_INIT_FUNCTIONS in transfomers >=5.0 (c49969e88ea97b05838040e8b0333a0f63a8fe9f) Co-authored-by: Petrov <sirorezka@users.noreply.huggingface.co>d917c94 -
Fix bos/eos token IDs + add enable_thinking to chat template (#7)
- Fix bos/eos token IDs + add enable_thinking to chat template (86527480e377e83ba045e251374c61001349b77b) Co-authored-by: Kristian Shw <KristianS7@users.noreply.huggingface.co>2d13cf8 -
Fix UniversalTransformerCache.get_mask_sizes for batched generation (#8)
- Fix UniversalTransformerCache.get_mask_sizes for batched generation (7b9f90ad5eb766f3c3559124ad2fe67f885a2a5c) Co-authored-by: Kristian Shw <KristianS7@users.noreply.huggingface.co>3201be3
-
fix BOS/EOS
Verified signature85a074d
-
Update README.md
Verified signaturedafed72 -
Update modeling_ouro.py
Verified signature1855d8a
-
Update Ouro-2.6B-Thinking model card with paper and code links (#1)
Verified signature- Update Ouro-2.6B-Thinking model card with paper and code links (403964e8b37146b2d697c12d3a155a1689333eea) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>a2d3a54
-
Upload folder using huggingface_hub
Verified signatured5d2e61
-
Update README.md
Verified signature007a3d0 -
Upload folder using huggingface_hub
Verified signaturecfe6f63 -
initial commit
Verified signature18f36b9