/ Модель

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

Контекст
8 192 токена
Параметры
2,7 млрд
Размер весов
5,2 ГБ
Лицензия
Gemma
Архитектура
gemma2 · dense
Базовая модель
gemma-2-2b
Библиотека
transformers
Опубликована
5 окт 2024

titulm-gemma-2-2b-v1.1

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

Дообученная на бенгальских текстах модель Gemma 2 для генерации и понимания бенгальского языка.

118скачиваний за 30 дней2лайкавеса обновлены24 окт 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

titulm-gemma-2-2b-v1.1 — языковая модель Hishab на архитектуре Gemma 2, дообученная на большом корпусе текстов на бенгальском языке. Это авторегрессионный трансформер с 2,7 млрд параметров; модель принимает и генерирует текст. В метаданных указан контекст до 8192 токенов.

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

Модель доступна через Transformers в формате Safetensors. Указана лицензия Gemma; использование регулируется её условиями. README сообщает о 2 млрд параметров, а метаданные каталога — о 2,7 млрд.

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

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

Ограничения

Обучение сосредоточено на бенгальском языке; результаты английских бенчмарков приведены в карточке, но модель не позиционируется как англоязычная. README и метаданные расходятся в оценке числа параметров: 2 млрд и 2,7 млрд соответственно.

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

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

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

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

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

Открыть на Hugging Face

Model Information

This model is a continually pre-trained version of the google/gemma-2-2b architecture, fine-tuned on extensive Bangla datasets. The primary goal of the continual pretraining 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: Gemma 2 is an auto-regressive language model that uses an optimized transformer architecture.

Training DataParamsInput modalitiesOutput modalitiesContext LengthToken count
Gemma 2Hishab curated Bangla text corpus2BMonolingual Text(Bangla)Monolingual Text(Bangla)40964.4B tokens

How To Use

Below we share some code snippets on how to get quickly started with running the model. First, install the Transformers library with:

pip install -U transformers

Then, copy the snippet from the section that is relevant to your use case.

Running with the pipeline API

import torch
from transformers import pipeline

pipe = pipeline(
    "text-generation",
    model="titulm-gemma-2-2b-v1.1",
    device="cuda",  # replace with "mps" to run on a Mac device
)

text = "আমাদের দেশের নাম"
outputs = pipe(text, max_new_tokens=256)
response = outputs[0]["generated_text"]
print(response)

Hardware and Software

Training Factors: We used the llama-factory training library, a 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, transcribed text, code-mixed text, conversations, and open-source 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. We separated 33GB data from that using a ratio of the actual data size. Total trained tokens are 4.4B tokens.

Data sources summary:

  • Web documents: Extracted, cleaned, and filtered common crawl data
  • Books: Extracted, cleaned, filtered books 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 scrapped data from some selected websites, used open-source data, and used some other data sources

Benchmarks

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

Evaluation Datasets

We evaluated our pre-trained models on both Bangla and English benchmark datasets. Although the model is trained on Bangla data, its 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 of Bangla Benchmark datasets

  • gemma-2-2b shows stronger performance in Bangla MMLU and BoolQ BN in the 0-shot setting.
  • titulm-gemma-2-2b-v1.1 performs better in Commonsense QA BN, OpenBook QA BN, and PIQA BN across both 0-shot and 5-shot settings.
  • In the 5-shot setting, titulm-gemma-2-2b-v1.1 leads in BoolQ BN, Commonsense QA BN, and OpenBook QA BN.
  • PIQA BN scores are close, with titulm-gemma-2-2b-v1.1 having a slight edge in the 0-shot setting.
ModelShotsBangla MMLUBoolQ BNCommonsense QA BNOpenBook QA BNPIQA BN
gemma-2-2b0-shot0.320.630.260.340.56
5-shot0.350.460.280.330.56
titulm-gemma-2-2b-v1.10-shot0.300.610.310.350.62
5-shot0.350.570.400.380.60

Evaluation of English Benchmark datasets

  • gemma-2-2b consistently achieves the highest scores across all tasks in both 0-shot and 5-shot settings, leading in MMLU, BoolQ, Commonsense QA, OpenBook QA, and PIQA, with a maximum 5-shot score of 0.80 in PIQA.
  • titulm-gemma-2-2b-v1.1 performs well but trails behind gemma-2-2b, particularly in Commonsense QA and OpenBook QA, with the best scores being slightly lower across all tasks.
  • It is expected as we have trained only on Bangla text.
ModelShotsMMLUBoolQCommonsense QAOpenBook QAPIQA
gemma-2-2b0-shot0.500.740.520.420.79
5-shot0.530.780.660.420.80
titulm-gemma-2-2b-v1.10-shot0.400.710.370.360.76
5-shot0.440.750.530.360.76

Instruction Tuned Models

Intended Use

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

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей