/ Модель

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

Контекст
131 072 токена
Параметры
3,3 млрд
Размер весов
6,7 ГБ
Лицензия
Llama 3.2
Архитектура
llama · dense
Библиотека
transformers
Опубликована
16 окт 2024

titulm-llama-3.2-3b-v2.0

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

Модель Hishab на основе Llama 3.2, дообученная для генерации и понимания текста на бенгальском языке.

1 419скачиваний за 30 дней8лайковвеса обновлены7 июн 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

TituLM Llama 3.2 3B v2.0 — авторегрессионная плотная языковая модель семейства Llama, разработанная Hishab на основе meta-llama/Llama-3.2-3B. Модель продолжительно предобучена на корпусе текстов на бенгальском языке с расширением словаря примерно на 42 тысячи токенов, а затем дообучена на больших наборах данных на бенгальском языке.

Модель предназначена для генерации бенгальского текста и задач понимания бенгальского языка; также поддерживает английский как вторичный язык. Архитектура использует Transformer и Grouped-Query Attention, содержит около 3,3 млрд параметров и поддерживает контекст до 131 072 токенов по метаданным. Карточка описывает обучение на 37 млрд токенов и работу с текстовым вводом и выводом. Доступна в формате safetensors для Transformers, поддерживает чат и интерфейс вызова инструментов.

Модель подходит для генерации и понимания текста на бенгальском языке, но показатели из карточки относятся к семейству моделей и не подтверждают качество именно этой версии на каждом сценарии. Использование регулируется лицензией Llama 3.2 Community License; метаданные обозначают лицензию как llama3.2.

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

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

Ограничения

Модель ориентирована прежде всего на бенгальский язык; качество для отдельных задач и английского языка может отличаться. Это статичный чекпойнт, обученный на офлайн-данных.

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

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

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

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

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

Открыть на Hugging Face

Model Information

This model is a continually pretrained version of the meta-llama/Llama-3.2-3B architecture with extended about 42K Bangla tokens, fine-tuned on extensive Bangla datasets. The primary goal of the continual pretraining with token extending was to enhance the model's ability to generate high-quality Bangla text. By extending the pretraining process specifically on Bangla data, the model has demonstrated superior performance in Bangla language understanding evaluation benchmarks and text generation tasks.

Model Architecture: Llama 3.2 is an auto-regressive language model with optimized transformer architecture.

Training DataParamsInput modalitiesOutput modalitiesContext LengthGQAShared EmbeddingsToken countKnowledge cutoff
Llama 3.2 (text only)Hishab curated Bangla text corpus3B(3.21B)Monolingual Text(Bangla)Monolingual Text(Bangla)4096YesYes37B tokens

Supported Languages: Bengali (primary) and English (secondary)

Llama 3.2 Model Family: Token counts refer to pretraining data only. All model versions use Grouped-Query Attention (GQA) for improved inference scalability.

Model Release Date: October 24, 2024

Status: This is a static model trained on an offline dataset. Future versions may be released to improve model capabilities.

License: We are using a similar license to Llama 3.2. Use of Llama 3.2 is governed by the Llama 3.2 Community License (a custom, commercial license agreement).

Paper: TituLLMs: A Family of Bangla LLMs with Comprehensive Benchmarking

How to use

  • Use with transformers

Starting with transformers >= 4.43.0 onward, you can run conversational inference using the Transformers pipeline abstraction or by leveraging the Auto classes with the generate() function.

Make sure to update your transformers installation via pip install --upgrade transformers.

import torch
from transformers import pipeline

model_id = "hishab/titulm-llama-3.2-3b-v2.0"

pipe = pipeline(
    "text-generation", 
    model=model_id, 
    torch_dtype=torch.bfloat16, 
    device_map="auto"
)

pipe("আমাদের দেশের নাম")

Hardware and Software

Training Factors: We used llama-factory training library, Cloud GPU cluster, and production infrastructure for pretraining. Fine-tuning, annotation, and evaluation were also performed on cloud infrastructure.

Training Data

Overview: We have collected a large Bangla raw dataset of text data from a wide variety of sources. Our collected data so far includes a mix of web documents, books, translated text, transliterated text, transcribe text, code-mixed text, conversations, and open sources raw data. The dataset is cleaned and filtered by different filtering criteria to ensure the quality of the data. Our collected data size is roughly around 268 GB. The total trained tokens are 37B tokens.

Data sources summary:

  • Web documents: Extracted, clean, and filtered common crawl data
  • Books: Extracted, clean, and filtered book data
  • Transcribed text: Used in-house Bangla ASR model to transcribe Bangla audio data
  • Translation data: We trained an English-Bangla translation LLM model and used it to translate English data to Bangla
  • Code-mixed data: We trained an English-Bangla code-mixed LLM model and used it to generate code-mixed data
  • Transliteration data: We trained a Bangla-English transliteration LLM model and used it to generate transliterated data
  • Synthetic data: We generated synthetic data using a Bangla LLM model
  • Others: We scraped some selected website data, used open-source data, and used some other data sources

Token Extending

We trained a separate Bangla tokenizer using Tiktoken library on 48 GB Bangla datasets (sampled from main pretraining data) with a vocabulary size of 48k and separated 42k tokens for adding with the pretrained model. We extended the model's vocabulary with these tokens and continued the pretraining process on Bangla data. The token-extending process was done to enhance the model's ability to generate high-quality Bangla text. Our updated vocab size is 170K whereas the original llama-3.2 vocab size is 128k.

Benchmarks - Bangla Text

In this section, we report the results for titulm-llama-3.2-1b-v2.0 models on standard automatic benchmarks. For all these evaluations, we used lm-evaluation-harness evaluations library.

Evaluation Datasets

We evaluated our pretrained models on both Bangla and English benchmark datasets. Although the model is trained on Bangla data, it's English capability is also evaluated on English benchmark datasets. The evaluation datasets are as follows:

Bangla Benchmark datasets

We evaluated the models on the following datasets:

  • Bangla MMLU: A private multiple choice question dataset developed by Hishab curated from various sources.
  • CommonsenseQa Bangla: A Bangla translation of the CommonsenseQA dataset. The dataset was translated using a new method called Expressive Semantic Translation (EST), which combines Google Machine Translation with LLM-based rewriting modifications.
  • OpenbookQA Bangla: A Bangla translation of the OpenbookQA dataset. The dataset was translated using a new method called Expressive Semantic Translation (EST), which combines Google Machine Translation with LLM-based rewriting modifications.
  • Piqa Bangla: A Bangla translation of the Piqa dataset. The dataset was translated using a new method called Expressive Semantic Translation (EST), which combines Google Machine Translation with LLM-based rewriting modifications.
  • BoolQ Bangla: The dataset contains 15,942 examples, with each entry consisting of a triplet: (question, passage, answer). The questions are naturally occurring, generated from unprompted and unconstrained settings. Input passages were sourced from Bangla Wikipedia, Banglapedia, and News Articles, and GPT-4 was used to generate corresponding yes/no questions with answers.

English Benchmark datasets

  • MMLU: This is a massive multitask test consisting of multiple-choice questions from various branches of knowledge.
  • CommonseQa: CommonsenseQA is a new multiple-choice question-answering dataset that requires different types of commonsense knowledge to predict the correct answers .
  • OpenbookQA: OpenBookQA aims to promote research in advanced question-answering, probing a deeper understanding of both the topic (with salient facts summarized as an open book, also provided with the dataset) and the language it is expressed in.
  • Piqa: The PIQA dataset focuses on physical commonsense reasoning, challenging AI to handle everyday situations requiring practical knowledge and unconventional solutions. Inspired by instructables.com, it aims to enhance AI's ability to understand and reason about physical interactions.
  • BoolQ: BoolQ is a question-answer dataset for yes/no questions containing 15942 examples. These questions are naturally occurring; they are generated in unprompted and unconstrained settings. Each example is a triplet of (question, passage, answer), with the title of the page as optional additional context. The text-pair classification setup is similar to existing natural language inference tasks.

Evaluation Results

Evaluation on Bangla Benchmark datasets

  • titulm-llama-3.2-3b-v2.0 shows improvement in Commonsense QA and PIQA BN, outperforming the base model in the 5-shot setting, particularly with scores of 0.33 and 0.60, respectively.
  • llama-3.2-3b performs slightly better on most tasks, especially in Bangla MMLU, where it scores 0.36 in 0-shot and 0.38 in 5-shot, compared to titulm-llama-3.2-3b-v2.0 scoring lower at 0.26 and 0.24.
ModelShotsBangla MMLUBoolQ BNCommonsense QA BNOpenBook QA BNPIQA BN
llama-3.2-3b0-shot0.360.550.260.310.56
5-shot0.38-0.290.320.58
titulm-llama-3.2-3b-v2.00-shot0.260.570.270.320.58
5-shot0.240.590.330.340.60

Evaluation on English Benchmark datasets

  • llama-3.2-3b consistently outperforms titulm-llama-3.2-3b-v2.0 across all English tasks. It achieves high scores, particularly in MMLU, BoolQ, and Commonsense QA, with a maximum score of 0.80 on PIQA in the 5-shot setting.
  • In contrast, titulm-llama-3.2-3b-v2.0 underperforms on all English benchmarks, scoring much lower than the base model, especially in Commonsense QA and PIQA, with only minor improvements between 0-shot and 5-shot.
  • It was expected as the model was trained only on Bangla datasets.
ModelShotsMMLUBoolQCommonsense QAOpenBook QAPIQA
llama-3.2-3b0-shot0.540.730.640.430.77
5-shot0.560.740.670.450.80
titulm-llama-3.2-3b-v2.00-shot0.240.490.200.220.57
5-shot0.260.590.200.240.57

Instruction Tuned Models

Intended Use

  • Bangla text generation
  • Bangla language understanding tasks
  • Bangla instruction fine-tuning tasks

Citation

@misc{nahin2025titullmsfamilybanglallms,
      title={TituLLMs: A Family of Bangla LLMs with Comprehensive Benchmarking}, 
      author={Shahriar Kabir Nahin and Rabindra Nath Nandi and Sagor Sarker and Quazi Sarwar Muhtaseem and Md Kowsher and Apu Chandraw Shill and Md Ibrahim and Mehadi Hasan Menon and Tareq Al Muntasir and Firoj Alam},
      year={2025},
      eprint={2502.11187},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2502.11187}, 
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей