/ Модель

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

Контекст
131 072 токена
Параметры
3,2 млрд
Размер весов
12,1 ГБ
Лицензия
Llama 3.2
Архитектура
llama · dense
Базовая модель
Llama-3.2-3B-Instruct
Библиотека
transformers
Опубликована
31 мая 2025

Llama-3.2-3B-Instruct-uz

Генерация текстаТекст → текст7 профессий

Экспериментальная дообученная версия Llama 3.2 3B для диалогов и генерации текста с улучшенной обработкой узбекского языка.

35скачиваний за 30 дней5лайковвеса обновлены4 мар 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Llama-3.2-3B-Instruct-uz — экспериментальная узбекско-английская языковая модель bxod, созданная на базе Meta Llama 3.2 3B Instruct. Модель прошла дополнительное предобучение на 1,2 млрд токенов (80% английского и 20% узбекского текста), а затем дообучение на инструкциях. Она содержит 3,2 млрд параметров, использует архитектуру LlamaForCausalLM и рассчитана на контекст до 131 072 токенов по метаданным; в описании обучения указан контекст 2048 токенов.

Модель предназначена для диалогов и генерации текста, а также может применяться к переводу между узбекским и английским, анализу тональности, классификации новостей и ответам на вопросы. Специальный токенизатор сокращает среднее число токенов на узбекское слово, что может повысить скорость обработки узбекского текста и эффективное использование контекста. Для запуска на видеокарте с 4 ГБ VRAM авторы рекомендуют квантизацию.

В опубликованных оценках узбекская версия превосходит базовую модель в тестах перевода и анализа тональности на узбекском, но показывает снижение результатов на некоторых англоязычных и классификационных задачах. Авторы обозначают чекпойнт как экспериментальный и устаревший. Лицензия — Llama 3.2; условия её использования определяются соответствующей лицензией Meta.

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

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

Ограничения

Модель обозначена авторами как экспериментальная и устаревшая; оценки показывают снижение результатов на отдельных англоязычных и классификационных задачах по сравнению с базовой моделью. В README для обучения указан контекст 2048 токенов, тогда как метаданные приводят 131072 токена.

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

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

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

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

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

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

Открыть на Hugging Face

[THIS MODEL IS DEPRECATED]

Please refer to https://huggingface.co/uzlm/alloma-3B-Instruct for updated model.

Model Description

Our Llama-3.2-3B-Instruct-uz (experimental) model has been continually pretrained with context length of 2048 tokens, on 1.2B tokens (80% English, 20% Uzbek), then SFT fine-tuned. Our customized tokenizer averages 1.7 tokens per Uzbek word vs. ~3.5 in the original Llama models, meaning 2x faster inference and longer effective context length on Uzbek text. You’ll be able to run this model on just 4 GB of VRAM (with quantization), perfect for small GPUs, edge devices, or even mobile scenarios.


Benchmarks

ModelBLEU Uz→En (Zero_shot)BLEU En→Uz (Zero_shot)COMET Uz→EnCOMET En→UzUzbek Sentiment AnalysisUzbek News ClassificationMMLU (English) (Zero_shot)
Llama-3.2 1B Instruct3.620.4456.7235.5254.7742.1638.15
Llama-3.2 1B Instruct Uz10.335.2974.3972.3465.2517.1427.20
Llama-3.2 3B Instruct11.912.5471.9655.6256.0170.6052.04
Llama-3.2 3B Instruct Uz20.479.1883.2080.7177.5541.4345.91
Llama-3.1 8B Instruct24.238.2883.1282.2269.7773.6360.59

The results show that our Uzbek-optimized models consistently outperform their base counterparts in translation benchmarks (BLEU and COMET) on the FLORES+ Uz-En / En-Uz evaluation datasets and sentiment analysis in Uzbek language. Also, on the MMLU benchmark, which measures general language understanding across multiple tasks in English, and News classification tasks, our Uzbek optimized model showed slight decline because of catastrophic forgetting of original English instruction following. (The official Llama model’s MMLU score may differ from our score due to our evaluation method. Refer to the links below to see evaluation details.)

Looking ahead, these models are only experimental checkpoints with a room for improvement. We’re eager to see how these models will contribute to Uzbek open-source and be used by our Uzbek 🇺🇿 community. 🚀

How to use

The Llama-3.2-3B-Instruct-uz model can be used with transformers in the following way. We recommend preprocessing Uzbek input to replace apostrophe (') with sequence (APST) to achieve our model's lower tokenizer fertility.

Use with transformers

import re, torch
from transformers import AutoModelForCausalLM, AutoTokenizer
import langid

DEVICE   = torch.device("cuda" if torch.cuda.is_available() else "cpu")
DTYPE    = torch.bfloat16
MODEL_ID = "bxod/Llama-3.2-3B-Instruct-uz"
PATTERN  = r"[’‘‚‛ʻʼʽʾʿˈˊˋˌˍ'\']"

tok = AutoTokenizer.from_pretrained(MODEL_ID, use_fast=True)
tok.padding_side = "left"
model = AutoModelForCausalLM.from_pretrained(
    MODEL_ID,
    torch_dtype=DTYPE,
    device_map="auto"
)

EOT = "<|eot_id|>"
SYSTEM = (
    f"{tok.bos_token}<|start_header_id|>system<|end_header_id|>\n"
    "You are a helpful assistant<|eot_id|>"
)

def prompt(user: str) -> str:
    return (
        SYSTEM +
        "<|start_header_id|>user<|end_header_id|>\n" +
        f"{user}{EOT}" +
        "<|start_header_id|>assistant<|end_header_id|>"
    )

def generate(user: str, max_new: int = 256) -> str:
    lang, confidence = langid.classify(user)
    clean_text = re.sub(PATTERN, "APST", user) if lang != "en" else user
    enc = tok(prompt(clean_text), return_tensors="pt").to(DEVICE)
    out = model.generate(**enc,
                         max_new_tokens=max_new,
                         bos_token_id=tok.bos_token_id,
                         eos_token_id=tok.convert_tokens_to_ids(EOT),
                         pad_token_id=tok.pad_token_id,
                         do_sample=False)
    txt = tok.decode(out[0], skip_special_tokens=False)
    txt = txt.split("<|start_header_id|>assistant<|end_header_id|>", 1)[1]
    return txt.split(EOT, 1)[0].replace("APST", "'").strip()

print(generate("Menga Alisher Navoiy haqida aytib ber."))

Information on Evaluation Method

To evaluate on the translation task, we used FLORES+ Uz-En / En-Uz datasets. We used the following prompt to do zero-shot Uz-En evaluation both for the base model and Uzbek-optimized model (for En-Uz eval, we changed the positions of the words "English" and "Uzbek").

  prompt = f"Input: {clean_text} \n\nYour task is to accurately translate the given Uzbek text into English.\n"
        "Output only the English translation, without any additional comments.\n"
        "\nPlease translate the following Uzbek text into English."

To assess the model's ability in Uzbek sentiment analysis, we used the risqaliyevds/uzbek-sentiment-analysis dataset (refer to behbudiy/uzbek-sentiment-analysis dataset). We used the following prompt for the evaluation:

prompt = f'''Input: {clean_text} \n\nGiven the following text, determine the sentiment as either 'Positive' or 'Negative.' Respond with only the word 'Positive' or 'Negative' without any additional text or explanation."
'''

For Uzbek News Classification, we used risqaliyevds/uzbek-zero-shot-classification dataset and asked the model to predict the category of the news using the following prompt:

prompt = f'''Input: {clean_text}\n\nClassify the given news article in Uzbek.
0 - Siyosat - If the text is about politics.
1 - Iqtisodiyot - If the text is about the economy.
2 - Texnologiya - If the text is about technology.
3 - Sport - If the text is about sports.
4 - Madaniyat - If the text is about culture.
5 - Salomatlik - If the text is about health.
6 - Oila va Jamiyat - If the text is about family and society.
7 - TaAPSTlim - If the text is about education.
8 - Ekologiya - If the text is about ecology.
9 - Xorijiy Yangiliklar - If the text is about foreign news.

Print only one digit ID of the corresponding class.
'''

On MMLU, we performed 0-shot evaluation using the following template and extracted the first token generated by the model for measuring accuracy:

template = "Given the above question and choices, choose the single best answer (A, B, C, or D). Respond with only one letter..

More

For more details and examples, refer to the base model below: https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей