/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen3.5-2B
Опубликована
29 окт 2026

askmdb-2b-GGUF

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

Дообученная Qwen3.5-2B преобразует вопросы на испанском или английском о MongoDB в конвейеры aggregate только для чтения.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

askmdb-2b-GGUF — полное дообучение Qwen/Qwen3.5-2B, подготовленное Мануэлем Гарсия Сансом для преобразования вопросов о базе MongoDB на испанском или английском языке в один конвейер aggregate только для чтения. Модель получает в запросе компактное описание схемы и возвращает небольшой JSON-объект с конвейером и кратким пояснением; она предназначена для интеграции в собственные приложения через llama-server, а не для использования в CLI askmdb. Это специализированная модель, а не универсальный чат-ассистент.

Вес опубликован в формате GGUF с квантизацией Q4_K_M и imatrix; размер файла — около 1,27 ГБ. В тесте из 500 примеров, где результат оценивали исполнением запроса, модель верно обработала 434 примера (86,8%). Она может отказаться от запросов на запись и сообщить, если схема не содержит нужных данных, но сама не проверяет безопасность конвейеров. Для использования вне askmdb приложение должно проверять каждый конвейер, а подключение к MongoDB должно выполняться с ролью только для чтения.

Модель ограничена операцией aggregate и не предназначена для find, записи, административных запросов, Atlas Search или векторного поиска. Результаты могут быть ошибочными, особенно для соединений через $lookup; модель знает только поля, переданные в описании схемы, и обучена для фиксированного формата запроса. Лицензия — Apache-2.0.

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

  • Преобразование вопроса на естественном языке в MongoDB aggregate pipeline
  • Создание запросов MongoDB по переданному описанию схемы
  • Встраивание генерации MongoDB-запросов в приложение через llama-server

Ограничения

Предназначена только для aggregate и фиксированного формата запросов; не поддерживает find, запись, Atlas Search и векторный поиск. В тесте верно обработала 86,8% примеров, может выдавать правдоподобные ошибочные конвейеры и сама не проверяет их безопасность.

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

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

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

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

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

Открыть на Hugging Face

askmdb-2b (GGUF)

test: 86.8% GGUF: Q4_K_M · 1.3 GB license: Apache-2.0 askmdb CLI: not used (llama-server only) 🤗 collection: askmdb

A full fine-tune of Qwen/Qwen3.5-2B that turns a question about a MongoDB database, in Spanish or English, into one read-only aggregate pipeline, answered as a small JSON object. It reads a compact description of the database's schema in the prompt, so it works on databases it has never seen. It was trained with the same data and contract as askmdb-0.8b, the default model of askmdb. The askmdb CLI does not use it: it is published for your own applications with llama-server, on CPU or GPU, as a middle step between the 0.8B and the 4B (family).

  • Author: Manuel García Sanz
  • Website: https://manuelgs.com/en/askmdb/
  • Source code of askmdb: https://github.com/manuelgscom/askmdb
  • Format: GGUF, Q4_K_M (imatrix) · 1,274.4 MB
  • Test accuracy: 86.8 % (434/500), scored by execution, versus 47.8 % for Qwen3.5-9B and 45.4 % for Gemma 4 E4B-it without fine-tuning
  • In the askmdb CLI: not used. For llama-server only (why)
  • The askmdb family: four sizes of the same model (0.8B, 2B, 4B, 9B), all in one collection

askmdb live: ask in plain English; it shows the pipeline, explains it, checks that it only reads and runs it (in auto mode, a join asks first). Real, unedited recording with askmdb-0.8b on a desktop CPU. The CLI never uses askmdb-2b; the recording shows the contract it shares with its siblings.

Resumen en español

askmdb-2b es un ajuste completo de Qwen3.5-2B que convierte una pregunta en castellano o en inglés sobre una base de datos MongoDB en un único pipeline de aggregate de solo lectura, con una explicación breve. Lee en el prompt una descripción compacta del esquema, así que sirve para bases que nunca ha visto. La CLI askmdb no lo usa: se publica para usarlo con llama-server en tus propias aplicaciones, en CPU o en GPU. En el test público de 500 casos, puntuado ejecutando cada consulta, acierta 434 de 500 (86,8 %), frente al 47,8 % de Qwen3.5-9B sin ajustar. El modelo no decide la seguridad: dentro de askmdb lo hace un verificador determinista y solo se ejecutan pipelines de lectura; fuera de askmdb no hay verificador, así que revisa siempre la consulta y conéctate con un usuario de solo lectura.

