/ Модель

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

Размер весов
24,4 ГБ
Лицензия
CC BY 4.0
Архитектура
gemma3 · dense
Базовая модель
TigerLLM-12B-it
Библиотека
transformers
Опубликована
27 фев 2026

TigerCoder-12B

Генерация текстаТекст → текст3 профессии
411скачиваний за 30 дней0лайковвеса обновлены16 окт 2026

Описание модели

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

TigerCoder-12B — дообученная модель Gemma 3 для генерации и объяснения кода по инструкциям на бенгальском языке.

TigerCoder-12B — языковая модель для генерации кода по инструкциям на бенгальском языке, разработанная Nishat Raihan, Antonios Anastasopoulos и Marcos Zampieri из George Mason University. Модель основана на Gemma 3, содержит 12,2 млрд параметров и дообучена методом LoRA на декодере TigerLLM-12B-it с использованием набора Bangla-Code-Instruct; LoRA-веса объединены с основными. Репозиторий содержит веса BF16 в формате safetensors и рассчитан на запуск через Transformers.

Модель предназначена прежде всего для написания кода по описаниям задач на бенгальском языке. Также она может объяснять и исправлять предоставленный код и переводить его на другой язык программирования. README сообщает об оценке генерации Python, C++ и Java по бенгальским запросам; также упоминаются идентификационные примеры на бенгальском и английском. Хотя архитектура включает компонент обработки изображений Gemma 3, дообучался только текстовый декодер, а зрительный энкодер не обучался и не тестировался на коде или бенгальских данных.

Для запуска рекомендуется GPU с поддержкой BF16 и 24–30 ГиБ памяти; 4-битная загрузка снижает потребление памяти и может немного повлиять на качество. Модель специализируется на генерации кода и не предназначена для общих языковых задач. Оценка ограничена наборами MBPP-Bangla и mHumanEval-Bangla, поэтому качество в производственных сценариях не установлено; сгенерированный код следует запускать и проверять. Данные обучения частично синтетические и машинно-переведённые. Лицензия — CC BY 4.0.

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

  • генерация кода Python по описанию задачи на бенгальском языке
  • написание функций на C++ по бенгальским инструкциям
  • создание Java-кода по запросу на бенгальском языке
  • объяснение предоставленного кода на бенгальском языке
  • поиск и исправление ошибок в коде по бенгальскому запросу
  • перевод кода на другой язык программирования по инструкции на бенгальском языке

Ограничения

Модель обучена для генерации кода по-бенгальски; оценка ограничена MBPP-Bangla и mHumanEval-Bangla, поэтому качество для производственных задач не установлено. Обучающие данные частично синтетические или машинно-переведённые, а сгенерированный код нужно проверять.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

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

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

🐯 TigerCoder-12B

A Bangla code-generation LLM from the TigerCoder family (LREC 2026)

LREC 2026 TigerCoder-1B TigerLLM-12B-it Bangla-Code-Instruct MBPP-Bangla

Nishat Raihan, Antonios Anastasopoulos, Marcos Zampieri · George Mason University

[!WARNING] TigerCoder-9B is deprecated. This repository used to be TigerCoder-9B. The 9B checkpoints are obsolete and no longer maintained. TigerCoder-12B replaces them and scores 5–7% higher than the 9B model on the benchmarks below. Old links to TigerCoder-9B redirect here, but please update your code to md-nishat-008/TigerCoder-12B.

Model summary

TigerCoder is a family of code LLMs for Bangla. TigerCoder-12B is the larger member: you describe a programming task in Bangla and it writes the code. It was fine-tuned from TigerLLM-12B-it with LoRA on Bangla-Code-Instruct, and the LoRA weights are merged into the checkpoint, so you do not need PEFT or a separate base model to run it. It introduces itself as TigerCoder and knows who built it.

ArchitectureGemma3ForConditionalGeneration (Gemma 3, 12B)
Parameters12.2B
PrecisionBF16, 5 safetensors shards (about 22.7 GiB)
Base modelTigerLLM-12B-it
TaskCode generation from Bangla prompts
Programming languagesPython, C++, Java, JavaScript
Fine-tuning dataBangla-Code-Instruct, 300K Bangla instruction-code pairs
LicenseCC BY 4.0

Only the text decoder was fine-tuned. The vision encoder comes unchanged from Gemma 3 and was not trained or tested on code or Bangla data.

Benchmarks

Pass@K on Python tasks with Bangla prompts, from the TigerCoder paper (LREC 2026).

ModelmHumanEval P@1mHumanEval P@10mHumanEval P@100MBPP P@1MBPP P@10MBPP P@100
GPT-3.50.560.560.590.600.620.62
Gemini-Flash 2.50.580.610.620.620.620.70
Gemma-3 (27B)0.640.650.690.690.700.70
TigerLLM (9B) (deprecated)0.630.690.720.610.680.73
TigerCoder-1B, paper checkpoint0.690.730.770.740.740.81
TigerCoder-1B, current+2–4%+2–4%+2–4%+2–4%+2–4%+2–4%
TigerCoder-9B (deprecated)0.750.800.840.820.840.91
TigerCoder-12B (this model)+5–7%+5–7%+5–7%+5–7%+5–7%+5–7%

The numeric rows are from the paper. TigerCoder-12B scores 5–7% higher than TigerCoder-9B, and the current TigerCoder-1B scores 2–4% higher than the paper's TigerCoder-1B.

The paper also tested TigerCoder-9B in other programming languages (Pass@1, Bangla prompts):

LanguagemHumanEval P@1MBPP P@1
Python0.750.82
C++0.670.72
Java0.620.67
JavaScript0.570.62

Quick start

pip install "torch>=2.4" "transformers>=4.57.1" "accelerate>=1.10" sentencepiece safetensors

A GPU with BF16 support and about 24–30 GiB of memory is recommended. For smaller GPUs, see 4-bit loading below.

import torch
from transformers import AutoTokenizer, Gemma3ForConditionalGeneration

MODEL_ID = "md-nishat-008/TigerCoder-12B"

tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = Gemma3ForConditionalGeneration.from_pretrained(
    MODEL_ID,
    dtype=torch.bfloat16,
    device_map="auto",
    attn_implementation="sdpa",
).eval()

# "Write a Python function that computes the factorial of a number."
messages = [{"role": "user", "content": "পাইথনে একটি ফাংশন লিখুন যা একটি সংখ্যার ফ্যাক্টরিয়াল গণনা করে।"}]

inputs = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    return_dict=True,
    return_tensors="pt",
).to(model.device)

with torch.inference_mode():
    output_ids = model.generate(**inputs, max_new_tokens=512, do_sample=False, repetition_penalty=1.05)

