/ Модель

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

Лицензия
MIT
Архитектура
brasa-gpt · dense
Библиотека
pytorch
Опубликована
13 ноя 2026

brasa-12m

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

Компактная GPT-подобная модель отвечает на вопросы об одном человеке на португальском и английском языках, используя поиск по подготовленной базе фактов.

121скачиваний за 30 дней0лайковвеса обновлены27 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Brasa-12m — компактная GPT-подобная языковая модель, разработанная автором репозитория Yanzino6 и обученная с нуля на PyTorch. Это плотный декодерный трансформер с 12 194 688 параметрами, шестью слоями, шириной 384 и контекстом 384 токена; модель использует byte-level BPE-токенизатор и распространяется в формате safetensors. Она отвечает на вопросы об одном человеке на португальском и английском языках, извлекая подходящие факты из небольшой подготовленной базы знаний. Для поиска сочетаются BM25 и ранжирование, которому модель обучена на тех же вопросах; в браузерной версии можно запускать весь процесс локально. Модель не использует предобученные веса: внешний multilingual-e5-base применялся только как учитель во время обучения и не входит в поставку. Лицензия модели — MIT.

Модель предназначена для узкого сценария вопросно-ответной системы по заданной биографической базе, а не для общего общения, рассуждений или выполнения инструкций. Ответы короткие и близки к формулировкам базы; при ограничении генерации фактами из найденных источников можно избежать добавления неподтверждённых утверждений. Необычная формулировка вопроса может привести к неверному поиску и уверенно звучащему ошибочному ответу, а отказ на вопросы вне области знаний не гарантирован.

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

  • ответы на вопросы по биографической базе знаний
  • поиск фактов о человеке по вопросу на португальском языке
  • поиск фактов о человеке по вопросу на английском языке
  • развёртывание компактного FAQ-помощника в браузере

Ограничения

Модель знает только факты из подготовленной базы, слабо обобщает необычные формулировки, не предназначена для рассуждений, вычислений, многоходового общения или выполнения инструкций. При вопросе вне её области знаний она может не отказаться и выдать правдоподобный, но неверный ответ.

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

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

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

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

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

Открыть на Hugging Face

brasa-12m

Code: https://github.com/yanzino6/brasa

Brasa is a small GPT-style language model written and trained from scratch in PyTorch: the transformer, the byte-level BPE tokenizer, the training loop, the retriever and the browser inference engine are all hand-written, with no pretrained weights and no model libraries. It answers questions about one person, in Portuguese or English, from a small curated knowledge base, and it is small enough to run entirely in a web browser.

Still from scratch: the weights start random and are first trained by this repository's own code as a plain language model on public text (30,000 steps, 737M tokens seen, 282 minutes on the same laptop, validation perplexity 15.1), then on the question corpus. No pretrained weights or tokenizers from anyone else are in the network. One outside model was used, during training only and never shipped: a pretrained teacher whose scores shaped the ranking (see Retrieval). Text: https://huggingface.co/datasets/wikimedia/wikipedia at revision b04c8d1c, dump 2023-11-01, licence CC BY-SA 3.0 and GFDL (Wikipedia text); pt: 117,397 articles, 480 MB (20231101.pt/train-00000-of-00006.parquet), en: 121,508 articles, 480 MB (20231101.en/train-00000-of-00041.parquet).

It is a narrow model on purpose. It is not a general assistant: it knows nothing outside its knowledge base and is trained to say so.

Parameters12,194,688
Architecturedecoder-only transformer, 6 layers, width 384, 6 heads, RMSNorm (pre-norm), rotary position embeddings, SwiGLU, tied embeddings, no biases
Context length384 tokens
Tokenizerbyte-level BPE trained from scratch, 4096 tokens (7 control tokens)
LanguagesPortuguese, English
Training10,000 steps, AdamW, cosine schedule, 248 min on mps
LicenseMIT

Files

