Text Generation
Transformers
Safetensors
English
gpt2
open-reason
causal-lm
cpu
text-generation-inference
Instructions to use theworker02/open-reason-xl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use theworker02/open-reason-xl with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="theworker02/open-reason-xl")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("theworker02/open-reason-xl") model = AutoModelForCausalLM.from_pretrained("theworker02/open-reason-xl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use theworker02/open-reason-xl with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "theworker02/open-reason-xl" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "theworker02/open-reason-xl", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/theworker02/open-reason-xl
- SGLang
How to use theworker02/open-reason-xl 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 "theworker02/open-reason-xl" \ --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": "theworker02/open-reason-xl", "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 "theworker02/open-reason-xl" \ --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": "theworker02/open-reason-xl", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use theworker02/open-reason-xl with Docker Model Runner:
docker model run hf.co/theworker02/open-reason-xl
Honest XL model card: 443719680 params, 120 CPU steps, NLL 5.8116
Browse files
README.md
CHANGED
|
@@ -12,21 +12,28 @@ datasets:
|
|
| 12 |
base_model: gpt2-scratch
|
| 13 |
---
|
| 14 |
|
| 15 |
-
# Open Reason
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
-
-
|
| 24 |
-
-
|
| 25 |
-
-
|
| 26 |
-
-
|
| 27 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
Related checkpoints (none of these is a 1B model):
|
|
|
|
| 30 |
- Dataset: https://huggingface.co/datasets/theworker02/open-reason
|
| 31 |
- Small: https://huggingface.co/theworker02/open-reason-small
|
| 32 |
- Medium: https://huggingface.co/theworker02/open-reason-medium
|
|
|
|
| 12 |
base_model: gpt2-scratch
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# Open Reason XL (CPU)
|
| 16 |
|
| 17 |
+
GPT-2-style causal LM trained **from scratch** on the Open Reason SFT split.
|
| 18 |
+
Exact parameter count: **443,719,680**. This is **not** a 1B model and is **not**
|
| 19 |
+
`theworker02/open-reason-1b`.
|
| 20 |
|
| 21 |
+
## Training facts
|
| 22 |
+
|
| 23 |
+
- Parameters: 443,719,680 (`sum(p.numel() for p in model.parameters())`)
|
| 24 |
+
- Architecture: n_layer=22, n_embd=1280, n_head=20, vocab=8192, seq=256
|
| 25 |
+
- Steps: 120 (batch 1, gradient accumulation 2, gradient checkpointing)
|
| 26 |
+
- Device: **host CPU** (AMD Ryzen 9 9950X, 32 threads)
|
| 27 |
+
- `torch`: 2.12.0+cpu; `cuda_available=False`; Docker not installed
|
| 28 |
+
- NVIDIA CUDA was not used. AMD GPU / ROCm / DirectML were not used
|
| 29 |
+
- Dataset: [`theworker02/open-reason`](https://huggingface.co/datasets/theworker02/open-reason) pipeline **1.4.0**
|
| 30 |
+
- SFT rows: **3175** (`data/release/all.jsonl`)
|
| 31 |
+
- Final training NLL: **5.8116**
|
| 32 |
+
- License: Apache-2.0
|
| 33 |
+
- No held-out exact-match / coding / math benchmark scores are claimed
|
| 34 |
|
| 35 |
Related checkpoints (none of these is a 1B model):
|
| 36 |
+
|
| 37 |
- Dataset: https://huggingface.co/datasets/theworker02/open-reason
|
| 38 |
- Small: https://huggingface.co/theworker02/open-reason-small
|
| 39 |
- Medium: https://huggingface.co/theworker02/open-reason-medium
|