/ Модель

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

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

pcs-xlmr-base-GGUF

Разметка токеновТекст → label5 профессий
1 749скачиваний за 30 дней0лайковвеса обновлены20 ноя 2026

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

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

PCS — это мультиязычная модель постобработки текста, разработанная на базе XLM-RoBERTa-base и конвертированная в формат GGUF для использования с CrispASR и CrisperWeaver.

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

Модель за один проход восстанавливает пунктуацию, включая точки, запятые, вопросительные и восклицательные знаки, двоеточия, точки с запятой и другие знаки, выполняет truecasing и определяет границы предложений. Архитектура включает 12-слойный энкодер XLM-RoBERTa-base с размерностью 768, 12 головами внимания и токенизатором SentencePiece, а также четыре классификационные головы для пост- и предпозиционной пунктуации, сегментации предложений и посимвольного определения регистра.

PCS поддерживает 47 языков, однако наилучшее качество заявлено для английского, немецкого, французского, испанского, итальянского, португальского, нидерландского, польского, русского, украинского, чешского и датского языков, на которых обучались классификационные головы. Доступны полноточная версия F16 размером около 903 МБ и квантованная Q4_K размером около 155 МБ, что делает последнюю более подходящей для локального использования. Ограничения включают зависимость качества от языка и особенностей входного текста, а также отсутствие функций распознавания речи: модель обрабатывает уже полученный текст. Лицензия MIT.

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

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

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

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

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

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

PCS (Punctuation + Capitalization + Segmentation) — GGUF

GGUF conversion of 1-800-BAD-CODE/xlm-roberta_punctuation_fullstop_truecase for use with CrispASR and CrisperWeaver.

Model

PCS performs three text post-processing tasks in a single pass:

  1. Punctuation restoration — adds commas, periods, question marks, exclamation marks, colons, semicolons, dashes, and 10 other punctuation types
  2. Truecasing — restores proper capitalization (per-character upper/lower classification)
  3. Sentence boundary detection — identifies sentence breaks

Particularly useful for ASR backends that output unpunctuated lowercase text (wav2vec2, fastconformer-ctc, firered-asr, parakeet-ctc, omniasr-ctc).

Architecture

  • Encoder: XLM-RoBERTa-base (12 layers, d=768, 12 heads, SentencePiece tokenizer)
  • 4 classification heads:
    • post_punc: Linear(768 -> 256 -> 17) — post-word punctuation (., ,, ?, !, :, ;, -, etc.)
    • pre_punc: Linear(768 -> 256 -> 2) — pre-word punctuation (¿, ¡)
    • sbd: Linear(772 -> 128 -> 2) — sentence boundary detection
    • truecase: Linear(769 -> 128 -> 16) — per-character upper/lower case

Languages

Supports 47 languages via XLM-RoBERTa's multilingual encoder. Quality is best on the 12 languages the classification heads were trained on (EN, DE, FR, ES, IT, PT, NL, PL, RU, UK, CS, DA) but generalizes to all 47 XLM-R languages.

Files

FileSizeSHA-256Description
pcs-xlmr-base-q4_k-mixed.gguf167 MB341c26b8309a398a2ed597020876abe40a98236a09baab67b314797f657c2839Default. Q4_K + imatrix with encoder layer 0 and the truecase head at Q8_0
pcs-xlmr-base-q4_k-imatrix.gguf163 MBfaee4bf8469a502362b5967a2cfeb7a1732539fbd999c63b489d00efff3531daPrevious default (Q4_K + imatrix). Loses one casing decision (see below)
pcs-xlmr-base-q8_0.gguf302 MB5656dca3883fe391ddf53926cd4af89a1b5b474a5a50eb5884389fed737ca2dbQ8_0, ground-truth parity
pcs-xlmr-base-iq4_xs.gguf154 MBf2cab4c93c2ea9e6ac4464f6c33b6e967e26d6edeea159a545e8ba354a281473IQ4_XS + imatrix
pcs-xlmr-base-q4_k.gguf163 MB226542897e246aa934689a603e24d3026e5f20b2654e1db57bcf1eb578ef2205Q4_K, no imatrix
pcs-xlmr-base.gguf947 MB28057dd95378348dd72a374446bdd83d0fa30ab24ecb0e8d01ce44aa8f4459d7Full precision source (F32 matrices)
pcs-xlmr-base.imatrix0.3 MB4c04cf422c12973320f4b7c27757ed5304d394333ed42e62024765407712acbcImportance matrix used by the imatrix files

Mixed-precision default (pcs-xlmr-base-q4_k-mixed.gguf)

The all-4-bit q4_k-imatrix file turns I'm OK into I'm oK: in exact arithmetic (the original ONNX graph running the file's dequantized weights) the truecase logit for the o of ▁ok is −0.238, against +1.083 with the original weights. No single tensor causes it; it is accumulated 4-bit rounding, mostly in encoder layer 0 and the truecase head (root cause).

The mixed file is the same recipe with those two groups at Q8_0:

crispembed-quantize pcs-xlmr-base.gguf pcs-xlmr-base-q4_k-mixed.gguf q4_k \
    --imatrix pcs-xlmr-base.imatrix \
    --tensor-type 'enc.0.*=q8_0' --tensor-type 'head.tc.*=q8_0'
fileo logit (exact replay)four heads, 67 tokensdecoded, 6 lines
original F32 weights+1.083——
q8_0+0.99267/676/6
q4_k-mixed+0.68867/676/6
q4_k-imatrix−0.23866/67 on AVX25/6 on AVX2

The other candidates measured: encoder layer 0 alone +0.403, truecase head alone +0.121, adding layer 3 +0.952 (170 MB), adding layers 2–3 +1.135 (174 MB). Layer 0 plus the head is the smallest set that keeps the decision with margin. Size is +3.5 MB (+2.2 %) over q4_k-imatrix.

Usage

CrispASR CLI

# Apply PCS to unpunctuated text
crispasr --punc-model pcs \
  -f audio.wav \
  --backend parakeet

# Standalone text processing
echo "hello how are you doing today i am fine" | \
  crispasr-pcs pcs-xlmr-base-q4_k-mixed.gguf
# Output: "Hello, how are you doing today? I am fine."

CrisperWeaver (Flutter GUI)

Download from Model Management (Post-processors section). Enable "Restore punctuation" in Advanced Options — PCS runs automatically as a post-processing step after transcription.

C API

#include "crispasr.h"

void* pcs = crispasr_pcs_init("pcs-xlmr-base-q4_k-mixed.gguf");
const char* result = crispasr_pcs_process(pcs, "hello how are you");
// result: "Hello, how are you?"
crispasr_pcs_free_text(result);
crispasr_pcs_free(pcs);

Dart FFI

final pcs = crispasr.PcsModel.open('pcs-xlmr-base-q4_k-mixed.gguf');
final text = pcs.process('hello how are you doing today');
print(text); // "Hello, how are you doing today?"
pcs.close();

Comparison with other post-processors

ModelLanguagesPunctTruecaseSBDSize (Q4_K)
PCS4717 typesper-charyes167 MB
FireRedPuncZH + ENyesyesno~100 MB
Fullstop-puncEN/DE/FR/ITyesyesno~300 MB
Truecaser LSTMDE/EN/ES/RUnoyesno~3 MB

PCS is the most comprehensive option — it handles all three tasks in one pass across the widest language set.

License

Apache-2.0, the licence of the upstream model 1-800-BAD-CODE/xlm-roberta_punctuation_fullstop_truecase. These GGUF files are format conversions and quantizations of its weights; the upstream licence and notices apply. (Earlier revisions of this card said MIT; that was wrong.)

Links

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

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

GPU в ailist

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

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

GGUF-веса поддерживаются только для текстовых LLM (llama.cpp).

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

0 моделей