/ Модель

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

Контекст
16 384 токена
Параметры
1,3 млрд
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
imagine-v10
Библиотека
transformers
Опубликована
8 окт 2026

imagine-v11

Генерация текстаТекст → текст3 профессии

Imagine v11 — локальная языковая модель Interchained для генерации аналитических и обычных запросов PostgreSQL по схеме базы данных и запросу на естественном языке.

74скачиваний за 30 дней1лайквеса обновлены8 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Imagine v11 — языковая модель Interchained для генерации запросов PostgreSQL по описанию схемы и запросу на естественном языке. Это дообученная плотная модель семейства Llama с 1,3 млрд параметров и контекстом 16 384 токена; доступна в форматах Safetensors и GGUF с вариантами квантования. Модель принимает текст и выдаёт текст с SQL, используя протокол блоков с маркерами для запроса или отказа.

Модель предназначена для аналитических и обычных запросов к базам данных PostgreSQL. В v11 улучшена расстановка условий при внешних соединениях, добавлены шаблоны условной агрегации и антисоединений. Карточка сообщает о результате 100% на тестовом наборе из 40 примеров, но этот результат не гарантирует точность на новых схемах и запросах.

Модель может неверно строить SQL для новых шаблонов, неверно трактовать неоднозначные запросы или создавать записи с ошибочными условиями WHERE. Сгенерированные запросы следует проверять, а операции записи — особенно тщательно. Лицензия — Apache-2.0.

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

  • Генерация SQL-запросов PostgreSQL по описанию схемы
  • Подсчёт и суммирование данных с сохранением строк без связанных записей
  • Формирование условной агрегации для аналитических отчётов
  • Поиск записей, для которых отсутствуют связанные данные
  • Подготовка SQL-запросов на добавление или изменение данных с последующей проверкой

Ограничения

На новых шаблонах модель может генерировать неверный SQL и неправильно понимать неоднозначные запросы; запросы записи могут содержать ошибочные условия WHERE. Результаты нужно проверять перед выполнением, особенно операции записи.

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

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

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

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

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

Открыть на Hugging Face

🧠 imagine-v11

100% on held-out. Predicate placement fixed. Analytical SQL, finally real.

Natural language in. Correct PostgreSQL out. ~1B parameters. No GPU. No API key. No metered inference.

eval gate protocol hallucinations runtime licence

Part of project imagine — Interchained


The failure that built v11

v10 was asked, live:

"Every customer with total spending on completed orders, include zeros."

It returned:

SELECT c.id, c.name, COALESCE(SUM(o.total), 0) AS total_spending
FROM customers c
LEFT JOIN orders o ON c.id = o.customer_id
WHERE o.status = 'completed'   -- ← the bug. WHERE runs AFTER the join.
GROUP BY c.id, c.name
ORDER BY total_spending DESC;

The WHERE silently converts the outer join to an inner join. Every zero-spend customer — the exact rows the question asked for — vanishes. The predicate belongs in ON:

SELECT c.id, c.name, COALESCE(SUM(o.total), 0) AS total_spending
FROM customers c
LEFT JOIN orders o ON c.id = o.customer_id AND o.status = 'completed'
GROUP BY c.id, c.name
ORDER BY total_spending DESC, c.id ASC;

v10 knew the shape of the answer but not where the filter lives. v11 does.


🎯 What v11 adds

Where v10 added complex analytical queries, v11 adds predicate placement — knowing where each clause belongs:

  • ON-clause predicates — filters on the nullable side of an outer join live in ON, never WHERE
  • Conditional aggregation — SUM(CASE WHEN ...) patterns for filtered totals
  • Anti-join patterns — NOT EXISTS / LEFT JOIN ... IS NULL for absence queries
  • Analytical templates, actually working — v10's analytical set silently generated zero candidates (a child-detection heuristic that never matched plural table names); v11 fixes the generator and ships 18 real analytical pairs

📊 The numbers

ModelHeld-out (telemetry)ProtocolExecute rateInvented cols
imagine-v850.0% (20/40)100%——
imagine-v990.0% (36/40)100%97.5%0
imagine-v10100.0% (40/40)100%100%0
imagine-v11100.0% (40/40)100%100%0

Perfect score, held. Zero wrong answers. Zero hallucinations. Zero refusals.


🧬 How v11 was built

Two-stage fine-tuning from Interchained/imagine-v10, on an NVIDIA B200:

Stage 1 — Full fine-tune (smoke)

  • Corpus: 3,284 admitted pairs (99.85% gate admit rate)
  • New: Predicate-placement templates (ON-clause, conditional aggregation, anti-join) + working analytical templates
  • Epochs: 3, LR 1e-5, cosine schedule
  • Final loss: 0.0007 (v10 was 0.0052 — 7x better)
  • Time: 3.3 min on B200, 33k tok/s

Stage 2 — LoRA refinement

  • Base: v11-smoke checkpoint
  • Rank: 16, LR 5e-6
  • Epochs: 3
  • Final loss: 0.0000
  • Time: 4.2 min on B200
  • Adapter folded into full checkpoint

The corpus

3,289 candidates forged, 3,284 admitted:

SchemaTemplatesAnalyticalPredicateWritesTotal
shop35639396764
clinic545636280867
library48160262749
fleet29730231531
audit25200126378

Nothing enters training that a live database hasn't agreed with.


🔬 The execution gate

Every candidate goes through L0–L4:

candidate SQL ──► L0  real PostgreSQL parser     not a regex
                 L1  read-only + bounded          no writes, no sleeps
                 L2  EXPLAIN on live schema       hallucinations die HERE
                 L3  execute, timed, capped       real rows
                 L4  SAME ANSWER as ref?          ◄── the one that matters
                                              ▼
                                       admitted to corpus

68/68 gate tests passing. The gate is the truth authority — not a bigger model, not vibes.


📦 Output protocol

SQL wrapped in sentinel blocks:

<<<SQL>>>
SELECT c.id, c.name, COALESCE(SUM(o.total), 0) AS total_spending
FROM customers c
LEFT JOIN orders o ON c.id = o.customer_id AND o.status = 'completed'
GROUP BY c.id, c.name
ORDER BY total_spending DESC, c.id ASC;
<<<END>>>

Can also refuse:

blockmeaning
<<<SQL>>>here is your query
<<<UNANSWERABLE>>>this schema cannot answer that
<<<CLARIFY>>>ambiguous — here's what's missing

⚠️ A truncated generation is not an answer. An unterminated block extracts to nothing.


💻 Loading v11

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "Interchained/imagine-v11"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

# Ask for a predicate-placement query — v10's failure mode
prompt = """Schema:
customers(id, name)
orders(id, customer_id, total, status)

List every customer ID, name, and total completed spending.
Include customers with no completed orders (show 0).
Sort by spending descending, then ID ascending."""

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

with torch.no_grad():
    output = model.generate(inputs["input_ids"], max_new_tokens=256, do_sample=False)

print(tokenizer.decode(output[0], skip_special_tokens=True))

🎯 Identity

The deployed model identity is Imagine.

Built and fine-tuned by Interchained.

DeepSeek-Coder is part of the upstream lineage (via v8 → v9 → v10 → v11), but the deployed identity is Imagine.


⚡ Local-first

Runs on your hardware. No API key. No metered inference. No cloud dependency.


📐 The rules

1 · Don't write a verifier — the engine already shipped one. Real parser. Real planner. Real rows.

2 · Assert the property, not a proxy. Execution accuracy, not string similarity.

3 · Schema goes in the prompt, not in the weights. The model learns "read the schema you were handed" — not memorise ours.


⚠️ Limitations

v11 is a research checkpoint. It may still:

  • generate incorrect SQL on novel patterns
  • misunderstand ambiguous requests
  • produce writes with wrong WHERE clauses — always review before executing

Generated SQL should be reviewed before use in production. This applies doubly to writes.


🔒 Security

Do not rely on model behavior alone for database safety. Production systems should enforce:

  • least-privilege database roles
  • statement timeouts and row limits
  • query validation and schema restrictions
  • application-level authorization
  • audit logging
  • human approval for all write statements

Built by Interchained · ownership at every layer, including the model

3 > 1 — Mark drives, oracle points, Muse builds

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
52ba540

0 моделей