The askmdb family

The same task, data, contract and prompt in four sizes. Scores on the public test set manuelgscom/askmdb-test (500 cases, scored by execution), all in Q4_K_M.

ModelBaseGGUF (Q4_K_M)TestIn the askmdb CLIRepository
askmdb-0.8bQwen3.5-0.8B529.3 MB83.6 %CPU (default and fallback)manuelgscom/askmdb-0.8b-GGUF
askmdb-2bQwen3.5-2B1,274.4 MB86.8 %not used (llama-server only)manuelgscom/askmdb-2b-GGUF (this one)
askmdb-4bQwen3.5-4B2,708.8 MB89.6 %GPU, ≥ 4 GiB free VRAMmanuelgscom/askmdb-4b-GGUF
askmdb-9bQwen3.5-9B5,629.1 MB91.6 %GPU, ≥ 8 GiB free VRAM, if you choose itmanuelgscom/askmdb-9b-GGUF

Which one?

 the askmdb CLI, first run:
   dedicated GPU, ≥ 8 GiB free VRAM ──► you choose: 1) askmdb-4b (Enter, faster)  2) askmdb-9b (more accurate)
   dedicated GPU, ≥ 4 GiB free VRAM ──► askmdb-4b
   anything else (CPU, integrated GPU) ──► askmdb-0.8b on the CPU

 your own application (llama-server, CPU or GPU) ──► any of the four, askmdb-2b included:
                                                     pick by memory and accuracy

Accuracy against model size on the test

What it is and intended use

 your app ──► schema block ──► askmdb-2b   ──────────► your own checks ──────► run it with a
              (db, collections,  (llama-server, CPU   (outside askmdb there    read-only user
               field paths,       or GPU: one          is no verifier: reject
               types, values)     pipeline, refuse     writes, $out, $merge,
                                  or unsure)           unknown stages…)
  • The model proposes; code decides. The model writes one aggregate pipeline (or refuse / unsure). It never decides whether that pipeline is safe to run.
  • Honest when it cannot answer. It answers refuse for writes, administration or off-topic requests, and unsure when the data is not in the schema, instead of inventing a query.
  • Schema-aware. The prompt carries a compact schema block (collections, field paths, types and frequent values), so the field names and spellings come from your database.
  • Same contract as askmdb-0.8b (section below): a drop-in replacement wherever you call that model through llama-server.
  • Outside askmdb there is no verifier. Your application must review every pipeline before running it, and should connect with a MongoDB user that only has the read role.

The model was trained only for this contract. It is not a general chat model.

Not used by the askmdb CLI

The askmdb CLI never downloads or chooses this model: on the CPU it uses askmdb-0.8b, and on a dedicated GPU askmdb-4b or askmdb-9b. askmdb-2b is published for your own applications with llama-server (below), where it fits in less memory than the 4B.

For reference, run through the same engine as the CLI on the reference desktop GPU it takes 0.94 s per question and 1.9 GiB of VRAM.

For context, this is how the askmdb CLI works with its own models.

Times are for the whole askmdb process per question (start, model load, prompt, generation), as the user perceives it, on one reference desktop with a 16 GB GPU (CPU runs with 8 threads): 30 questions, five runs each with the schema already cached and one first question against the database. They depend on the machine. askmdb starts one process per question and loads the weights each time, which is most of the time on the GPU.

Model · devicePer question, schema cached (median / p90)First question against a database (median / p90)VRAM in use
askmdb-0.8b · CPU1.18 s / 1.79 s3.02 s / 3.60 snone
askmdb-0.8b · GPU (with --device gpu)0.72 s / 0.82 s0.79 s / 0.92 s1.2 GiB
askmdb-2b · GPU (reference, not used by the CLI)0.94 s / 1.12 s0.98 s / 1.13 s1.9 GiB
askmdb-4b · GPU1.34 s / 1.68 s1.54 s / 1.85 s3.3 GiB
askmdb-9b · GPU1.85 s / 2.40 s2.14 s / 2.63 s5.5 GiB

Speed and memory of the askmdb models

Safety in askmdb: the read-only verifier

Safety in askmdb is decided by code, not by the model: a write request gets an honest "no", and a hand-written $out hidden in a $facet is blocked by the verifier (shown with its standalone tool, askmdb_verify, built from the same source). Real, unedited recording with askmdb-0.8b; the verifier is the same whatever model runs.

  • A deterministic verifier in C++ walks the exact BSON that would be sent to the server and gives every pipeline a level: read (known read-only stages and operators), warn (reads, but may be expensive or surprising, such as $lookup or $sample: never runs without an explicit yes) or blocked (writes, administration, JavaScript, other databases, or anything it does not understand: never runs, in any mode).
  • The most restrictive part wins, sub-pipelines included ($facet, $lookup, $unionWith). Duplicated keys and multi-key stages are blocked.
  • askmdb only runs aggregate, with a time limit and a row limit. It is not a replacement for access control: connect with a user that has the read role.

Files

FileQuantizationSize (bytes)SHA-256
askmdb-2b-1.0.0-Q4_K_M.ggufQ4_K_M, with imatrix1,274,397,28025b290a7fb50af8897cf9922c39e364e2850019dee85012c3209a06feee9c894
LICENSEApache-2.0
sha256sum askmdb-2b-1.0.0-Q4_K_M.gguf

The GGUF carries general.* metadata (name, author, URL, version, license, base model). The tensors are identical to the file evaluated below; only the metadata was added.

Using it with llama-server (CPU or GPU)

askmdb builds the prompt itself, so none of this is needed to use the CLI. To call the model from your own code, follow the contract (version 1) exactly; the model was trained on this format and nothing else. Reasoning is always disabled.

Prompt

The prompt is Qwen3.5's chat template with thinking disabled (apply_chat_template(..., add_generation_prompt=True, enable_thinking=False)), with two turns only: a system turn (fixed instructions, a blank line, then the schema block) and the question. No few-shot examples, no reasoning.

Instructions (exactly two lines; $$NOW is literal):

Answer the question with one MongoDB aggregate pipeline over the database described below.
Reply with only JSON {"type":"query|refuse|unsure","collection":"...","pipeline":[...],"explanation":"..."}: type is refuse for writes or off-topic requests and unsure if the schema lacks the data, and then collection is "" and pipeline is []; use $$NOW for relative dates; explanation is one short sentence in the language of the question.

Schema block (an invented example database):

db=bakery
## orders
_id oid
placed_at date
customer_id str
channel str ["shop","web","phone"]
status str ["delivered","pending","cancelled"]
total double
items[] obj
items[].product_id str
items[].qty int
## products
_id str
name str
category str ["bread","pastry","cake"]
price double
gluten_free bool
  • First line db=<database>, then one ## <collection> header per collection, in alphabetical order.
  • One line per field path: path type [frequent values]. Dotted paths for subdocuments; items[] is an array and items[].qty a field of its elements. A ? after the path marks a field missing in some sampled documents.
  • Types: oid str int long double decimal bool date obj arr null bin other; mixed types as unions (int|str).
  • Frequent values (a JSON array) only for strings with at most 12 distinct values of at most 30 characters; never values that look like an email or a phone number.
  • Limits: depth 4, at most 40 paths per collection, about 4,500 bytes in total (trimmed deterministically: values first, then the deepest paths). In askmdb the block comes from sampling 200 documents per collection; askmdb --print-schema prints it, so you can reuse exactly the block the CLI would send.

User turn: the question, with whitespace collapsed to single spaces, at most 1000 bytes.

Full prompt string (line breaks shown for readability; \n are real newlines):

<|im_start|>system\n{instructions}\n\n{schema block}<|im_end|>\n<|im_start|>user\n{question}<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n

The prompt ends with an empty <think> block, so the model starts writing the JSON straight away. The schema block has no trailing newline (the template trims every message). Tokenize with special tokens parsed and without BOS. A context of 4096 tokens is enough for the largest schema block plus the answer.

Answer

Exactly one JSON object with exactly these four keys, in this order:

{"type":"query|refuse|unsure","collection":"...","pipeline":[...],"explanation":"..."}
  • type is query, refuse (writes, administration or off-topic) or unsure (the data is not in the schema).
  • With query, collection is one collection of the schema and pipeline is an array of 1 to 20 stages, each an object with a single key. Otherwise collection is "" and pipeline is [].
  • Special values in relaxed Extended JSON: {"$date":"2026-01-01T00:00:00Z"} (UTC), {"$oid":"…"}, and {"$numberDecimal":"…"} only for decimal fields.
  • Relative dates use $$NOW with $dateTrunc / $dateSubtract / $dateAdd inside $expr; MongoDB resolves $$NOW when the pipeline runs.
  • The model adds $limit only when the question asks for a top N; askmdb always appends its own row limit.
  • explanation is one short sentence in the language of the question.
  • Nothing before or after the object. askmdb cuts the output at the closing top-level } and rejects anything else as invalid (it runs nothing).

Decode greedily and cap at 384 tokens (as askmdb does).

Example

llama-server -m askmdb-2b-1.0.0-Q4_K_M.gguf -c 4096 --reasoning off --port 8080

A GPU build of llama.cpp offloads layers to the GPU on its own (-ngl auto; -ngl 99 puts every layer there); add -ngl 0 (or --device none) to keep it on the CPU. Any llama.cpp backend works (CPU, CUDA, Vulkan…); the askmdb CLI uses Vulkan. --reasoning off sets enable_thinking=false for the chat API (checked with llama.cpp v0.7.0; the flag exists since build b8287); older builds use --jinja --chat-template-kwargs '{"enable_thinking":false}', which v0.7.0 still accepts with a deprecation warning.

Raw prompt with /completion (recommended: you control the exact string):

import json, urllib.request

INSTRUCTIONS = (
    "Answer the question with one MongoDB aggregate pipeline over the database described below.\n"
    'Reply with only JSON {"type":"query|refuse|unsure","collection":"...","pipeline":[...],"explanation":"..."}: '
    'type is refuse for writes or off-topic requests and unsure if the schema lacks the data, '
    'and then collection is "" and pipeline is []; use $$NOW for relative dates; '
    "explanation is one short sentence in the language of the question."
)
SCHEMA = """db=bakery
## orders
_id oid
placed_at date
customer_id str
channel str ["shop","web","phone"]
status str ["delivered","pending","cancelled"]
total double
items[] obj
items[].product_id str
items[].qty int
## products
_id str
name str
category str ["bread","pastry","cake"]
price double
gluten_free bool"""
question = "Revenue per sales channel in the last 30 days"

system = INSTRUCTIONS + "\n\n" + SCHEMA
prompt = (
    f"<|im_start|>system\n{system}<|im_end|>\n"
    f"<|im_start|>user\n{question}<|im_end|>\n"
    "<|im_start|>assistant\n<think>\n\n</think>\n\n"
)
body = {"prompt": prompt, "n_predict": 384, "temperature": 0, "top_k": 1}
req = urllib.request.Request("http://127.0.0.1:8080/completion",
                             data=json.dumps(body).encode(),
                             headers={"Content-Type": "application/json"})
answer = json.loads(json.load(urllib.request.urlopen(req))["content"])
print(answer["collection"], json.dumps(answer["pipeline"]))

Chat API with /v1/chat/completions: the server applies the chat template stored in the GGUF; turn reasoning off per request with chat_template_kwargs (or with --reasoning off on the server, as above):

body = {
    "messages": [
        {"role": "system", "content": system},
        {"role": "user", "content": question},
    ],
    "chat_template_kwargs": {"enable_thinking": False},
    "max_tokens": 384, "temperature": 0, "top_k": 1,
}
req = urllib.request.Request("http://127.0.0.1:8080/v1/chat/completions",
                             data=json.dumps(body).encode(),
                             headers={"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(req))["choices"][0]["message"]["content"])

The chat template stored in this GGUF is the one the model was trained with: Qwen3.5's template, which keeps reasoning off unless enable_thinking is true. llama-server, however, passes enable_thinking: true by default (--reasoning auto): without --reasoning off on the server or enable_thinking: false in the request, the prompt ends with an open <think> block, outside the contract: the JSON may come back in reasoning_content with an empty content, or after a reasoning the model was not trained to write. A request's chat_template_kwargs overrides the server flag.

Answers of askmdb-0.8b on that schema; this model answers in exactly the same format:

Question
Revenue per sales channel in the last 30 days
¿Cuáles son los 5 productos con más unidades vendidas este año?
Delete the cancelled orders
Which courier delivered each order?
{"type":"query","collection":"orders","pipeline":[{"$match":{"$expr":{"$gte":["$placed_at",{"$dateSubtract":{"startDate":"$$NOW","unit":"day","amount":30}}]}}},{"$group":{"_id":"$channel","total":{"$sum":"$total"}}}],"explanation":"Sums the order totals per sales channel over the last 30 days."}
{"type":"query","collection":"orders","pipeline":[{"$match":{"$expr":{"$gte":["$placed_at",{"$dateTrunc":{"date":"$$NOW","unit":"year"}}]}}},{"$unwind":"$items"},{"$group":{"_id":"$items.product_id","unidades":{"$sum":"$items.qty"}}},{"$sort":{"unidades":-1}},{"$limit":5}],"explanation":"Muestra los 5 productos con más unidades vendidas este año."}
{"type":"refuse","collection":"","pipeline":[],"explanation":"askmdb only reads data: it cannot delete documents."}
{"type":"unsure","collection":"","pipeline":[],"explanation":"The schema has no courier data for orders."}

Never run a pipeline blindly. Outside askmdb there is no verifier: reject anything that is not a plain read ($out, $merge, unknown stages, JavaScript operators such as $function or $where), and connect with a user that only has the read role.

Evaluation

Test set: manuelgscom/askmdb-test, 500 questions on 10 synthetic MongoDB databases (254 in Spanish, 246 in English; 449 with a query, 31 that must be refused, 20 whose data is not in the schema). Every case is scored by execution: the predicted pipeline runs on the same database as the reference and the results are compared; no model grades the answers.

All models in Q4_K_M, reasoning disabled, greedy decoding, same llama.cpp version, 384-token cap. The askmdb models get the plain contract above, through the askmdb binary. The models without fine-tuning get the same instructions plus six worked examples on a separate example database (few-shot), through llama-server, which helps them.

Overall accuracy on the test

ModelParamsFine-tunedGGUFCorrectAccuracy95 % CI (Wilson)Invalid JSON
Qwen3.5-0.8B0.8 Bno (few-shot)532.5 MB33/5006.6 %4.7–9.1 %258
Qwen3.5-2B2 Bno (few-shot)1,280.8 MB102/50020.4 %17.1–24.2 %72
Gemma 4 E2B-it2 B effectiveno (few-shot)3,106.7 MB221/50044.2 %39.9–48.6 %43
Qwen3.5-4B4 Bno (few-shot)2,740.9 MB187/50037.4 %33.3–41.7 %65
Gemma 4 E4B-it4 B effectiveno (few-shot)4,977.2 MB227/50045.4 %41.1–49.8 %112
Qwen3.5-9B9 Bno (few-shot)5,680.5 MB239/50047.8 %43.5–52.2 %61
askmdb-0.8b0.8 Byes529.3 MB418/50083.6 %80.1–86.6 %3
askmdb-2b2 Byes1,274.4 MB434/50086.8 %83.6–89.5 %3
askmdb-4b4 Byes2,708.8 MB448/50089.6 %86.6–92.0 %1
askmdb-9b9 Byes5,629.1 MB458/50091.6 %88.8–93.7 %2

MB = 10^6 bytes. The Qwen3.5 rows are the published Qwen/Qwen3.5-* models; the Gemma 4 models are the instruction-tuned releases, with effective parameters (their files are larger than a Qwen model with the same count).

Where the errors are

Where the errors are

Metricaskmdb-0.8baskmdb-2baskmdb-4baskmdb-9bQwen3.5-9BGemma 4 E4B-it
Invalid JSON331261112
Wrong type32113418
Wrong collection566233
Blocked by the verifier10134057
Execution error131056
Different result6952423411877
Total wrong82665242261273
Correct refuse (of 31)313131313031
Correct unsure (of 20)1818202003
False refusals (of 449 query cases)1011142

Fine-tuning almost removes format errors (invalid JSON, wrong type, blocked pipelines) and the "when not to answer" errors. Most of the remaining errors are a valid, read-only pipeline that runs but computes something else: 52 of this model's 66 wrong answers.

By language: 86.2 % in Spanish (219/254) and 87.4 % in English (215/246).

By category: the hardest categories for this model are joins ($lookup) (17/31) and relative dates (65/79). Categories are small (a few dozen cases each), so differences of a few cases are noise.

Accuracy by category on the test

CategoryCasesaskmdb-0.8baskmdb-2baskmdb-4baskmdb-9bQwen3.5-9BGemma 4 E4B-it
grouping56454748512928
arrays48334041411725
counting45413939442932
distinct values2419211922126
absolute dates3126293030011
relative dates796765697080
filters62575860585454
joins ($lookup)3115172022136
refuse (writes, off-topic)31313131313031
subdocuments38373537383118
top N35293434311613
unsure (data not in the schema)201818202003

Methodology

  • Independent, synthetic test. 10 databases filled by a seeded generator from declarative specs (published with the test set); half of them come from domains that no training database covers. Each question and its reference pipeline were written by one LLM; an LLM of a different family wrote a second pipeline blind, and a case was kept only when both returned the same result and the reference passed mutation checks (small changes to the pipeline must change the result). The test was frozen with a SHA-256 before any model was evaluated, and the training data was decontaminated against it.
  • Scored by execution, lenient on form, strict on content. Column names, key order, extra columns, numeric types, a date or ObjectId written as a string or rounding to 2 decimals do not matter; a different value, a missing or extra row, or a wrong order (when the question asks for one) do. $$NOW is replaced by each database's fixed reference date, so results do not depend on the day of scoring.
  • A pipeline the askmdb verifier blocks counts as wrong, even if it would return the right data.
  • What it does not measure. The test only keeps questions with one clear answer; real questions can be ambiguous. Verdicts have no manual review. With 500 cases the 95 % interval is about ±3 points, and much wider per category. Each size was trained once (one seed), so neighbouring sizes a few cases apart are not clearly ordered.

Training

BaseQwen/Qwen3.5-2B (revision 15852e8c16360a2fea060d615a32b45270f8a8fc)
MethodFull fine-tune of all weights (no LoRA, no adapters)
Data14,248 training examples, 752 validation
Hyperparameterslr 1e-5 (cosine, 3 % warmup), effective batch 32, 2 epochs with early stopping on the validation loss, max sequence length 896, fp32 master weights with bf16 autocast (F32 tensors kept), 8-bit AdamW, loss on the answer only, seed 3407
Hardware1 GPU with 96 GB, about 50 minutes
QuantizationQ4_K_M with an importance matrix (imatrix) computed on a sample of the training data (never the test)

Data. 15,000 synthetic examples (14,248 for training, 752 for validation), questions in Spanish and English (about half each) on about 110 generated training databases, none of them a test database. They were written with LLM assistance in three ways: a question and two pipelines from two independent LLM authors, kept only when both return the same result; pipelines built by code from intent templates with real values, phrased as questions by an LLM; and templated refuse / unsure cases. Every example passed the output contract, the askmdb verifier, execution on its database with a non-empty result, mutation checks, near-duplicate removal and decontamination against the test. The schema block in each prompt was produced by the askmdb binary itself. The training data and the training scripts are not published.

Limitations

  • aggregate only, read only. No find, no writes: write requests are refused by the model and blocked by askmdb. MongoDB 5.0 or newer.
  • No Atlas Search or vector search ($search, $vectorSearch).
  • It can be wrong: it gets 434 of the 500 test cases right. A wrong pipeline can look plausible and run fine. Always check the result.
  • It is not a security tool. The model can propose a pipeline that writes or is expensive; it does not classify risk. In askmdb the verifier does; outside askmdb, your application must.
  • It only knows what the schema block shows. askmdb samples 200 documents per collection: rare fields can be missing, and very large schemas are trimmed (at most 40 paths per collection, depth 4).
  • Joins ($lookup) are the weakest category for every size.
  • Trained for one task with one fixed prompt. Other prompts, chat use or reasoning mode are unsupported.
  • The askmdb CLI runs on Linux x86_64 (on Windows, through WSL 2). Its GPU support has been tested on NVIDIA only; it uses standard Vulkan, but AMD and Intel GPUs have not been tested yet. The GGUF itself runs anywhere llama.cpp does.

Changes from the base model

  • All weights fine-tuned for the contract above (question + schema block → one aggregate pipeline as JSON, with refuse and unsure).
  • Tokenizer unchanged. Chat template: the Qwen3.5 template the model was trained with, which keeps reasoning off unless enable_thinking is true.
  • Language model only: no vision encoder and no multi-token-prediction head.
  • Converted to GGUF and quantized to Q4_K_M with imatrix; general.* metadata added.

License

Apache-2.0, the same license as the base model Qwen3.5-2B. See LICENSE. The test set manuelgscom/askmdb-test is CC BY 4.0.

MongoDB is a trademark of MongoDB, Inc. askmdb is an independent project, not affiliated with or endorsed by MongoDB, Inc.

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

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

GPU в ailist

llama.cpp

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

Подбираем GPU…

Ревизия весов
46a9596

0 моделей