/ Модель

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

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

wiki-model-tiny

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

Компактная англоязычная модель с 12,5 млн параметров для генерации фактов из Википедии, коротких ответов и работы с утверждениями.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

wiki-model-tiny — небольшая языковая модель от Lucasgitguy-co, обученная с нуля на PyTorch для генерации фактов из Википедии. Она поддерживает генерацию факта о заданной теме, случайного факта, короткие ответы на вопросы и исправление ложных утверждений. Архитектура — декодер в стиле Llama с 8 слоями и 12,5 млн параметров; используется собственный байтовый BPE-токенизатор на 8 192 токена. Модель работает с английским текстом.

При запуске с режимом grounded модель извлекает контекст из индекса Википедии с помощью BM25 и указывает использованную статью. Индекс загружается отдельно и занимает около 600 МБ. На тестах grounded-режим заметно улучшает поддержку ответов фактами, однако качество зависит от извлечения контекста. Без него модель часто ошибается или выдумывает факты, а исправление ложных утверждений — её наиболее слабая задача. Проверка поддержки ответа использует совпадение слов с текстом статьи и не является полноценной проверкой фактов. Лицензия — Apache-2.0.

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

  • получение краткого факта о теме из Википедии
  • ответы на короткие вопросы по энциклопедическим сведениям
  • генерация случайного факта для викторины
  • поиск подтверждающего контекста в индексе Википедии
  • экспериментальная проверка и исправление утверждений о фактах

Ограничения

Без извлечения контекста модель часто ошибается или выдумывает факты; качество grounded-ответов зависит от поиска по индексу. Исправление ложных утверждений слабое, а проверка поддержки основана на совпадении слов и не подтверждает фактическую истинность.

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

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

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

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

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

Открыть на Hugging Face

wiki-model-tiny

GGUF: Lucasgitguy-co/wiki-model-tiny-GGUF (for llama.cpp).

A 12.5M-parameter language model, trained from scratch in plain PyTorch, that states facts from Wikipedia. It does four things: a fact about a topic, a random fact, short question answering, and correcting a false statement. With --grounded it answers from a sourced Wikipedia index and prints the article it used.

The bigger sibling is wiki-model (SmolLM2-135M fine-tune). Data and index: wiki-model-facts.

A model this small gets many facts wrong when it answers from memory. Use --grounded for anything that matters.

Use

hf download Lucasgitguy-co/wiki-model-tiny --local-dir wiki-model-tiny
cd wiki-model-tiny && pip install -e .       # torch, tokenizers, bm25s, transformers, huggingface_hub
wiki-model "Eiffel Tower"
wiki-model --random
wiki-model --q "Who wrote Hamlet?"
wiki-model --fix "The Eiffel Tower is in Lyon." --grounded

The first call downloads the fact index (about 600 MB) from the dataset repo: --grounded answers from it, and without --grounded the answer is checked against it and marked supported or unverified. Add --no-index to skip the index entirely.

from wiki_model.cli import load_model, run
from wiki_model.index import FactIndex
m = load_model("tiny", ".")
ix = FactIndex("path/to/wiki-model-facts/index")
print(run(m, "q", "Who directed Forrest Gump?", ix, grounded=True))

Prompt format

<fact> Eiffel Tower </fact> The Eiffel Tower is a lattice tower ...
<q> Who wrote Hamlet? </q> William Shakespeare
<fix> The Eiffel Tower is in Lyon. </fix> The Eiffel Tower is in Paris.   (or: Can't verify from Wikipedia.)
<ctx> retrieved article text </ctx> <q> ... </q> ...                      (grounded)

Results

Held-out articles and claims (test split by article title, never seen in training). "Grounded" retrieves context at run time with the BM25 index; it is not handed the gold article. "Fact supported" = the generated sentence matches a sentence of the topic's own article with token F1 ≥ 0.5. "Known topics" are well-known articles from the training split. "copy the claim" just repeats the input claim (a baseline for the fix task); "SmolLM2-135M few-shot" is the untuned base model with three examples in the prompt (its examples carry no context). "Fix (year swap)": abstract sentences where a year was shifted, mixed with unchanged true sentences (71% of this set), so "copy the claim" already scores 71; only scores above that mean real corrections.

modelmodeQ&A infobox EM'What is X' F1Fix (FEVEROUS) EMFix can't-verify accFix (year swap) EMFact supported (new topics)Fact supported (known topics)
wiki-modelmodel only14.730.037.088.565.012.010.0
wiki-modelgrounded94.765.337.088.083.098.098.0
wiki-model-tinymodel only14.728.232.589.054.05.08.0
wiki-model-tinygrounded90.758.033.589.055.092.094.0
SmolLM2-135M few-shotmodel only10.018.911.011.066.016.016.0
SmolLM2-135M few-shotgrounded26.725.26.536.547.065.071.0
copy the claimmodel only——47.589.071.0——

Model

ArchitectureLlama-style decoder: 8 layers, d=320, 8 heads, SwiGLU 864, RoPE, RMSNorm, tied embeddings
Parameters12.5M
Tokenizerown 8,192-token byte-level BPE with the task tags as special tokens
Context384 tokens
Stage 198M tokens of Wikipedia article text (wikimedia/wikipedia 20231101.en, 141k articles)
Stage 2288k task examples (35% with retrieved context) from 948k articles of wikimedia/structured-wikipedia + FactfulDataset
Stage 3fix top-up: 48k examples of FactfulDataset (half with retrieved context) + replay of the other tasks
Hardwareone Apple M4 (MPS + CPU), about 10 hours in total
  • Facts: the lead sentences of each article's abstract.
  • Q&A: "What is X?" answered with the article's short description, plus questions templated from about 60 infobox fields (born, founded, capital, genre, directed by, family, ...).
  • Fix: FactfulDataset (FEVEROUS-derived; TrueStatement → the claim unchanged, ContriversialInput → "Can't verify from Wikipedia.", otherwise the corrected claim), plus abstract sentences with a shifted year, plus unchanged true sentences.
  • Articles: 232k random articles from three shards, plus 716k long articles (at least 15k characters, no digits in the title) from all other shards.
  • wikimedia/wikisource was left out on purpose: it holds books and source texts, not encyclopedic facts.

Limits

  • Answers from memory are often wrong or invented, especially for less-known topics. Grounded answers are only as good as retrieval.
  • English only. Wikipedia snapshot from 2024 (structured) and 2023 (plain text).
  • The "supported" check is a word-overlap heuristic against the topic's own article, not a fact checker.
  • Fixing false statements is the weakest task. On FEVEROUS claims the model scores below simply repeating the claim ("copy the claim" row), because it often rewords claims that were already true. It also practically never answers "Can't verify" (the 89% can't-verify accuracy is the base rate).

Licence

Code and weights: Apache-2.0. The training text comes from Wikipedia (CC BY-SA); FactfulDataset has no licence on its card and is not redistributed here.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей