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
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,6 +14,8 @@ tags:
|
|
| 14 |
|
| 15 |
# Slonik
|
| 16 |
|
|
|
|
|
|
|
| 17 |
**Agentic Coding Models Trained in PostgreSQL Environments**
|
| 18 |
[Postgres Professional](https://postgrespro.com/)
|
| 19 |
November 2026
|
|
@@ -24,8 +26,6 @@ November 2026
|
|
| 24 |
[Slonik-9B weights](https://huggingface.co/dglhf/Slonik/tree/main/9B)
|
| 25 |
[Apache 2.0](LICENSE)
|
| 26 |
|
| 27 |
-
[藞s色on什瑟k] SLOH-nik
|
| 28 |
-
|
| 29 |
**Slonik-27B for Apple silicon:** MLX quantizations with MTP by [kakoka](https://huggingface.co/kakoka), available in [oQ4e](https://huggingface.co/kakoka/Slonik-27B-oQ4e-mtp), [oQ6e](https://huggingface.co/kakoka/Slonik-27B-oQ6e-mtp), [oQ8](https://huggingface.co/kakoka/Slonik-27B-oQ8-mtp).
|
| 30 |
|
| 31 |
Database engines are critical infrastructure, yet their development remains an underexplored setting for coding agents. A PostgreSQL patch must connect systems code with behavior exposed through SQL; successful compilation alone does not establish correctness.
|
|
|
|
| 14 |
|
| 15 |
# Slonik
|
| 16 |
|
| 17 |
+
[藞s色on什瑟k] SLOH-nik
|
| 18 |
+
|
| 19 |
**Agentic Coding Models Trained in PostgreSQL Environments**
|
| 20 |
[Postgres Professional](https://postgrespro.com/)
|
| 21 |
November 2026
|
|
|
|
| 26 |
[Slonik-9B weights](https://huggingface.co/dglhf/Slonik/tree/main/9B)
|
| 27 |
[Apache 2.0](LICENSE)
|
| 28 |
|
|
|
|
|
|
|
| 29 |
**Slonik-27B for Apple silicon:** MLX quantizations with MTP by [kakoka](https://huggingface.co/kakoka), available in [oQ4e](https://huggingface.co/kakoka/Slonik-27B-oQ4e-mtp), [oQ6e](https://huggingface.co/kakoka/Slonik-27B-oQ6e-mtp), [oQ8](https://huggingface.co/kakoka/Slonik-27B-oQ8-mtp).
|
| 30 |
|
| 31 |
Database engines are critical infrastructure, yet their development remains an underexplored setting for coding agents. A PostgreSQL patch must connect systems code with behavior exposed through SQL; successful compilation alone does not establish correctness.
|