/ Модель

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

Контекст
2 048 токенов
Параметры
151 млн
Лицензия
Gemma
Архитектура
gemma3_text · dense
Базовая модель
colibri-embed-ptbr
Библиотека
sentence-transformers
Опубликована
19 июл 2026

aac-pictogram-retriever-ptbr

ЭмбеддингиТекст → embedding3 профессии

Компактная модель эмбеддингов для поиска и ранжирования пиктограмм ARASAAC по коротким запросам на бразильском португальском в AAC-приложениях.

2 257скачиваний за 30 дней0лайковвеса обновлены8 авг 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

AAC Pictogram Retriever (pt-BR) — компактная модель эмбеддингов от tardellirs для семантического поиска и ранжирования пиктограмм ARASAAC в приложениях альтернативной и дополнительной коммуникации. Она помогает находить изображение по короткому запросу на бразильском португальском, например по фразе о повседневном действии или потребности; модель применяется в инструменте Papuguinho для создания коммуникационных таблиц и может искать по каталогу примерно из 14 тысяч пиктограмм или ранжировать короткий список кандидатов.

Модель основана на tardellirs/colibri-embed-ptbr и дообучена для поиска пиктограмм. В карточке указаны архитектура Gemma 3 Text и около 150,6 млн параметров; README описывает конвейер SentenceTransformer с усреднённым пулингом, плотными слоями и нормализацией, вектор размерности 768, а также варианты усечения до 256 или 128 измерений. Контекст составляет 2048 токенов. Модель принимает текстовые запросы и тексты-описания пиктограмм, выдаёт эмбеддинги для сравнения по косинусному сходству. Указана поддержка CPU; README также описывает отдельную сборку GGUF для llama.cpp.

Модель специализирована на коротких запросах для поиска ARASAAC в бразильском португальском и не предназначена для общего семантического поиска, других языков, каталогов или задач. Обучающие сигналы и оценки бенчмарка основаны на суждениях LLM, поэтому для клинического или иного ответственного применения результаты следует проверять на людских оценках; пиктограммы должен подтверждать пользователь. Лицензия — Gemma; условия её применения следует проверять по лицензии Gemma.

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

  • поиск пиктограммы ARASAAC по слову или короткой фразе на бразильском португальском
  • ранжирование вариантов пиктограмм для коммуникационной таблицы
  • поиск изображений для выражения повседневных действий и потребностей
  • встраивание локального поиска пиктограмм в AAC-приложение на CPU

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

AAC Pictogram Retriever (pt-BR)

Language Params Runs on GGUF Benchmark License Used in Papuguinho

A compact Brazilian-Portuguese embedding model that finds the right ARASAAC pictogram for a short search term — built for Augmentative and Alternative Communication (AAC). It powers pictogram search in Papuguinho, a tool for building communication boards.

  • ~157M parameters, runs comfortably on CPU (no GPU).
  • One model, two jobs: retrieval (find the best pictogram among ~14k) and reranking (order a shortlist).
  • Competitive with much larger cloud embedding APIs on this domain, while being open and self-hostable.
  • Ships with a ready-to-serve GGUF build for llama.cpp: aac-pictogram-retriever-ptbr-GGUF (~190 MB RAM at Q8).

Model family & resources

ResourceDescription
🧠 aac-pictogram-retriever-ptbrThis model — retrieval + reranking, 157M, CPU
⚡ aac-pictogram-retriever-ptbr-GGUFGGUF quants for llama.cpp (Q4/Q6/Q8/f16)
📊 aac-pictogram-retrieval-ptbrEvaluation benchmark (corpus / queries / qrels)
🏋️ aac-pictogram-retrieval-ptbr-trainingTraining data (retrieval pairs + graded reranking)
🌱 colibri-embed-ptbrBase pt-BR embedding model

What it's for

