/ Модель

Характеристики

Лицензия
Apache 2.0
Библиотека
transformers
Опубликована
5 ноя 2026

Slonik

Генерация текстаТекст → текст3 профессии
0скачиваний за 30 дней7лайковвеса обновлены16 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Slonik — семейство моделей Postgres Professional для исследования кода, отладки и подготовки исправлений в агентных сценариях, особенно при разработке PostgreSQL.

Slonik — семейство моделей для агентного программирования, разработанное компанией Postgres Professional и обученное на задачах разработки PostgreSQL. Репозиторий содержит модели Slonik-27B и Slonik-9B в формате BF16 Safetensors; метаданные указывают библиотеку Transformers. Для карточки заявлена генерация текста, а README описывает рабочие сценарии с кодом и инструментами.

Сценарии применения

  • поиск причин ошибок в исходном коде PostgreSQL
  • подготовка патчей для PostgreSQL
  • реализация встроенных SQL-функций на C
  • отладка расширений PostgreSQL, включая Apache AGE
  • решение задач по репозиториям через агента с инструментами
  • выполнение задач разработки в командной строке

Ограничения

Результаты оценки получены на конечных наборах задач и в заданных лимитах агентного окружения, поэтому не подтверждают готовность изменений для промышленной эксплуатации. В README отмечены ограничения оценки Slonik-9B на SWE-bench Verified и возможное загрязнение обучающих данных исходными корпусами базовых моделей.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Postgres Professional, November 2026
Technical report (PDF)
Models: Slonik-27B, Slonik-9B

Database engines are critical infrastructure, yet their development remains an underexplored setting for coding agents. For PostgreSQL, the model must produce code that preserves database invariants, follows the project's coding conventions, and can pass rigorous community review, including discussion on the PostgreSQL mailing lists.

Related work addresses database tuning in Database Gyms, stepwise query construction in QueryGym, or SQL debugging in SWE-SQL. OpenCook studies database-native function synthesis, a task closer to engine development.

Slonik comprises two language models for agentic coding (Slonik-27B, Slonik-9B), developed at Postgres Professional. We use PostgreSQL engine development to train the models, then test whether their gains extend to general software engineering tasks.

Model Details

PostgreSQL supplies source-level repair tasks, built-in C function tasks, extension tasks, executable feedback for training. The models undergo continued pretraining, supervised fine-tuning, then reinforcement learning with test-based rewards.

ModelStarting checkpointEvaluated RL checkpoint
Slonik-27BQwen3.8-27BDAPO update 116
Slonik-9BQwen3.5-9BDAPO update 177

The starting checkpoints belong to different backbone families, so the comparison does not isolate parameter count. Both models are available as complete BF16 checkpoints in this repository.

The Slonik-9B run later reached update 397, which has no complete five-suite evaluation in this report. Its SWE-bench score at update 177 is provisional; one evaluation round completed 55 of 58 tasks.

Download and Run

ModelFolderFormat
Slonik-27B27B/BF16 Safetensors
Slonik-9B9B/BF16 Safetensors

Each folder contains a complete model with its tokenizer, chat template, configuration files. Select 27B or 9B through the subfolder argument.

Transformers

These examples use Transformers 5.9.0 with Accelerate 1.14.0. Install a PyTorch build appropriate for your hardware.

pip install "transformers==5.9.0" "accelerate==1.14.0"
import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer

model_id = "dglhf/Slonik"
subfolder = "27B"
tokenizer = AutoTokenizer.from_pretrained(model_id, subfolder=subfolder)
model = AutoModelForImageTextToText.from_pretrained(
    model_id, subfolder=subfolder, dtype=torch.bfloat16, device_map="auto",
)
model.eval()

messages = [{"role": "user", "content": "Explain how PostgreSQL MVCC visibility works."}]
prompt = tokenizer.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True, enable_thinking=False,
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.inference_mode():
    outputs = model.generate(
        **inputs, max_new_tokens=512, do_sample=True,
        temperature=1.0, top_p=0.95, top_k=20,
    )
print(tokenizer.decode(outputs[0, inputs.input_ids.shape[1]:], skip_special_tokens=True))

Set subfolder = "9B" to load Slonik-9B. Both checkpoints retain the qwen3_5 architecture. Evaluation concerns text/code workflows; retained vision components are outside its scope.

vLLM

Download the selected folder with snapshot_download.

from huggingface_hub import snapshot_download

snapshot_download(
    "dglhf/Slonik",
    allow_patterns=["27B/*", "LICENSE", "NOTICE", "licenses/*"],
    local_dir="./Slonik",
)
vllm serve ./Slonik/27B \
  --served-model-name Slonik-27B \
  --language-model-only --max-model-len 32768 \
  --enable-auto-tool-choice --tool-call-parser qwen3_coder \
  --default-chat-template-kwargs '{"enable_thinking": false}'

For Slonik-9B, replace 27B with 9B in the download pattern, local path, served model name. Set tensor parallelism to match your GPU configuration. The calling agent supplies tool execution, the conversation loop, task environments.

Apple silicon

For Slonik-27B, kakoka provides MLX quantizations with MTP: oQ4e, oQ6e and oQ8.

Uses

The intended tasks are code investigation, patch generation, debugging within tool-using software agents. Evaluation covers text/code workflows.

Training Details

Slonik training pipeline

  1. Continued pretraining. The selected corpus contains 517 million tokens drawn from a roughly 5-billion-token inventory of PostgreSQL material, systems code, database literature, general replay. Identified evaluation overlap is excluded.
  2. Supervised fine-tuning. Full-parameter training uses 725 agent dialogues with successful tool interactions over executable software tasks.
  3. Agent reinforcement learning. DAPO uses 494 training tasks. Each update retains 16 informative groups of eight attempts. Hidden verification assigns binary rewards. Groups with identical rewards are discarded. LoRA uses rank 16 with scaling 16.

Our internal harness is based on Goose. Uni-Agent connects agent trajectories to verl, with vLLM serving. Training uses eight NVIDIA H200 GPUs in verl's colocate_async mode. Generation shares the GPU pool with optimization, pauses for weight updates, then resumes. Unfinished episodes can cross policy updates; recorded token probabilities support rollout correction.

The Slonik-27B run completed approximately 54 hours of RL on eight H200 GPUs.

Evaluation

Benchmarks

PG17 contains 36 held-out tasks, comprising 18 PostgreSQL 17 repairs plus 18 built-in SQL function implementations in C. It evaluates tasks closest to the PostgreSQL training environments. Repeated evaluation on this suite informed model selection.

PG18 contains 53 separately mined PostgreSQL 18 fixes. It tests transfer to a later release within the same database codebase, moving beyond the PostgreSQL 17 selection suite.

Apache AGE contains 57 tasks in a PostgreSQL graph database extension. It moves evaluation from the database core to a separate extension codebase. Together, PG17, PG18, Apache AGE probe progressively greater changes in task context relative to training.

SWE-bench Verified uses a local 58-task subset of repository-level software issues. It tests whether training in PostgreSQL environments improves issue resolution in software projects outside the training domain.

Terminal-Bench 2.0 uses 56 eligible tasks from a nominal 58-task subset; two tasks were excluded following sandbox failures. Its command-line workflows test generalization to software environments outside PostgreSQL. The public benchmark results concern these local subsets.

Evaluation limits

The evaluation uses a 60-turn limit with a 28,000-token prompt budget. Terminal-Bench additionally enforces its task-specific agent timeouts. Slonik decoding uses temperature 1.0, top-p 0.95, top-k 20. GLM uses low reasoning effort.

Results

Slonik benchmark comparison

Benchmark results from the technical report, pass@1 (%).

ModelPG17PG18Apache AGESWE-bench Verified subsetTerminal-Bench 2.0 subset
Slonik-27B55.643.436.673.345.8
Slonik-9B40.315.116.754.314.3
GLM-5.3-Flash51.939.942.169.047.3
DeepSeek-V4-Flash50.925.819.352.936.9
Qwen3.8-27B31.28.814.653.432.1
GPT-6-Luna*—56.642.1——

* GPT-6-Luna uses Codex, with default reasoning, one attempt per task, no 28,000-token cap. All other models use our internal harness, based on Goose, under the limits above.

Generalization

A separate paired comparison of Slonik-27B against its exact supervised starting checkpoint estimates gains of +10.7 percentage points on PG17, +20.5 on PG18, +5.6 on Apache AGE, +21.6 on the SWE-bench Verified subset. All four reported 95% task-bootstrap intervals exclude zero; the SWE interval is [14.2, 29.7] percentage points. This supports transfer to the measured general software tasks under the recorded harness. The paired study uses a different evaluation snapshot from the cross-model table.

Slonik-9B improves from 21.9% to 40.3% on PG17 relative to its supervised checkpoint. Its comparisons use unequal repetition counts; the 27B confidence intervals do not apply to the 9B results.

Limitations

PG17 informed model selection; several transfer suites were inspected repeatedly. Decontamination covers project-controlled data, not the unknown contents of the original backbone corpora. Hidden tests provide finite checks, so measured task success does not establish production readiness for database changes.

Citation

If you use Slonik models in your research, please cite the model release:

@misc{slonik2026,
  title = {{Slonik}},
  author = {Gilemkhanov, Dmitry and
            Popolitov, Vladlen and
            Baturin, Saveliy and
            Tarasov, Dmitrii and
            Bartunov, Oleg},
  publisher = {Hugging Face},
  year = {2026},
  doi = {10.57967/hf/11607},
  url = {https://doi.org/10.57967/hf/11607}
}

Authors

Dmitry Gilemkhanov, Vladlen Popolitov, Saveliy Baturin, Dmitrii Tarasov, Oleg Bartunov
Postgres Professional

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Ревизия весов
7f4cdc1

0 моделей