Text Generation
Transformers
PyTorch
qwen3
long-context
rope
abf
niah
openeurollm
base-model
256k
text-generation-inference
Instructions to use openeurollm/oellm-9b-256k-theta64m-prelude with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openeurollm/oellm-9b-256k-theta64m-prelude with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="openeurollm/oellm-9b-256k-theta64m-prelude")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("openeurollm/oellm-9b-256k-theta64m-prelude") model = AutoModelForCausalLM.from_pretrained("openeurollm/oellm-9b-256k-theta64m-prelude", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use openeurollm/oellm-9b-256k-theta64m-prelude with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "openeurollm/oellm-9b-256k-theta64m-prelude" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openeurollm/oellm-9b-256k-theta64m-prelude", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/openeurollm/oellm-9b-256k-theta64m-prelude
- SGLang
How to use openeurollm/oellm-9b-256k-theta64m-prelude 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 "openeurollm/oellm-9b-256k-theta64m-prelude" \ --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": "openeurollm/oellm-9b-256k-theta64m-prelude", "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 "openeurollm/oellm-9b-256k-theta64m-prelude" \ --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": "openeurollm/oellm-9b-256k-theta64m-prelude", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use openeurollm/oellm-9b-256k-theta64m-prelude with Docker Model Runner:
docker model run hf.co/openeurollm/oellm-9b-256k-theta64m-prelude
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -33,12 +33,14 @@ multilingual portion prevents non-English regression during the 256K stage.
|
|
| 33 |
[`scripts/eval_base_lm_niah.py`](https://github.com/BirgerMoell/openeuro-longctx-datamix). The 256K
|
| 34 |
forward needs multi-GPU (`device_map="auto"` over a full 8-GCD node; one GCD OOMs at 256K).
|
| 35 |
|
| 36 |
-
**@256K** (
|
| 37 |
| depth | 0.0 | 0.25 | 0.5 | 0.75 | 1.0 |
|
| 38 |
|---|---|---|---|---|---|
|
| 39 |
-
| accuracy |
|
| 40 |
|
| 41 |
-
|
|
|
|
|
|
|
| 42 |
(depth 0.5 = 93%, the mild mid-depth softness carried from the 128K model; see that model's card).
|
| 43 |
|
| 44 |
## Architecture
|
|
|
|
| 33 |
[`scripts/eval_base_lm_niah.py`](https://github.com/BirgerMoell/openeuro-longctx-datamix). The 256K
|
| 34 |
forward needs multi-GPU (`device_map="auto"` over a full 8-GCD node; one GCD OOMs at 256K).
|
| 35 |
|
| 36 |
+
**@256K** (7 of 15 languages, 185 trials; full sweep in progress). **Overall 90% (168/185).**
|
| 37 |
| depth | 0.0 | 0.25 | 0.5 | 0.75 | 1.0 |
|
| 38 |
|---|---|---|---|---|---|
|
| 39 |
+
| accuracy | 93% | 86% | 87% | 88% | 100% |
|
| 40 |
|
| 41 |
+
By language: fr 100%, en 98%, pt 96%, pl 93%, de 83%, el 81%, sv 76%. **depth-0 = 93%** confirms
|
| 42 |
+
theta=64M solves far-position retrieval at 256K. Mid-depths (0.25/0.5/0.75) in the mid-80s reflect
|
| 43 |
+
the mild lost-in-the-middle inherited from the 1T base (see 128K-prelude card). 128K retention: 98%.
|
| 44 |
(depth 0.5 = 93%, the mild mid-depth softness carried from the 128K model; see that model's card).
|
| 45 |
|
| 46 |
## Architecture
|