Text Generation
Transformers
PyTorch
qwen3
long-context
rope
abf
niah
openeurollm
base-model
128k
text-generation-inference
Instructions to use birgermoell/oellm-9b-128k-theta32m-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use birgermoell/oellm-9b-128k-theta32m-v3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="birgermoell/oellm-9b-128k-theta32m-v3")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("birgermoell/oellm-9b-128k-theta32m-v3") model = AutoModelForCausalLM.from_pretrained("birgermoell/oellm-9b-128k-theta32m-v3") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use birgermoell/oellm-9b-128k-theta32m-v3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "birgermoell/oellm-9b-128k-theta32m-v3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "birgermoell/oellm-9b-128k-theta32m-v3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/birgermoell/oellm-9b-128k-theta32m-v3
- SGLang
How to use birgermoell/oellm-9b-128k-theta32m-v3 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 "birgermoell/oellm-9b-128k-theta32m-v3" \ --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": "birgermoell/oellm-9b-128k-theta32m-v3", "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 "birgermoell/oellm-9b-128k-theta32m-v3" \ --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": "birgermoell/oellm-9b-128k-theta32m-v3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use birgermoell/oellm-9b-128k-theta32m-v3 with Docker Model Runner:
docker model run hf.co/birgermoell/oellm-9b-128k-theta32m-v3
| { | |
| "additional_special_tokens": [ | |
| "<start_of_turn>", | |
| "<end_of_turn>", | |
| "<start_of_image>", | |
| "<end_of_image>", | |
| "<image_soft_token>", | |
| "<fim_prefix>", | |
| "<fim_middle>", | |
| "<fim_suffix>", | |
| "<tool_call>", | |
| "</tool_call>", | |
| "<unused_0>", | |
| "<unused_1>", | |
| "<unused_2>", | |
| "<unused_3>", | |
| "<unused_4>", | |
| "<unused_5>", | |
| "<unused_6>", | |
| "<unused_7>", | |
| "<unused_8>", | |
| "<unused_9>", | |
| "<unused_10>", | |
| "<unused_11>", | |
| "<unused_12>", | |
| "<unused_13>", | |
| "<unused_14>", | |
| "<unused_15>", | |
| "<unused_16>", | |
| "<unused_17>", | |
| "<unused_18>", | |
| "<unused_19>", | |
| "<unused_20>", | |
| "<unused_21>", | |
| "<unused_22>", | |
| "<unused_23>", | |
| "<unused_24>", | |
| "<unused_25>", | |
| "<unused_26>", | |
| "<unused_27>", | |
| "<unused_28>", | |
| "<unused_29>", | |
| "<unused_30>", | |
| "<unused_31>", | |
| "<unused_32>", | |
| "<unused_33>", | |
| "<unused_34>", | |
| "<unused_35>", | |
| "<unused_36>", | |
| "<unused_37>", | |
| "<unused_38>", | |
| "<unused_39>", | |
| "<unused_40>", | |
| "<unused_41>", | |
| "<unused_42>", | |
| "<unused_43>", | |
| "<unused_44>", | |
| "<unused_45>", | |
| "<unused_46>", | |
| "<unused_47>", | |
| "<unused_48>", | |
| "<unused_49>", | |
| "<unused_50>", | |
| "<unused_51>", | |
| "<unused_52>", | |
| "<unused_53>", | |
| "<unused_54>", | |
| "<unused_55>", | |
| "<unused_56>", | |
| "<unused_57>", | |
| "<unused_58>", | |
| "<unused_59>", | |
| "<unused_60>", | |
| "<unused_61>", | |
| "<unused_62>", | |
| "<unused_63>", | |
| "<unused_64>", | |
| "<unused_65>", | |
| "<unused_66>", | |
| "<unused_67>", | |
| "<unused_68>", | |
| "<unused_69>", | |
| "<unused_70>", | |
| "<unused_71>", | |
| "<unused_72>", | |
| "<unused_73>", | |
| "<unused_74>", | |
| "<unused_75>", | |
| "<unused_76>", | |
| "<unused_77>", | |
| "<unused_78>", | |
| "<unused_79>", | |
| "<unused_80>", | |
| "<unused_81>", | |
| "<unused_82>", | |
| "<unused_83>", | |
| "<unused_84>", | |
| "<unused_85>", | |
| "<unused_86>", | |
| "<unused_87>", | |
| "<unused_88>", | |
| "<unused_89>", | |
| "<unused_90>", | |
| "<unused_91>", | |
| "<unused_92>", | |
| "<unused_93>", | |
| "<unused_94>", | |
| "<unused_95>", | |
| "<unused_96>", | |
| "<unused_97>", | |
| "<unused_98>", | |
| "<unused_99>" | |
| ], | |
| "bos_token": { | |
| "content": "<bos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<eos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |