Text Generation
Transformers
Safetensors
English
Chinese
qwen3
recommendation
generative-recommendation
reasoning
itemic-token
pretraining
text-generation-inference
Instructions to use OpenOneRec/OneReason-0.8B-pretrain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenOneRec/OneReason-0.8B-pretrain with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OpenOneRec/OneReason-0.8B-pretrain")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("OpenOneRec/OneReason-0.8B-pretrain") model = AutoModelForMultimodalLM.from_pretrained("OpenOneRec/OneReason-0.8B-pretrain") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OpenOneRec/OneReason-0.8B-pretrain with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenOneRec/OneReason-0.8B-pretrain" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenOneRec/OneReason-0.8B-pretrain", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/OpenOneRec/OneReason-0.8B-pretrain
- SGLang
How to use OpenOneRec/OneReason-0.8B-pretrain 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 "OpenOneRec/OneReason-0.8B-pretrain" \ --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": "OpenOneRec/OneReason-0.8B-pretrain", "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 "OpenOneRec/OneReason-0.8B-pretrain" \ --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": "OpenOneRec/OneReason-0.8B-pretrain", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use OpenOneRec/OneReason-0.8B-pretrain with Docker Model Runner:
docker model run hf.co/OpenOneRec/OneReason-0.8B-pretrain
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,7 +3,6 @@ language:
|
|
| 3 |
- en
|
| 4 |
- zh
|
| 5 |
library_name: transformers
|
| 6 |
-
pipeline_tag: text-generation
|
| 7 |
tags:
|
| 8 |
- recommendation
|
| 9 |
- generative-recommendation
|
|
@@ -11,6 +10,7 @@ tags:
|
|
| 11 |
- itemic-token
|
| 12 |
- qwen3
|
| 13 |
- pretraining
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
# OneReason
|
|
@@ -335,4 +335,4 @@ Please refer to the license file in this repository for the terms governing the
|
|
| 335 |
|
| 336 |
## Acknowledgements
|
| 337 |
|
| 338 |
-
OneReason builds on the open-source LLM and recommendation ecosystem. We thank the Qwen, OpenOneRec, PyTorch, Transformers, and distributed training communities for their foundational contributions.
|
|
|
|
| 3 |
- en
|
| 4 |
- zh
|
| 5 |
library_name: transformers
|
|
|
|
| 6 |
tags:
|
| 7 |
- recommendation
|
| 8 |
- generative-recommendation
|
|
|
|
| 10 |
- itemic-token
|
| 11 |
- qwen3
|
| 12 |
- pretraining
|
| 13 |
+
license: apache-2.0
|
| 14 |
---
|
| 15 |
|
| 16 |
# OneReason
|
|
|
|
| 335 |
|
| 336 |
## Acknowledgements
|
| 337 |
|
| 338 |
+
OneReason builds on the open-source LLM and recommendation ecosystem. We thank the Qwen, OpenOneRec, PyTorch, Transformers, and distributed training communities for their foundational contributions.
|