/ Модель

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

Контекст
1 024 токена
Лицензия
Apache 2.0
Архитектура
wieszcz · dense
Библиотека
transformers
Опубликована
5 сен 2026

wieszcz-xix-349m

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

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

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

Авторская модель на 349 млн параметров для продолжения польских текстов в языке и стиле печати XIX века, предназначенная прежде всего для исторических исследований.

Wieszcz-xix-349m — авторская плотная авторегрессионная языковая модель на 349 млн параметров, разработанная SKocur и обученная с нуля на корпусе польских текстов, опубликованных преимущественно в 1800–1918 годах. Это базовая модель продолжения текста, а не чат-бот и не система ответов на вопросы; она воспроизводит лексику, орфографию и стиль польской печати XIX века. Модель использует декодерную архитектуру с RoPE, RMSNorm, QK-Norm, SwiGLU и grouped-query attention. Контекст ограничен 1024 токенами; собственный токенизатор обучен на том же корпусе. Для подключения через Transformers требуется загрузить пользовательскую архитектуру из репозитория.

Модель предназначена для исторической лингвистики, цифровой гуманитаристики и экспериментов с историческим NLP и масштабированием языковых моделей. На отложенной части собственного корпуса указана perplexity 14,48. Из-за OCR-ошибок в источниках модель может воспроизводить повреждённый текст, а современный запрос не превращает её генерацию в современный ответ. Она также воспроизводит предубеждения польской печати XIX века, включая антисемитские, националистические, колониальные и мизогинные взгляды; для представления генераций пользователям нужны фильтрация и явное историческое обрамление. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

wieszcz-xix-349m

A 349M-parameter decoder-only language model trained from scratch on a corpus of Polish text catalogued as published between 1800 and 1918. It writes in the language of that period and keeps the period spelling of the text it continues. It is a base model: it continues text and does not answer questions.

This is the 349M rung of a three-model ladder (47M, 107M, 349M) trained on one frozen corpus with the same steps, batch and seed, so the rungs differ only in parameter count. This repository carries the largest rung; the whole ladder, including the pre-decay and epoch-one checkpoints the paper's epochs table reads, is archived at doi:10.5281/zenodo.22099358. The corpus is SKocur/polish-pre1918-corpus.

⚠️ Read Intended use and content warning before loading this model. It reproduces the prejudices of nineteenth-century print.

What it scores

Dense evaluation on the held-out split of its own corpus, 8,192 windows of 1,024 tokens in fp32, covering the whole split:

Cross-entropy2.673 nats/token (95% CI 2.660 to 2.685)
Perplexity14.48
Parameters349,069,440
Training6,689,593,236 tokens, 51,038 steps, seed 1337

Scored under the same protocol, the smaller rungs reach 2.905 (107M) and 3.101 (47M) nats, which is what the paper's ladder measures.

Architecture

Llama and Gemma-2 lineage: RoPE, RMSNorm applied before and after each sublayer, QK-Norm, SwiGLU, grouped-query attention, weight tying. Trained with Muon on the 2D hidden weights and AdamW on embeddings and norm gains.

Layers24
Model dimension1152
Attention18 query heads over 6 key/value heads
Context1024 tokens
Vocabulary8000, byte-level BPE trained on this corpus

The tokenizer is part of the model. It was trained on this corpus and ships here in both forms: tokenizer.json for AutoTokenizer, and the vocab.json and merges.txt it was built from. All three are hashed in SHA256SUMS.

Loading

from transformers import AutoModelForCausalLM, AutoTokenizer

name = "SKocur/wieszcz-xix-349m"
tok = AutoTokenizer.from_pretrained(name)
net = AutoModelForCausalLM.from_pretrained(name, trust_remote_code=True)

ids = tok("Doniesiono nam z Warszawy, iż", return_tensors="pt")
out = net.generate(**ids, max_new_tokens=200, do_sample=True, temperature=0.9, top_p=0.9)
print(tok.decode(out[0], skip_special_tokens=True))

trust_remote_code is needed because this architecture is not one the library ships. The code it runs is modeling_wieszcz.py in this repository, a short wrapper that adds the library's interface around model.py and no arithmetic of its own. Both files are meant to be read before they are run.

Sampling through the wrapper recomputes the whole prefix at every step, because the KV cache in model.py predates the library's cache protocol and does not implement it. For long or repeated generation, load the network directly and use its own cached sampler:

import json, sys, torch
from huggingface_hub import snapshot_download
from safetensors.torch import load_model
from tokenizers import ByteLevelBPETokenizer

path = snapshot_download("SKocur/wieszcz-xix-349m")
sys.path.insert(0, path)
from model import GPT

net = GPT(json.load(open(f"{path}/config.json")))
load_model(net, f"{path}/model.safetensors")
net.eval()

tok = ByteLevelBPETokenizer(f"{path}/vocab.json", f"{path}/merges.txt")
ids = torch.tensor([tok.encode("Doniesiono nam z Warszawy, iż").ids])
out = net.generate(ids, max_new_tokens=200, temperature=0.9, top_p=0.9)
print(tok.decode(out[0].tolist()))

That path needs only torch, safetensors and tokenizers, and it reads the same model.safetensors through the file that trained the weights. The build checks that the two paths return identical logits.

Intended use and content warning

Research and digital humanities: period language, register and discourse, historical NLP, scaling and data-constraint experiments.

This model reproduces antisemitic, nationalist, colonial and misogynist discourse that was ordinary in nineteenth-century Polish print. The prejudice comes from the sources, and the training preserved it. The accompanying paper documents unprompted prejudiced output from these checkpoints and reports a first prevalence estimate.

Do not put this model in front of end users, interactively or through generated text presented as information, without a filtering layer, visible framing that identifies the output as a historical-language simulation, and your own legal review. It is not an authority on any subject. Full conditions are in TERMS-OF-USE.md.

Limitations

The context is 1024 tokens, which bounds both coherence and any interactive use. The corpus is OCR of period scans, so the model learned some of that damage and occasionally writes it back. Generation stays in period register by construction, which means a modern prompt does not produce a modern answer.

The temporal bound has a measured residue. 90 documents of the training split, all from the transcribed Wolne Lektury source and 0.04% of the corpus bytes, are later than 1918: 79 modern translations and eleven volumes of Proust in a translation of the 1930s. Up to 0.38% of the bytes are translations or works by people who lived past 1918. The paper's audit section gives the counts.

Citation

@misc{kocur2026wieszcz,
  title  = {Wieszcz-XIX: A 3.1-Billion-Word Corpus of Pre-1918 Polish and Temporally Bounded Language Models Trained From Scratch},
  author = {Kocur, Szymon},
  year   = {2026},
  eprint = {2610.10592},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CL},
  url    = {https://arxiv.org/abs/2610.10592},
}

Paper: arXiv:2610.10592.

Corpus: doi:10.5281/zenodo.22099302. Weights archive with all nine checkpoints: doi:10.5281/zenodo.22099358.

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
WieszczForCausalLM
Ревизия весов
4e27191

0 моделей