/ Модель

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

Контекст
4 294 967 296 токенов
Лицензия
Apache 2.0
Архитектура
avey-b · dense
Библиотека
transformers
Опубликована
10 сен 2026

avey-b-ur

Заполнение пропусковТекст → текст4 профессии

Компактный энкодер для урду, предназначенный для заполнения пропусков, классификации текста и разметки сущностей.

99скачиваний за 30 дней2лайкавеса обновлены2 окт 2026

Бенчмарки

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

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

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

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

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

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

Avey-B Urdu 25M — компактный энкодер для языка урду, разработанный и обученный с нуля для masked language modeling на корпусе HPLT 3.0 Urdu. Модель имеет архитектуру Avey-B и 24,87 млн параметров; это не чат-модель и не генератор свободного текста. Для загрузки в Transformers требуется доверенный пользовательский код (`trust_remote_code=True`).

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

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

Ограничения

Модель не предназначена для диалога или генерации свободного текста. Оценка ограничена предсказанием маскированных токенов, машинно переведёнными отзывами и NER по данным Википедии; перед применением в конкретной области её следует проверить на профильных текстах урду.

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

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

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

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

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

Открыть на Hugging Face

Avey-B Urdu 25M

Urdu masked-language encoder trained from scratch. This is an adaptation of the Avey-B architecture to Urdu. It does not claim the benchmark results reported for Avey-B by Acharya and Hammoud.

Quality and efficiency overview

Purpose

Use the checkpoint for Urdu classification, token classification, representation extraction, or continued pretraining. It is an encoder, not a chat model or free-text generator.

Upstream attribution

The architecture follows Avey-B (Acharya and Hammoud, ICLR 2026). Upstream code is at github.com/rimads/avey-b. Model code in this repository is included so the checkpoint can be loaded with trust_remote_code=True.

@inproceedings{2026aveyb,
  title={Avey-B},
  author={Acharya, Devang and Hammoud, Mohammad},
  booktitle={The Fourteenth International Conference on Learning Representations},
  year={2026}
}

Data provenance

ItemValue
CorpusHPLT 3.0 Urdu (urd_Arab), quality bins 10 and 9, Hub id HPLT/HPLT3.0
Clean data31,297 train docs, 151 validation docs, 541,165,369 characters
Downstream sets named in metadatamirfan899/imdb_urdu_reviews (sentiment, test), unimelb-nlp/wikiann config ur (NER, test)

HPLT packages its dataset under CC0 but does not own the underlying web text. The Apache-2.0 model license does not grant rights to third-party source documents that may be reproduced by the model.

Document filters beyond the quality bins, deduplication, and the tokenizer training corpus are not stated outside MANIFEST.json. This card does not add figures from that file.

Training

Training loss

ItemValue
Sequence length512
Token batch16,384 tokens/step
Training20,000 steps, BF16, fused AdamW
Peak learning rate7e-4
Hardware/runtimeNVIDIA RTX 4060 8GB, approximately 20 minutes
Final train loss2.52

Not reported in this card: random seed, number of runs, warmup, weight decay, dropout, and gradient clipping.

Evaluation

The model-index point estimates are accuracy 0.785333 and entity F1 0.812677. The intervals below appear only in this prose table. The number of runs behind each interval is not stated. Repository ids for UrNova, HPLT Urdu BERT, and the XLM-R checkpoint are not stated.

ModelParametersSentiment accuracyWikiANN Urdu NER F1
Avey-B Urdu24.87M78.53% ± 0.5181.27
UrNova94.72M81.83% ± 0.4287.79
HPLT Urdu BERT124.36M83.93% ± 1.2790.92
XLM-R base278.04M78.80% ± 0.5284.89

Other figures reported with this checkpoint, without a named device for the latency measurement:

  • 1.71 ms encoder latency at batch 1 / length 128, and 148 MiB peak VRAM at batch 16 / length 512.
  • 14.29 held-out MLM perplexity, 50.46% top-1, and 70.39% top-5 masked-token accuracy.
  • 4.19 characters/token on held-out data.

Limitations

Benchmark coverage in this card is limited to masked-token prediction, movie-review sentiment, and Wikipedia-derived NER. The sentiment limitation stated previously still applies: evaluate on native, domain-specific Urdu before production use. The card describes that sentiment setup as machine-translated movie reviews.

License

Apache-2.0, as declared in the metadata above.

Usage

This model contains a custom Avey architecture, so trust_remote_code=True is required.

import torch
from transformers import AutoModelForMaskedLM, AutoTokenizer

repo_id = "mahwizzzz/avey-b-ur"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForMaskedLM.from_pretrained(repo_id, trust_remote_code=True).eval()

text = "پاکستان کا دارالحکومت [MASK] ہے۔"
inputs = tokenizer(text, return_tensors="pt")
with torch.inference_mode():
    logits = model(**inputs).logits

mask_index = (inputs.input_ids[0] == tokenizer.mask_token_id).nonzero()[0, 0]
top_ids = logits[0, mask_index].topk(5).indices
print(tokenizer.convert_ids_to_tokens(top_ids.tolist()))

Extract contextual token representations with AutoModel:

from transformers import AutoModel, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("mahwizzzz/avey-b-ur", trust_remote_code=True)
encoder = AutoModel.from_pretrained("mahwizzzz/avey-b-ur", trust_remote_code=True)
hidden = encoder(**tokenizer("یہ ایک اردو جملہ ہے۔", return_tensors="pt")).last_hidden_state
print(hidden.shape)  # [batch, tokens, 384]

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

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

GPU в ailist

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

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

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

Класс архитектуры
AveyForMaskedLM
Ревизия весов
1eddf53

0 моделей