Text Generation
Transformers
Safetensors
slonik
code
postgresql
software-engineering
reinforcement-learning
Instructions to use dglhf/Slonik with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dglhf/Slonik with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dglhf/Slonik")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("dglhf/Slonik", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dglhf/Slonik with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dglhf/Slonik" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dglhf/Slonik", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/dglhf/Slonik
- SGLang
How to use dglhf/Slonik 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 "dglhf/Slonik" \ --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": "dglhf/Slonik", "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 "dglhf/Slonik" \ --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": "dglhf/Slonik", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use dglhf/Slonik with Docker Model Runner:
docker model run hf.co/dglhf/Slonik
Commit History
Yesterday
-
Refer to the internal harness consistently
Verified signature3170d8d -
Update technical report and related-work references
Verified signature63bdc40 -
Link Slonik-27B MLX quantizations for Apple silicon
Verified signature23411af -
Add technical report citation
Verified signature467e23b -
Update README.md
Verified signatureb5632fb
4 days ago
-
Publish both Slonik models with shared documentation
Verified signature79911fd -
Link standalone Slonik models from the shared research overview
Verified signature8825519 -
Add Apache 2.0 license, attribution and model loading instructions
Verified signature4a95861 -
Link Postgres Professional and simplify card header
Verified signature3bf93ae -
Update README.md
Verified signature725818c -
Update README.md
Verified signature36bb561 -
Publish Slonik technical report and shared model card
Verified signature189bee7