In AAC, a child or therapist searches for a word (e.g. "escovar os dentes", "quero água") and the app must surface the pictogram that best represents it, so the child can point to it to communicate. This is a short-query, closed-domain, Brazilian-Portuguese retrieval problem where general-purpose embedders and leaderboard rankings do not transfer well. This model is tuned specifically for it.

Intended use: semantic search and reranking of ARASAAC pictograms from pt-BR words/phrases, in AAC applications.

Not intended for: general-purpose sentence embeddings, languages other than Brazilian Portuguese, or domains outside pictogram/AAC search.


Usage

With sentence-transformers

The model uses asymmetric prompts — one for the query, one for the document (pictogram text). Always apply them.

from sentence_transformers import SentenceTransformer
import numpy as np

model = SentenceTransformer("tardellirs/aac-pictogram-retriever-ptbr", trust_remote_code=True)

QUERY_PROMPT = "task: search result | query: "
DOC_PROMPT   = "title: none | text: "

query = "escovar os dentes"
# Pictogram "documents": a short text per pictogram (labels + synonyms + keywords + ARASAAC tags)
docs = [
    "escovar os dentes; escovação. tags: hygiene, health, routine",
    "escova de dentes; escova. tags: hygiene, object",
    "pente; pentear. tags: hygiene, object",
]

q = model.encode(QUERY_PROMPT + query, normalize_embeddings=True)
d = model.encode([DOC_PROMPT + t for t in docs], normalize_embeddings=True)
scores = d @ q                      # cosine similarity
print(docs[int(np.argmax(scores))]) # -> the escovar-os-dentes pictogram

Pre-compute the document embeddings for your pictogram catalog once; at query time you only embed the query and take cosine similarities. The same cosine score is used both to retrieve (over the full catalog) and to rerank a candidate shortlist.

On CPU with llama.cpp (recommended for deployment)

Use the GGUF build — it serves the full pipeline (pooling + dense projections) and loads in ~190 MB at Q8:

# from tardellirs/aac-pictogram-retriever-ptbr-GGUF (keep tokenizer.model next to the .gguf)
llama-server -m aac-Q8_0.gguf --embedding --pooling mean --host 127.0.0.1 --port 8080
# POST {"input": "task: search result | query: escovar os dentes"} to /v1/embeddings ; then cosine + normalize

Quantization quality (cosine vs. the fp16 reference, near-lossless): Q8_0 0.9998, Q6_K 0.9991, Q4_K_M 0.9926.


Model details

  • Architecture: SentenceTransformer — Transformer → mean Pooling → Dense (768→3072) → Dense (3072→768) → Normalize. Output dimension 768.
  • Base model: tardellirs/colibri-embed-ptbr, a Brazilian-Portuguese model derived from Google's EmbeddingGemma-300M with its vocabulary trimmed to the most relevant pt-BR tokens (~157M parameters after trimming). Architecture and prompts are inherited from EmbeddingGemma.
  • Matryoshka embeddings: trained with nested dimensions [768, 256, 128], so outputs can be truncated to 256 or 128 dims for cheaper storage/search with graceful quality loss.
  • Prompts: query task: search result | query: , document title: none | text: .

Training

Training data is released as aac-pictogram-retrieval-ptbr-training. The model was adapted to the AAC pictogram domain by distilling relevance signal from a strong LLM judge over the ARASAAC catalog:

  • Retrieval supervision: for each pictogram, an LLM generated varied pt-BR search terms a child, therapist or caregiver might type, giving broad coverage of the full catalog (query → pictogram pairs).
  • Rerank supervision: for realistic communication-board contexts, an LLM assigned graded relevance scores to candidate pictograms per target word, providing both positives and hard negatives.
  • Objective: contrastive retrieval loss (in-batch negatives) + a graded-distillation margin loss, wrapped in a Matryoshka loss over [768, 256, 128]. Documents are represented by a single text per pictogram (labels + synonyms + keywords + ARASAAC tags), so one embedding per pictogram serves both retrieval and reranking.

Evaluation

