/ Модель

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

Контекст
32 768 токенов
Параметры
1 млрд
Лицензия
CC BY 4.0
Архитектура
gemma3_text · dense
Базовая модель
TigerLLM-1B-it
Библиотека
transformers
Опубликована
27 фев 2026

TigerCoder-1B

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

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

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

Компактная модель Gemma 3, которая генерирует код по инструкциям на бенгальском языке.

TigerCoder-1B — компактная языковая модель для генерации кода по инструкциям на бенгальском языке, разработанная Nishat Raihan, Antonios Anastasopoulos и Marcos Zampieri из George Mason University. Модель дообучена на базе md-nishat-008/TigerLLM-1B-it на наборе Bangla-Code-Instruct, а затем дополнительно настроена на примерах идентичности TigerCoder. Она использует плотную архитектуру Gemma 3 с 1 млрд параметров и формат весов BF16; заявленная длина контекста — 32 768 токенов.

Модель предназначена прежде всего для написания коротких, самостоятельных функций по запросам на бенгальском языке. В README приведены результаты на задачах Python, C++ и Java с бенгальскими запросами. Также она поддерживает английский язык в примерах идентичности. Модель рассчитана на локальный запуск, включая GPU примерно с 2 ГБ памяти, CPU и Apple Silicon.

Ограничения: обучение ориентировано на генерацию кода на бенгальском, поэтому для общих языковых задач авторы рекомендуют базовую TigerLLM-1B-it. Данные частично синтетические и машинно переведённые, а оценка охватывает только 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-1B

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

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

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

[!NOTE] The current TigerCoder-1B scores 2–4% higher than the TigerCoder-1B results in the paper on the benchmarks below.

TigerCoder-9B is deprecated. The larger TigerCoder model is now TigerCoder-12B, which scores 5–7% higher than the 9B model.

Model summary

TigerCoder is a family of code LLMs for Bangla. TigerCoder-1B is the small member: you describe a programming task in Bangla and it writes the code. It was fine-tuned from TigerLLM-1B-it on the 300K instruction-code pairs of Bangla-Code-Instruct, and it is light enough for a laptop GPU or a CPU. It introduces itself as TigerCoder and knows who built it.

ArchitectureGemma3ForCausalLM (Gemma 3, 1B)
Parameters1.0B
PrecisionBF16, one model.safetensors file (about 1.9 GiB)
Context length32,768 tokens (from config.json)
Base modelTigerLLM-1B-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

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 (this model)+2–4%+2–4%+2–4%+2–4%+2–4%+2–4%
TigerCoder-9B (deprecated)0.750.800.840.820.840.91
TigerCoder-12B+5–7%+5–7%+5–7%+5–7%+5–7%+5–7%

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

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

LanguagemHumanEval P@1MBPP P@1
Python0.690.74
C++0.640.66
Java0.580.61
JavaScript0.530.55

Quick start

pip install "torch>=2.4" "transformers>=4.56" accelerate sentencepiece

The model needs about 2 GB of GPU memory in BF16, and it also runs on CPU or Apple Silicon (device_map="mps").

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

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

tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForCausalLM.from_pretrained(
    MODEL_ID,
    dtype=torch.bfloat16,
    device_map="auto",
).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))

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.
  • A 1B model handles short, self-contained functions best. For longer programs or tricky edge cases, use TigerCoder-12B.

Training

The current checkpoint is the TigerCoder-1B code fine-tune with a short identity fine-tune on top.

Identity fine-tuneValue
Data2,000 TigerCoder identity examples (Bangla and English) mixed with 6,000 Bangla-Code-Instruct examples, so coding skill is kept
MethodLoRA (rank 16, alpha 32) on all attention and MLP projections, merged into the weights
Epochs / learning rate2 / 1e-4, cosine schedule
Checkloss on 500 held-out Bangla-Code-Instruct examples went from 1.030 to 1.029
HyperparameterValue
Base modelTigerLLM-1B-it
Training dataBangla-Code-Instruct (300K examples)
Max sequence length2048
Batch size (train / eval)16
Gradient accumulation steps4
Epochs3
Learning rate1 × 10⁻⁵
Weight decay0.02
Warm-up10% 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.

Repository files

FileContents
model.safetensorsFull BF16 model weights
config.json, generation_config.jsonModel and generation settings
tokenizer.json, tokenizer.model, tokenizer_config.json, chat_template.jinjaTokenizer and chat format

Limitations

  • TigerCoder is trained for Bangla code generation. On general language tasks, use TigerLLM-1B-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…

Класс архитектуры
Gemma3ForCausalLM
Ревизия весов
5b95365

0 моделей