Text Generation
Transformers
Safetensors
qwen3
openeurollm
long-context
256k
multilingual
instruction-tuning
sft
conversational
text-generation-inference
Instructions to use openeurollm/oellm-9b-256k-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openeurollm/oellm-9b-256k-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="openeurollm/oellm-9b-256k-sft") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("openeurollm/oellm-9b-256k-sft") model = AutoModelForCausalLM.from_pretrained("openeurollm/oellm-9b-256k-sft", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use openeurollm/oellm-9b-256k-sft 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-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openeurollm/oellm-9b-256k-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/openeurollm/oellm-9b-256k-sft
- SGLang
How to use openeurollm/oellm-9b-256k-sft 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-sft" \ --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": "openeurollm/oellm-9b-256k-sft", "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 "openeurollm/oellm-9b-256k-sft" \ --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": "openeurollm/oellm-9b-256k-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use openeurollm/oellm-9b-256k-sft with Docker Model Runner:
docker model run hf.co/openeurollm/oellm-9b-256k-sft
File size: 1,044 Bytes
ef8dc42 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | {
"model": "/scratch/project_465002530/users/bmoell/qwen35-posttrain/output/oellm9b-256k-sft-bf16",
"n": 1368,
"overall_acc": 23.2,
"by_bucket": {
"civic_safety": 22.4,
"grounded_qa": 58.6,
"instruction_following": 63.2,
"locale_formatting": 0.0,
"no_answer": 0.7,
"reasoning_math": 5.9,
"summarization": 2.6,
"tool_calling": 0.0,
"translationese_preference": 55.9
},
"by_language": {
"bg": 22.2,
"bs": 25.0,
"ca": 30.6,
"cs": 33.3,
"cy": 27.8,
"da": 27.8,
"de": 16.7,
"el": 11.1,
"en": 30.6,
"es": 38.9,
"et": 8.3,
"eu": 27.8,
"fi": 16.7,
"fr": 25.0,
"ga": 27.8,
"gl": 27.8,
"hr": 33.3,
"hu": 30.6,
"is": 16.7,
"it": 25.0,
"lb": 30.6,
"lt": 11.1,
"lv": 16.7,
"mk": 22.2,
"mt": 16.7,
"nl": 16.7,
"no": 33.3,
"pl": 22.2,
"pt": 36.1,
"ro": 19.4,
"ru": 19.4,
"sk": 19.4,
"sl": 19.4,
"sq": 13.9,
"sr": 16.7,
"sv": 33.3,
"tr": 16.7,
"uk": 16.7
}
} |