print(tokenizer.decode(output_ids[0, inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

4-bit loading for smaller GPUs

pip install bitsandbytes
import torch
from transformers import BitsAndBytesConfig, Gemma3ForConditionalGeneration

quantization = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16,
    bnb_4bit_use_double_quant=True,
)

model = Gemma3ForConditionalGeneration.from_pretrained(
    "md-nishat-008/TigerCoder-12B",
    device_map="auto",
    quantization_config=quantization,
).eval()

Use the same tokenizer and chat-template code as in the quick start. NF4 cuts memory use and may change output quality slightly.

Prompting tips

  • Build prompts with tokenizer.apply_chat_template(...). Do not paste special chat tokens by hand.
  • Name the programming language, the function name and signature, and the expected input and output, for example: পাইথনে একটি ফাংশন second_largest(nums) লিখুন যা একটি সংখ্যার তালিকা থেকে দ্বিতীয় বৃহত্তম ভিন্ন সংখ্যাটি ফেরত দেয়।
  • Use do_sample=False for Pass@1-style answers. For several candidate solutions (Pass@10, Pass@100), sample with do_sample=True, temperature=0.7, top_p=0.95.
  • You can also paste code and ask, in Bangla, for an explanation, a bug fix or a translation to another programming language.

Training

SettingValue
Base modelTigerLLM-12B-it
DataBangla-Code-Instruct: 294,883 unique instruction-code pairs (exact duplicates and one empty row removed), plus 2,000 TigerCoder identity examples in Bangla and English
MethodLoRA on the decoder attention and MLP projections, merged into the weights
LoRA rank / alpha / dropout32 / 64 / 0
Epochs1.5 (every example seen at least once), 3,047 optimizer steps
Max sequence length2,048 tokens
Optimizer / learning rateAdamW, 1e-4, cosine schedule
Batch sizeabout 65K tokens per optimizer step
PrecisionBF16
Hardware1 × NVIDIA RTX PRO 6000 (96 GB), about 15 hours
HyperparameterValue
Training dataBangla-Code-Instruct (300K examples)
Max sequence length2048
Batch size (train / eval)32
Gradient accumulation steps8
Epochs3
Learning rate1 × 10⁻⁶
Weight decay0.04
Warm-up15% of steps
OptimizerAdamW
LR schedulerCosine
PrecisionBF16
HardwareNVIDIA A100 (40 GB)

Training data

Bangla-Code-Instruct has three 100K subsets:

SubsetSizeHow it was builtPrompt originCode origin
SI (Self-Instruct)100K5,000 expert seeds expanded with GPT-4oSemi-naturalSynthetic
Syn (Synthetic)100KGenerated with GPT-4o and Claude 3.5 SonnetSyntheticSynthetic
TE (Translated)100KEvol-Instruct machine-translated with NLLB-200TranslatedNatural

All SI and Syn code passed a syntax check (ast.parse) and an execution test (Python 3.13.0, 10 s timeout, 16 GB memory).

Findings from the paper

  1. Bangla prompts hurt code LLMs. Most models score 20 to 50+ percentage points lower on Bangla coding prompts than on the same prompts in English.
  2. Translating the prompt to English does not fix it. Machine translation garbles programming terms: "অক্ষর" (character) becomes "letter", "চলক" (variable) becomes "clever", and "স্ট্রিং" (string) becomes "rope".
  3. Targeted data beats scale. TigerCoder-1B beats models 27 times its size, and TigerCoder-9B led the strongest prior baselines by 11–18%.

Repository files

FileContents
model-0000{1..5}-of-00005.safetensors, model.safetensors.index.jsonMerged BF16 weights and shard index
config.json, generation_config.jsonModel and generation settings
tokenizer.*, added_tokens.json, special_tokens_map.json, chat_template.jinjaTokenizer and chat format
processor_config.json, preprocessor_config.jsonProcessor settings

Limitations

  • TigerCoder is trained for Bangla code generation. On general language tasks, use TigerLLM-12B-it.
  • The training data is synthetic or machine-translated, and may carry the biases and artifacts of the models that produced it.
  • Evaluation covers MBPP-Bangla and mHumanEval-Bangla only. Production-scale coding tasks have not been benchmarked.
  • Run and review generated code before you use it.

License

CC BY 4.0. Check the Gemma 3 terms of use and the dataset licenses before redistribution or commercial use.

Citation

@inproceedings{raihan-etal-2026-tigercoder,
    title = "{T}iger{C}oder: A Novel Suite of {LLM}s for Code Generation in {B}angla",
    author = "Raihan, Nishat  and
      Anastasopoulos, Antonios  and
      Zampieri, Marcos",
    editor = "Piperidis, Stelios  and
      Bel, N{\'u}ria  and
      van den Heuvel, Henk  and
      Ide, Nancy  and
      Krek, Simon  and
      Toral, Antonio",
    booktitle = "Proceedings of the Fifteenth Language Resources and Evaluation Conference",
    month = may,
    year = "2026",
    address = "Palma de Mallorca, Spain",
    publisher = "ELRA Language Resource Association",
    url = "https://aclanthology.org/2026.lrec-1.238/",
    doi = "10.63317/5nampb63np3m",
    pages = "3044--3054"
}
@inproceedings{raihan-zampieri-2025-tigerllm,
    title = "{T}iger{LLM} - A Family of {B}angla Large Language Models",
    author = "Raihan, Nishat  and
      Zampieri, Marcos",
    editor = "Che, Wanxiang  and
      Nabende, Joyce  and
      Shutova, Ekaterina  and
      Pilehvar, Mohammad Taher",
    booktitle = "Proceedings of the 63rd Annual Meeting of the {A}ssociation for {C}omputational {L}inguistics (Volume 2: Short Papers)",
    month = jul,
    year = "2025",
    address = "Vienna, Austria",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.acl-short.69/",
    doi = "10.18653/v1/2025.acl-short.69",
    pages = "887--896",
    ISBN = "979-8-89176-252-7"
}
@inproceedings{raihan-etal-2025-mhumaneval,
    title = "m{H}uman{E}val - A Multilingual Benchmark to Evaluate Large Language Models for Code Generation",
    author = "Raihan, Nishat  and
      Anastasopoulos, Antonios  and
      Zampieri, Marcos",
    editor = "Chiruzzo, Luis  and
      Ritter, Alan  and
      Wang, Lu",
    booktitle = "Proceedings of the 2025 Conference of the Nations of the {A}mericas Chapter of the {A}ssociation for {C}omputational {L}inguistics: Human Language Technologies (Volume 1: Long Papers)",
    month = apr,
    year = "2025",
    address = "Albuquerque, New Mexico",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.naacl-long.570/",
    doi = "10.18653/v1/2025.naacl-long.570",
    pages = "11432--11461",
    ISBN = "979-8-89176-189-6"
}

Questions: mraihan2@gmu.edu

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Gemma3ForConditionalGeneration
Ревизия весов
33e9dc2

0 моделей