FileBytesWhat
config.json1,182model configuration, prompt format, special tokens, context length
model-card.json1,319,223machine-readable evaluation (every number of this card comes from it)
model.safetensors48,782,920float32 weights of the released checkpoint, tied output matrix stored once (rows labelled float32 in the evaluation)
retrieval.json10,581,773BM25 index, fact vectors and the curated facts the model answers from
tokenizer.json38,945BPE merges and control tokens
web/manifest.json2,397manifest of the browser bundle (configuration, sizes, checksums)
web/model.f16.bin24,442,308float16 weights in the TGPT container (rows labelled float16 in the evaluation)
web/model.i8.bin12,364,896int8 weights, one scale per row: the bundle the browser engine loads (rows labelled int8)

The evaluation tables below have a Weights column: float32 is model.safetensors, float16 is web/model.f16.bin and int8 is web/model.i8.bin, each evaluated as stored (the quantised files de-quantised to float32 for scoring). The two web/*.bin files use the single-file "TGPT" container described in the code repository (JSON header with the configuration, the prompt format and the tokenizer, followed by the tensors); int8 stores every matrix with one scale per output row.

How to use

In Python, with the brasa package from the code repository (https://github.com/yanzino6/brasa) and PyTorch:

pip install "git+https://github.com/yanzino6/brasa" safetensors huggingface_hub
import json

from huggingface_hub import snapshot_download
from safetensors.torch import load_file

from brasa.config import GPTConfig, PromptConfig
from brasa.encoder import DenseRetriever
from brasa.model import GPT
from brasa.retrieval import Bm25Retriever
from brasa.sample import answer
from brasa.tokenizer import BPETokenizer

folder = snapshot_download("Yanzino6/brasa-12m")  # or the path of a local copy of this repository
config = json.load(open(f"{folder}/config.json"))

model = GPT(GPTConfig(**{k: v for k, v in config["model"].items() if k != "params"}))
state = load_file(f"{folder}/model.safetensors")
state["lm_head.weight"] = state["tok_emb.weight"]  # tied embeddings
model.load_state_dict(state)
model.eval()

tok = BPETokenizer.load(f"{folder}/tokenizer.json")
index = Bm25Retriever.load(f"{folder}/retrieval.json")
retriever = DenseRetriever.from_index(model, tok, index)  # BM25 fused with the model's own ranking, as on the site

# Retrieval, open-book prompt, then greedy decoding restricted to the retrieved facts and the fixed answers,
# with the retriever's ranking as a prior (the prior stored in retrieval.json): the site's decoding.
out = answer(model, tok, retriever, "Onde o Yan estuda?", PromptConfig(**config["prompt"]), constrain="retrieved")
print(out["answer"])
for hit in out["hits"]:
    print(f"  [{hit.score:.2f}] {hit.text}")

In the browser, with the engine from the code repository (no dependencies, WebAssembly SIMD with a plain JavaScript fallback); the int8 bundle is web/model.i8.bin:

import { BrasaClient } from './engine/index.js';

const client = new BrasaClient(new Worker(new URL('./engine/worker.js', import.meta.url), { type: 'module' }));
await client.load({ model: 'web/model.i8.bin', wasm: 'kernel.wasm', retrieval: 'retrieval.json' });
const run = client.ask('Onde ele mora?', {}, { onToken: (t) => console.log(t.delta) });
console.log((await run.done).text);

Prompt format

open-book    <|bos|><|ctx|>fact<|sep|>fact<|sep|>fact<|q|>question<|a|>answer<|eos|>
closed-book  <|bos|><|q|>question<|a|>answer<|eos|>

Facts are ranked by two signals added together: BM25 over the knowledge base (retrieval.json: words and character trigrams of the facts, their topic names and the training questions) and the model's own opinion. The same network that writes the answer is also trained, with a contrastive loss, to put a question next to the fact that answers it: the browser runs it once over the question, pools its final hidden states into one vector and compares it with the precomputed vectors of the facts (int8, inside retrieval.json; fusion weight 3.0). On held-out test questions the gold fact is the first hit for 71.7% (BM25 alone: 50.3%) and among the first four for 93.0% (78.5%). Distillation: during training only, a teacher (intfloat/multilingual-e5-base at revision d1287505, 2 epochs of fine-tuning on the training questions alone) scored the training questions against the facts, and the learned ranking was pulled towards those scores (KL weight 1.0, 8 teacher facts per question as extra negatives). The teacher is not shipped, its weights are not used and Brasa's weights still start random. For reference, the teacher itself (mean of its 4 cross-fitted folds) finds the gold fact first for 80.2% of the held-out test questions that have one gold fact (1,064) and among the first four for 96.5% (not a Brasa result, and not the same questions as Brasa's figures above, which also count multi-fact questions). Up to 4 facts are put in the prompt. Out-of-scope questions are answered with a short refusal in the language of the question.

Evaluation

Greedy decoding. "Seen" are training questions; "held-out" are questions whose wording never occurs in training (written to be phrased differently: most share less than a third of their words with every training phrasing of the same fact), plus small talk and out-of-scope questions never seen.

Decoding modes. Free: the model writes whatever it wants. Any curated sentence: every step may only continue one of the curated sentences of the knowledge base (or a fixed greeting / refusal), so the answer is always a real fact, possibly the wrong one. Retrieved facts only: the same, restricted to the facts the retriever put in the prompt; every statement and number in the answer is then one the visitor can see in the sources. Retrieved facts + ranking prior (the site's default): the same, and the retriever's ranking counts as a prior on the model's choice, so a fact the retriever put lower has to be that much more likely for the model to win; it costs no extra computation. Retriever's first fact uses no model: it is the baseline the open-book rows have to beat, and it can never decline a question.

EM is normalised exact match against the one gold answer, F1 is token-level, "key spans" is the share of required names and numbers present in the answer, "bad numbers" is the share of numbers in the answers that appear neither in the gold answer, nor in the retrieved facts, nor in the question (with constrained decoding these are numbers of other real facts, not inventions).

WeightsModeQuestionsnEMF1EM in scopeKey spansRefusal PRefusal RLanguageBad numbers
float32open-book, freeseen (training)30098.3%99.0%98.2%99.6%100.0%100.0%99.7%0.0%
float32open-book, freeheld-out (validation)126469.6%78.9%68.9%85.7%84.6%80.5%99.9%1.1%
float32open-book, freeheld-out (test)129268.0%77.6%66.8%83.8%87.2%80.9%99.6%0.8%
float32open-book, freeheld-out (final)122470.1%78.7%69.0%86.0%85.6%80.9%99.8%0.4%
float32closed-book, freeseen (training)30095.0%96.8%94.7%98.9%100.0%100.0%100.0%0.6%
float32closed-book, freeheld-out (validation)126451.4%65.8%49.0%73.9%82.8%87.8%99.8%27.3%
float32closed-book, freeheld-out (test)129253.1%66.5%50.5%74.1%86.4%80.9%99.5%28.2%
float32closed-book, freeheld-out (final)122454.7%67.9%51.9%74.9%82.9%83.6%99.7%27.6%
float32open-book, any curated sentenceseen (training)30098.3%99.0%98.2%99.6%100.0%100.0%99.7%0.0%
float32open-book, any curated sentenceheld-out (validation)126469.6%78.8%68.9%85.5%84.6%80.5%99.9%1.3%
float32open-book, any curated sentenceheld-out (test)129268.0%77.5%66.8%83.6%87.2%80.9%99.6%1.0%
float32open-book, any curated sentenceheld-out (final)122470.2%78.7%69.1%86.0%85.6%80.9%99.8%0.4%
float32closed-book, any curated sentenceseen (training)30095.0%96.9%94.7%98.9%100.0%100.0%100.0%1.2%
float32closed-book, any curated sentenceheld-out (validation)126451.5%65.8%49.1%73.6%82.8%87.8%99.8%26.9%
float32closed-book, any curated sentenceheld-out (test)129253.2%66.6%50.7%74.0%86.4%80.9%99.5%28.3%
float32closed-book, any curated sentenceheld-out (final)122454.7%67.7%51.9%74.4%82.9%83.6%99.7%28.3%
float32open-book, retrieved facts onlyseen (training)30098.3%99.0%98.2%99.6%100.0%100.0%99.7%0.0%
float32open-book, retrieved facts onlyheld-out (validation)126470.0%79.0%69.3%85.8%84.6%80.5%99.9%0.0%
float32open-book, retrieved facts onlyheld-out (test)129268.0%77.5%66.8%83.6%86.4%80.9%99.6%0.0%
float32open-book, retrieved facts onlyheld-out (final)122470.6%79.0%69.6%86.3%85.6%80.9%99.8%0.0%
float32open-book, retrieved facts + ranking prior (site default)seen (training)30098.3%99.0%98.2%99.6%100.0%100.0%99.7%0.0%
float32open-book, retrieved facts + ranking prior (site default)held-out (validation)126475.2%82.8%74.8%88.3%84.6%80.5%99.8%0.0%
float32open-book, retrieved facts + ranking prior (site default)held-out (test)129271.8%80.3%70.8%86.1%86.5%81.8%99.6%0.0%
float32open-book, retrieved facts + ranking prior (site default)held-out (final)122473.9%81.3%73.2%87.7%85.6%80.9%99.7%0.0%
float32retriever's first fact (no model)seen (training)30089.7%92.3%95.4%98.0%n/a0.0%99.3%0.0%
float32retriever's first fact (no model)held-out (validation)126466.8%76.4%71.5%86.3%n/a0.0%100.0%0.0%
float32retriever's first fact (no model)held-out (test)129262.8%73.0%68.7%84.7%n/a0.0%99.7%0.0%
float32retriever's first fact (no model)held-out (final)122468.2%75.3%75.0%88.8%n/a0.0%99.8%0.0%
float16open-book, freeheld-out (validation)126469.8%79.0%69.0%85.7%85.7%80.5%99.9%1.1%
float16open-book, freeheld-out (test)129268.0%77.6%66.8%83.8%87.2%80.9%99.6%0.8%
float16open-book, freeheld-out (final)122470.1%78.7%69.0%86.0%85.6%80.9%99.8%0.4%
float16closed-book, freeheld-out (validation)126451.5%65.9%49.1%73.9%82.8%87.8%99.8%27.3%
float16closed-book, freeheld-out (test)129253.1%66.5%50.5%74.1%86.4%80.9%99.5%28.2%
float16closed-book, freeheld-out (final)122454.7%67.9%51.9%74.9%82.9%83.6%99.7%27.6%
float16open-book, any curated sentenceheld-out (validation)126469.8%78.9%69.0%85.5%85.7%80.5%99.9%1.3%
float16open-book, any curated sentenceheld-out (test)129268.0%77.5%66.8%83.6%87.2%80.9%99.6%1.0%
float16open-book, any curated sentenceheld-out (final)122470.2%78.7%69.1%86.0%85.6%80.9%99.8%0.4%
float16closed-book, any curated sentenceheld-out (validation)126451.6%65.9%49.1%73.6%82.8%87.8%99.8%26.9%
float16closed-book, any curated sentenceheld-out (test)129253.2%66.6%50.7%74.0%86.4%80.9%99.5%28.3%
float16closed-book, any curated sentenceheld-out (final)122454.7%67.7%51.9%74.4%82.9%83.6%99.7%28.3%
float16open-book, retrieved facts onlyheld-out (validation)126470.2%79.2%69.5%85.8%85.7%80.5%99.9%0.0%
float16open-book, retrieved facts onlyheld-out (test)129268.0%77.5%66.8%83.6%86.4%80.9%99.6%0.0%
float16open-book, retrieved facts onlyheld-out (final)122470.6%79.0%69.6%86.3%85.6%80.9%99.8%0.0%
float16open-book, retrieved facts + ranking prior (site default)held-out (validation)126475.2%82.8%74.9%88.3%85.7%80.5%99.8%0.0%
float16open-book, retrieved facts + ranking prior (site default)held-out (test)129271.8%80.3%70.8%86.1%86.5%81.8%99.6%0.0%
float16open-book, retrieved facts + ranking prior (site default)held-out (final)122473.9%81.3%73.2%87.7%85.6%80.9%99.7%0.0%
float16retriever's first fact (no model)held-out (validation)126466.8%76.4%71.5%86.3%n/a0.0%100.0%0.0%
float16retriever's first fact (no model)held-out (test)129262.8%73.0%68.7%84.7%n/a0.0%99.7%0.0%
float16retriever's first fact (no model)held-out (final)122468.2%75.3%75.0%88.8%n/a0.0%99.8%0.0%
int8open-book, freeheld-out (validation)126469.6%78.8%68.9%85.4%84.6%80.5%99.9%0.9%
int8open-book, freeheld-out (test)129267.8%77.5%66.6%83.9%88.1%80.9%99.6%0.4%
int8open-book, freeheld-out (final)122470.0%78.6%68.9%86.0%85.6%80.9%99.8%0.4%
int8closed-book, freeheld-out (validation)126451.5%65.9%49.1%73.7%82.8%87.8%99.8%27.6%
int8closed-book, freeheld-out (test)129253.3%66.7%50.7%74.1%86.5%81.8%99.5%27.7%
int8closed-book, freeheld-out (final)122454.5%67.7%51.7%74.7%83.5%82.7%99.7%27.7%
int8open-book, any curated sentenceheld-out (validation)126469.6%78.7%68.9%85.3%84.6%80.5%99.9%1.0%
int8open-book, any curated sentenceheld-out (test)129267.8%77.4%66.6%83.6%88.1%80.9%99.6%0.8%
int8open-book, any curated sentenceheld-out (final)122470.1%78.7%69.0%86.0%85.6%80.9%99.8%0.4%
int8closed-book, any curated sentenceheld-out (validation)126451.6%65.9%49.1%73.5%82.8%87.8%99.8%27.3%
int8closed-book, any curated sentenceheld-out (test)129253.5%66.7%50.8%74.0%86.5%81.8%99.5%27.8%
int8closed-book, any curated sentenceheld-out (final)122454.5%67.5%51.7%74.3%83.5%82.7%99.7%28.1%
int8open-book, retrieved facts onlyheld-out (validation)126470.0%79.0%69.3%85.6%84.6%80.5%99.9%0.0%
int8open-book, retrieved facts onlyheld-out (test)129267.8%77.4%66.6%83.6%87.2%80.9%99.6%0.0%
int8open-book, retrieved facts onlyheld-out (final)122470.5%79.0%69.5%86.6%85.6%80.9%99.8%0.0%
int8open-book, retrieved facts + ranking prior (site default)held-out (validation)126475.2%82.8%74.8%88.1%83.5%80.5%99.8%0.0%
int8open-book, retrieved facts + ranking prior (site default)held-out (test)129271.7%80.2%70.7%85.8%86.5%81.8%99.6%0.0%
int8open-book, retrieved facts + ranking prior (site default)held-out (final)122473.9%81.3%73.2%87.7%85.6%80.9%99.7%0.0%
int8retriever's first fact (no model)held-out (validation)126466.9%76.4%71.6%86.2%n/a0.0%100.0%0.0%
int8retriever's first fact (no model)held-out (test)129262.8%73.0%68.7%84.7%n/a0.0%99.7%0.0%
int8retriever's first fact (no model)held-out (final)122468.2%75.3%75.0%88.7%n/a0.0%99.8%0.0%

Exact match is strict: with dozens of closely related facts per project, a neighbouring fact of the right topic is often a reasonable answer. The next table adds what a visitor experiences: whether the answer is a curated sentence at all, whether it is about the right topic, and how often the retriever had the gold fact among its first hits.

WeightsModeQuestionsExactCurated sentenceRight topicGold fact in top 1 / 2 / 4Exact when retrieved / when missed
float32open-book, freeheld-out (validation)69.6%99.0%95.0%74.7% / 88.9% / 95.0%73.6% / 1.8%
float32open-book, freeheld-out (test)68.0%99.2%93.3%71.7% / 86.7% / 93.0%72.9% / 3.8%
float32open-book, freeheld-out (final)70.1%99.3%94.4%78.5% / 89.9% / 96.0%73.8% / 0.0%
float32closed-book, freeheld-out (validation)51.4%98.3%89.8%n/an/a
float32closed-book, freeheld-out (test)53.1%98.5%89.2%n/an/a
float32closed-book, freeheld-out (final)54.7%98.4%90.4%n/an/a
float32open-book, any curated sentenceheld-out (validation)69.6%99.5%95.0%74.7% / 88.9% / 95.0%73.6% / 1.8%
float32open-book, any curated sentenceheld-out (test)68.0%99.5%93.5%71.7% / 86.7% / 93.0%72.9% / 3.8%
float32open-book, any curated sentenceheld-out (final)70.2%99.4%94.5%78.5% / 89.9% / 96.0%73.9% / 0.0%
float32closed-book, any curated sentenceheld-out (validation)51.5%99.5%90.4%n/an/a
float32closed-book, any curated sentenceheld-out (test)53.2%99.5%89.9%n/an/a
float32closed-book, any curated sentenceheld-out (final)54.7%99.5%91.1%n/an/a
float32open-book, retrieved facts onlyheld-out (validation)70.0%99.5%95.3%74.7% / 88.9% / 95.0%74.2% / 0.0%
float32open-book, retrieved facts onlyheld-out (test)68.0%99.5%93.4%71.7% / 86.7% / 93.0%73.2% / 0.0%
float32open-book, retrieved facts onlyheld-out (final)70.6%99.5%94.7%78.5% / 89.9% / 96.0%74.4% / 0.0%
float32open-book, retrieved facts + ranking prior (site default)held-out (validation)75.2%99.5%95.9%74.7% / 88.9% / 95.0%80.2% / 0.0%
float32open-book, retrieved facts + ranking prior (site default)held-out (test)71.8%99.4%93.9%71.7% / 86.7% / 93.0%77.8% / 0.0%
float32open-book, retrieved facts + ranking prior (site default)held-out (final)73.9%99.6%95.2%78.5% / 89.9% / 96.0%78.3% / 0.0%
float32retriever's first fact (no model)held-out (validation)66.8%100.0%96.5%74.7% / 88.9% / 95.0%78.5% / 0.0%
float32retriever's first fact (no model)held-out (test)62.8%100.0%95.0%71.7% / 86.7% / 93.0%77.1% / 0.0%
float32retriever's first fact (no model)held-out (final)68.2%100.0%96.2%78.5% / 89.9% / 96.0%81.7% / 0.0%
float16open-book, freeheld-out (validation)69.8%99.0%95.0%74.7% / 88.9% / 95.0%73.7% / 1.8%
float16open-book, freeheld-out (test)68.0%99.2%93.3%71.7% / 86.6% / 93.0%72.9% / 3.8%
float16open-book, freeheld-out (final)70.1%99.3%94.4%78.5% / 89.9% / 96.0%73.8% / 0.0%
float16closed-book, freeheld-out (validation)51.5%98.3%89.8%n/an/a
float16closed-book, freeheld-out (test)53.1%98.5%89.2%n/an/a
float16closed-book, freeheld-out (final)54.7%98.4%90.4%n/an/a
float16open-book, any curated sentenceheld-out (validation)69.8%99.5%95.0%74.7% / 88.9% / 95.0%73.7% / 1.8%
float16open-book, any curated sentenceheld-out (test)68.0%99.5%93.5%71.7% / 86.6% / 93.0%72.9% / 3.8%
float16open-book, any curated sentenceheld-out (final)70.2%99.4%94.5%78.5% / 89.9% / 96.0%73.9% / 0.0%
float16closed-book, any curated sentenceheld-out (validation)51.6%99.5%90.4%n/an/a
float16closed-book, any curated sentenceheld-out (test)53.2%99.5%89.9%n/an/a
float16closed-book, any curated sentenceheld-out (final)54.7%99.5%91.1%n/an/a
float16open-book, retrieved facts onlyheld-out (validation)70.2%99.5%95.3%74.7% / 88.9% / 95.0%74.3% / 0.0%
float16open-book, retrieved facts onlyheld-out (test)68.0%99.5%93.4%71.7% / 86.6% / 93.0%73.2% / 0.0%
float16open-book, retrieved facts onlyheld-out (final)70.6%99.5%94.7%78.5% / 89.9% / 96.0%74.4% / 0.0%
float16open-book, retrieved facts + ranking prior (site default)held-out (validation)75.2%99.5%95.9%74.7% / 88.9% / 95.0%80.2% / 0.0%
float16open-book, retrieved facts + ranking prior (site default)held-out (test)71.8%99.4%93.9%71.7% / 86.6% / 93.0%77.8% / 0.0%
float16open-book, retrieved facts + ranking prior (site default)held-out (final)73.9%99.6%95.2%78.5% / 89.9% / 96.0%78.3% / 0.0%
float16retriever's first fact (no model)held-out (validation)66.8%100.0%96.5%74.7% / 88.9% / 95.0%78.5% / 0.0%
float16retriever's first fact (no model)held-out (test)62.8%100.0%95.0%71.7% / 86.6% / 93.0%77.1% / 0.0%
float16retriever's first fact (no model)held-out (final)68.2%100.0%96.2%78.5% / 89.9% / 96.0%81.7% / 0.0%
int8open-book, freeheld-out (validation)69.6%99.0%94.7%74.7% / 88.7% / 95.0%73.6% / 1.8%
int8open-book, freeheld-out (test)67.8%99.2%93.4%71.7% / 86.6% / 93.0%72.7% / 3.8%
int8open-book, freeheld-out (final)70.0%99.3%94.4%78.5% / 89.9% / 96.0%73.7% / 0.0%
int8closed-book, freeheld-out (validation)51.5%98.3%89.8%n/an/a
int8closed-book, freeheld-out (test)53.3%98.6%89.4%n/an/a
int8closed-book, freeheld-out (final)54.5%98.4%90.5%n/an/a
int8open-book, any curated sentenceheld-out (validation)69.6%99.5%94.8%74.7% / 88.7% / 95.0%73.6% / 1.8%
int8open-book, any curated sentenceheld-out (test)67.8%99.5%93.7%71.7% / 86.6% / 93.0%72.7% / 3.8%
int8open-book, any curated sentenceheld-out (final)70.1%99.4%94.5%78.5% / 89.9% / 96.0%73.8% / 0.0%
int8closed-book, any curated sentenceheld-out (validation)51.6%99.5%90.4%n/an/a
int8closed-book, any curated sentenceheld-out (test)53.5%99.5%90.0%n/an/a
int8closed-book, any curated sentenceheld-out (final)54.5%99.4%91.1%n/an/a
int8open-book, retrieved facts onlyheld-out (validation)70.0%99.5%95.2%74.7% / 88.7% / 95.0%74.2% / 0.0%
int8open-book, retrieved facts onlyheld-out (test)67.8%99.5%93.5%71.7% / 86.6% / 93.0%73.0% / 0.0%
int8open-book, retrieved facts onlyheld-out (final)70.5%99.5%94.7%78.5% / 89.9% / 96.0%74.3% / 0.0%
int8open-book, retrieved facts + ranking prior (site default)held-out (validation)75.2%99.5%95.9%74.7% / 88.7% / 95.0%80.2% / 0.0%
int8open-book, retrieved facts + ranking prior (site default)held-out (test)71.7%99.4%93.9%71.7% / 86.6% / 93.0%77.7% / 0.0%
int8open-book, retrieved facts + ranking prior (site default)held-out (final)73.9%99.6%95.2%78.5% / 89.9% / 96.0%78.4% / 0.0%
int8retriever's first fact (no model)held-out (validation)66.9%100.0%96.5%74.7% / 88.7% / 95.0%78.6% / 0.0%
int8retriever's first fact (no model)held-out (test)62.8%100.0%95.0%71.7% / 86.6% / 93.0%77.1% / 0.0%
int8retriever's first fact (no model)held-out (final)68.2%100.0%96.2%78.5% / 89.9% / 96.0%81.7% / 0.0%

Retriever used in the open-book rows: BM25 fused with the model's own ranking of the facts (cosine of its pooled hidden states, weight 3.0). Ranking prior of the site default: a fact loses weight x (1 - its score / the best score) nats, weight 32.0, chosen on the validation questions. Open-book with free decoding, held-out test questions: the retriever returned the gold facts for 93.0% of the in-scope questions; exact match was 72.9% when it did and 3.8% when it did not.

Breakdown of open-book, retrieved facts + ranking prior (site default), float32, held-out (final):

LanguagenExactF1Curated sentenceRight topic
en61274.5%81.7%99.5%95.1%
pt61273.2%80.8%99.7%95.3%
Kind of questionnExactF1Curated sentenceRight topic
small talk5030.0%43.5%100.0%n/a
about the model4484.1%87.8%100.0%100.0%
out of scope11080.9%84.2%100.0%n/a
one fact102074.8%82.5%99.5%95.0%
TopicnExactF1Curated sentenceRight topic
(none)16065.0%71.5%100.0%n/a
breakhis11274.1%82.1%100.0%100.0%
pad10682.1%88.0%100.0%100.0%
crm9678.1%84.0%100.0%100.0%
seer8683.7%88.2%100.0%100.0%
skills6671.2%78.3%100.0%80.3%
isabela5862.1%73.1%100.0%98.3%
nina5675.0%82.6%100.0%98.2%
gjdb4862.5%76.5%89.6%89.6%
prospecting4868.8%81.4%100.0%100.0%
brasa4484.1%87.8%100.0%100.0%
armv7a3066.7%77.9%100.0%100.0%
c-coursework3093.3%95.7%100.0%100.0%
simmer3076.7%82.5%100.0%100.0%
experience2871.4%84.5%100.0%96.4%
algorithms-c2491.7%95.0%100.0%100.0%
boundaries2454.2%66.5%100.0%66.7%
esp32-cam-car2475.0%83.7%100.0%100.0%
process2263.6%75.5%100.0%86.4%
profile2263.6%70.6%100.0%72.7%
ml-coursework2075.0%81.9%100.0%90.0%
projeto-piloto2080.0%84.8%100.0%100.0%
ct-junior-clients1693.8%96.6%100.0%93.8%
services1681.2%85.2%100.0%81.2%
operating-systems1478.6%83.2%100.0%78.6%
studies1464.3%75.7%100.0%85.7%
contact1070.0%78.2%100.0%80.0%

The held-out test questions were also used to choose between training settings, so the test rows are optimistic by selection; the "final" rows, when present, come from a slice of questions on which no training choice of this model was made. It is read once per released model; an earlier release may have read the same slice (the repository README says which).

Quantisation: f16: relative weight error 0.000207, largest logit drift 0.00384; i8: relative weight error 0.007586, largest logit drift 0.15791; float16 answers identical to float32: 26446/26460; int8 answers identical to float32: 26228/26460

Training data

532 facts in 26 topics, each in Portuguese and English; 60281 training, 1264 validation, 1292 test and 1224 final question/answer records (52 training questions per fact and language, median); 361,686 training examples of 59,399,639 tokens after open-book / closed-book expansion.

Limitations

  • The model only knows the facts of its knowledge base, and only in the phrasings it can generalise to from its training questions. Unusual wordings can retrieve the wrong fact or get a wrong answer that sounds confident.
  • Answers are short and close to the wording of the knowledge base. It does not reason, calculate, hold a conversation across turns or follow instructions.
  • With 12,194,688 parameters and a 384-token context it is not comparable to general language models and is not meant to be.
  • The refusal behaviour is learned from examples, not guaranteed: an out-of-scope question can still get an in-scope-looking answer.

Reproduce

See the code repository: uv sync, scripts/smoke.sh for the end-to-end rehearsal, and the README section "Reproduce" for the release recipe.

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

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

GPU в ailist

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

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

Подбираем GPU…

Ревизия весов
db1268f

0 моделей