/ Модель

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

Лицензия
MIT
Библиотека
ggml
Опубликована
14 окт 2026

topaz-gregg-shorthand-117m-gguf

Описание изображенийИзображение → текст3 профессии
17скачиваний за 30 дней0лайковвеса обновлены15 окт 2026

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

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

CPU-сборка Topaz-117M распознаёт рукописную стенографию Грегга на изображениях страниц и строк и выдаёт Grascii с вариантами слов.

Topaz-Gregg-Shorthand-117M-GGUF — CPU-версия распознавателя стенографии Грегга Gregg Anniversary, основанная на модели Topaz-117M. Репозиторий содержит статически собранную программу для Linux x86-64 и веса в формате GGUF; для работы не нужны Python или GPU. В распознавательном конвейере используются поиск и выравнивание строк, нейросетевое распознавание, жадное CTC-декодирование и словарные подсказки.

Модель предназначена для чтения рукописной стенографии Грегга на изображениях страниц или заранее обрезанных строк. Она выводит контуры в Grascii и варианты слов из словаря; предусмотрен режим подготовки текста-подсказки для последующей обработки языковой моделью. По README, результаты близки к PyTorch-версии: на тестовых страницах расхождения были редкими и небольшими.

Распознаватель хранится в 16-битных весах, модельный файл занимает 242 МБ. Исполняемый файл требует процессор с AVX2 и FMA; заявленная лицензия — MIT. Поддерживаются изображения PNG и JPEG, причём декодирование JPEG может изредка влиять на распознавание; обработка строк выполняется по одной, а не пакетами.

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

  • распознавание стенографии Грегга на отсканированных страницах
  • транскрибация отдельных обрезанных строк стенографии
  • получение вариантов расшифровки по словарю Gregg

Ограничения

Для запуска нужен Linux x86-64 и CPU с AVX2 и FMA. JPEG-декодирование иногда может изменить распознаваемый штрих, а строки обрабатываются по одной.

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

topaz-gregg-shorthand-117m-gguf

This is the GGUF version of Topaz-117M.


The text below this line is AI-generated.

Files

FileContents
greggThe executable: Linux x86-64, statically linked, needs a CPU with AVX2 and FMA (most x86 CPUs since 2013)
gregg.ggufRecognizer weights in 16-bit floats (BatchNorm folded into the convolutions), line-finder weights in 32-bit floats, the 73-token vocabulary, the outline dictionary and the LLM prompt (242 MB)
source/The C++ source gregg was built from, the converter that wrote gregg.gguf, and the tests that check both against PyTorch and OpenCV

Usage

chmod +x gregg
./gregg page.jpg                     # writes page.txt next to the image
./gregg -o out/ *.png                # outputs in out/
./gregg --lines line1.png line2.png  # each image is a single, already cropped line
./gregg --with-prompt notes.jpg      # notes.txt = LLM prompt, blank line, "Transcript:", then the lines

Each output line holds one line of shorthand: every outline in Grascii followed by its dictionary suggestions, e.g.

I-K (I can/why can) G (good/go) TH (the/their/there) N (in/not) TH (the/their/there) R (are/our/hour)

Punctuation and numbers are written as they are.

OptionMeaning
-m FILEmodel (default: gregg.gguf next to the executable)
-o DIRoutput directory, created if needed (default: next to each input)
-t Nthreads (default: all cores)
--linestreat every input as one line (no line finding)
--classica simpler projection-profile line finder instead of the learned one (assumes level lines)
--with-promptstart each .txt with the LLM prompt, a blank line and Transcript:
-qquiet

Inputs are PNG, JPEG or BMP. JPEG EXIF orientation is applied.

Speed and memory

Measured on a cloud server CPU (AMD EPYC 7452 32-Core Processor) with -t 2:

Time
one line (500 px wide)about 1.4 s
one line (950 px wide)about 2.5 s
a page of 25 linesabout 28 s (1.4 s of it finding the lines)

Peak memory is about 280 MB for single lines and 360 MB for pages. Most of the time goes into the recognizer; more cores help almost linearly. Topaz-61M is about 25% faster and uses about 100 MB less memory.

Building from source

gregg is a Release build of source/ with ggml v0.9.9 (commit a04eea07, fetched by CMake) and the default options:

cmake -S source -B build        # -DGREGG_NATIVE=ON tunes for the build machine's CPU
make -C build -j gregg          # -> build/gregg (static; -DGREGG_STATIC=OFF links glibc dynamically)

You need CMake 3.16 or later, a C++17 compiler and git. source/convert.py wrote gregg.gguf from the PyTorch checkpoint (--type f16); it runs in the training repository's Python environment, since it reads the dictionary from the lexicon there. source/README.md has the details, including the parity tests.

Agreement with PyTorch

gregg with this model gave the same Grascii and dictionary suggestions as the PyTorch code on 30 of 30 book lines, and the same Grascii on 66 of 70 lines of two scanned pages read with both line finders; each of the other 4 differed by one stroke. Those differences come from storing the recognizer in 16 bits, as with Topaz-61M.

The executable reads both Topaz-61M and Topaz-117M model files: the converter records which layer design a file uses (LayerNorm, ReLU and sinusoidal positions for 61M; RMSNorm, SwiGLU and rotary positions for 117M).

Known differences

  • JPEG decoding uses stb_image rather than libjpeg-turbo; about 1.5% of pixels can differ by one grey level, which can very occasionally change a stroke. PNG input decodes identically.
  • Lines are read one at a time. The PyTorch package does the same; batching lines of different widths together (as some training-repo scripts do) changes a few readings, because padding affects the features at a line's right edge.

License

MIT, as the PyTorch release.

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

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

GPU в ailist

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

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

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

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

0 моделей