Evaluated on the aac-pictogram-retrieval-ptbr benchmark — a held-out set of genuinely unseen, non-canonical pt-BR queries (morphological variants, child language, synonyms) against the full ~14k-pictogram catalog — a deliberately hard generalization test. Relevance was judged by an LLM over a candidate pool pooled across all compared systems (TREC-style pooling — so newcomers are not penalized for retrieving un-judged pictograms). Recall@k over the 13,800-pictogram corpus, sorted by R@5:

#SystemR@1R@5R@10Size / type
1gemini-embedding-0010.5420.7970.864cloud API
2aac-pictogram-retriever-ptbr (this model)0.546 🥇0.7860.827157M · CPU
3text-embedding-3-large0.4720.7560.845cloud API
4qwen3-embedding-4b0.4800.7450.8124B
5voyage-40.4470.7160.823cloud API
6text-embedding-3-small0.3470.5940.675cloud API
7voyage-4-lite0.3540.5830.712cloud API
8gte-large0.2290.4240.505335M
9e5-base-v20.2360.4060.528110M
10gte-base0.2070.3910.502110M
11all-MiniLM-L12-v20.1260.3360.40633M
12paraphrase-MiniLM-L6-v20.0960.2580.35422M

On the reranking task (choosing among a candidate shortlist), the model reaches accuracy@loose ≈ 0.96 with a false-accept rate ≈ 0.04 ("better to omit than to show the wrong picture" — an important property for AAC).

Takeaway: a 157M open model running on CPU ranks #2 of 12 on this domain — it has the best R@1 of all systems (edging gemini-embedding-001), and on novel concepts (the target split) it ranks #1 by R@5 (0.806 vs. gemini's 0.778). It outranks much larger cloud APIs and multi-billion-parameter models (text-embedding-3-large, qwen3-embedding-4b, voyage-4, text-embedding-3-small). Only gemini-embedding-001 edges it, by ~1 pt of R@5 — and the LLM judge is from the same family as that model. A fully self-hostable model at a tiny fraction of the size and cost.

Limitations & responsible use

  • Domain-specific. Tuned for ARASAAC pictogram search in Brazilian Portuguese. It is not a general-purpose embedder and should not be assumed to transfer to other languages, catalogs, or tasks.
  • LLM-distilled supervision and evaluation. Training labels and the benchmark above use LLM-judged relevance, not human gold annotations. Numbers are best read as relative comparisons on an internal benchmark; for clinical or high-stakes deployments, validate against human judgments in your setting.
  • AAC is assistive technology used by vulnerable users (often non-verbal children). Keep a human in the loop: present pictograms for a person to confirm, and prefer omitting an item over showing a wrong one.

License & attribution

  • This model is released under the Gemma license, inherited from its EmbeddingGemma base. Your use must comply with the Gemma Terms of Use and Prohibited Use Policy.
  • ARASAAC pictograms (which this model is trained to retrieve) are authored by the Government of Aragón and distributed under CC BY-NC-SA. The model operates on text about pictograms; if you distribute pictogram content, follow ARASAAC's attribution and non-commercial terms.

Citation

Developed for and used in Papuguinho — www.papuguinho.com.

@software{aac_pictogram_retriever_ptbr,
  title  = {AAC Pictogram Retriever (pt-BR)},
  author = {Stekel, Tardelli R. C. and Antonelli, Manuela and Baroni, Gabriel P. and {Carvalho Neto}, José A. and Souza, Marcela J. V.},
  year   = {2026},
  url    = {https://huggingface.co/tardellirs/aac-pictogram-retriever-ptbr},
  doi    = {10.57967/hf/9658},
  publisher = {Hugging Face},
  note   = {A CPU-friendly Brazilian-Portuguese embedding model for ARASAAC pictogram retrieval and reranking, used in Papuguinho (www.papuguinho.com)}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Gemma3TextModel
Ревизия весов
eca8b0b

0 моделей