Text Generation
Transformers
Safetensors
English
qwen3_5_text
reasoning
efficient-reasoning
concise-reasoning
qwen3.5
conversational
Instructions to use Boesgaard/Concise-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Boesgaard/Concise-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Boesgaard/Concise-9B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Boesgaard/Concise-9B") model = AutoModelForCausalLM.from_pretrained("Boesgaard/Concise-9B", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Boesgaard/Concise-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Boesgaard/Concise-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Boesgaard/Concise-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Boesgaard/Concise-9B
- SGLang
How to use Boesgaard/Concise-9B 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 "Boesgaard/Concise-9B" \ --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": "Boesgaard/Concise-9B", "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 "Boesgaard/Concise-9B" \ --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": "Boesgaard/Concise-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Boesgaard/Concise-9B with Docker Model Runner:
docker model run hf.co/Boesgaard/Concise-9B
Card: link to the Openhagen blog
Browse filesFiles changed (2)
- MANIFEST.sha256Added+10
- README.md+4
12345678910f5ad57bee8fb2e6736b2d9d6d29611e55bf1943891f42469b3680881ad0d59e9 config.json87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4 tokenizer.json83febe739ecefd99f984f546dfdc10149cedf293b9ee0291b99894341188b613 tokenizer_config.jsona4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715 chat_template.jinjab2d28c61708cf5b06444132b4f5f0b88cfdf7133a5d0f49b169049159c8768e0 model.safetensorsf77c01973749ab5611f3c21332ff59249b06878baf093c4ae3d98ae712fcef11 generation_config.json569664258c6cffb69a3f5ed2e3952bbdeb1418a72881e76662b02758a6b0ef3e README.mdd10fcf2b1aa1e5aa1a7ec8e482974de9ec0df1c4a8794e77e5e9b895190b9f55 assets/banner.png5cb7d277c134f33d9b2d274780134e0c0d18bbb3382fb9cc4ca11c606ec04615 assets/frontier.pngbe0b88f7fcc0c8451415da3a0dde63d8113cc730533dca09679ba24b16a9c364 assets/slack.png95 unmodified lines96979895 unmodified lines## LicenseApache-2.0, inherited from Qwen3.5-9B.95 unmodified lines9697989910010110295 unmodified lines## LicenseApache-2.0, inherited from Qwen3.5-9B.## More from OpenhagenMore of our work is on the [Openhagen blog](https://openhagen.ai/blog).
MANIFEST.sha256Added+10
README.md+4