/ Модель

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

Контекст
131 072 токена
Лицензия
Apache 2.0
Архитектура
gemma4 · dense
Базовая модель
gemma-4-E2B-it
Библиотека
transformers
Опубликована
14 ноя 2026

labadain-E2B-it-Tetun

Генерация текстаТекст → текст
100скачиваний за 30 дней0лайковвеса обновлены14 ноя 2026

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

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

Дообученная на беседах на тетуме Gemma 4 E2B-it для создания диалоговых ассистентов и генерации текста на этом языке.

Labadain E2B-it Tetun — диалоговая модель Labadain для генерации текста на тетуме, одном из официальных языков Тимора-Лешти. Она создана дообучением unsloth/gemma-4-E2B-it на 138 033 многоходовых и одноходовых беседах на тетуме; часть обучающих материалов была переведена машинным способом. Модель содержит 5,1 млрд параметров в сохранённых весах, около 2 млрд эффективных параметров, и распространяется в формате safetensors через библиотеку Transformers.

Модель подходит для чат-ассистентов, генерации ответов и прототипирования образовательных и других приложений на тетуме, а также для исследований NLP для малоресурсных языков. Лицензия — Apache-2.0. Визуальный и аудиокодировщики унаследованы от базовой Gemma 4, но не дообучались на тетуме, поэтому вход изображений и аудио на этом языке не обучался и не проверялся.

Модель может уверенно выдавать фактические ошибки, в том числе о Тиморе-Лешти; важную информацию нужно проверять. Актуальных знаний и доступа к текущим событиям у неё нет. Качество на длинных входах свыше 4 096 токенов не проверено, стандартной оценки по бенчмаркам нет. Для использования требуется Transformers 5.5.0 или новее; веса bfloat16 требуют около 10 ГБ видеопамяти.

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

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

Ограничения

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Labadain E2B-it Tetun

Labadain E2B-it Tetun is a conversational assistant for Tetun, an official language of Timor-Leste. It is unsloth/gemma-4-E2B-it fine-tuned on 138,033 Tetun multi-turn conversations (roughly 102 million tokens) covering news, government, health, education, politics, financial, general knowledge and everyday chat.

Model details

Base modelunsloth/gemma-4-E2B-it (Unsloth's release of Google's Gemma 4 E2B-it)
Model size5.1B stored parameters (about 2B effective; Gemma 4 E2B architecture)
LanguageTetun (tdt)
Fine-tuning methodLoRA (rank 64), merged into the base weights and saved in bfloat16
Context lengthFine-tuned on conversations of up to 4,096 tokens (the architecture supports 128K)
LicenseApache 2.0, following the Gemma 4 license

Only the language model was fine-tuned. The vision and audio encoders are unchanged from the base model, and image or audio input in Tetun has not been trained or tested.

How to use

Requires transformers 5.5.0 or later.

pip install -U "transformers>=5.5.0" accelerate
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "labadain/labadain-E2B-it-Tetun"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    dtype=torch.bfloat16,
    device_map="auto",
)

messages = [
    {"role": "user", "content": "To'o iha-ne'ebé ona progresu edukasaun iha Timor-Leste?"},
]

inputs = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    return_tensors="pt",
    return_dict=True,
    enable_thinking=False,  # the model was not trained to reason before answering
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=2048)

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

The default sampling settings come from generation_config.json (temperature 1.0, top-p 0.95, top-k 64). For repeatable answers, pass do_sample=False.

Load in 4-bit (less GPU memory)

The bfloat16 weights need about 10 GB of GPU memory. Loading in 4-bit uses much less, at a small cost in quality.

With Transformers (requires pip install bitsandbytes): load the model like this, then generate exactly as in the example above.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig

model_id = "labadain/labadain-E2B-it-Tetun"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    quantization_config=BitsAndBytesConfig(
        load_in_4bit=True,
        bnb_4bit_quant_type="nf4",
        bnb_4bit_compute_dtype=torch.bfloat16,
    ),
    device_map="auto",
)

With Unsloth (requires pip install unsloth):

from unsloth import FastModel

model, processor = FastModel.from_pretrained(
    model_name="labadain/labadain-E2B-it-Tetun",
    max_seq_length=4096,
    load_in_4bit=True,  # set to False to load the full bfloat16 weights
)
FastModel.for_inference(model)

messages = [
    {
        "role": "user",
        "content": [{"type": "text", "text": "To'o iha-ne'ebé ona progresu edukasaun iha Timor-Leste?"}],
    },
]

inputs = processor.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
    enable_thinking=False,
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=2048)

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

Tips

  • Keep thinking mode off. The training conversations contain no reasoning traces, so enable_thinking=True asks for behavior the model was not tuned for.
  • A system prompt is optional. The model was fine-tuned without one. A short instruction such as "Responde iha Tetun" can still help keep answers in Tetun.
  • Multi-turn chat works. Over half of the training conversations have two or more question–answer exchanges. Pass the full history in messages.

Training data

The model was fine-tuned on 138,033 Tetun conversations (roughly 102 million tokens) compiled by Labadain, including some material machine-translated into Tetun.

Conversation typeConversations
Multi-turn (2 or more question–answer exchanges)71,091 (51.5%)
Single-turn (1 question–answer exchange)66,942 (48.5%)
Total138,033

Multi-turn conversations have up to 33 exchanges. Duplicates were removed before training, and 3,000 conversations were held out for validation. The training dataset is not publicly released.

Intended uses

  • Tetun text generation and conversational assistants
  • Research on multilingual and low-resource NLP
  • Education, and prototyping Tetun-language AI applications for Timor-Leste

Limitations

  • Factual errors. This is a small model and can state incorrect facts, dates, names and figures with confidence, including about Timor-Leste. Check important information against reliable sources.
  • Quantization. The 4-bit GGUF can be slightly less accurate than the original bfloat16 model. Use labadain/labadain-E2B-it-Tetun for the best quality.
  • Fixed knowledge. The model only knows what was in the base model and the training data. It has no access to current events.
  • Long inputs. Fine-tuning covered conversations of up to 4,096 tokens. Quality on longer conversations or documents has not been tested.
  • No benchmark evaluation. The model has not been evaluated on standard benchmarks beyond what the base model provides.

License

This model is released under the Apache 2.0 license, following the Gemma 4 license of the base model.

Acknowledgements

Built on Gemma 4 by Google DeepMind and fine-tuned with Unsloth.

About Labadain

Labadain is a research initiative advancing information retrieval (IR), natural language processing (NLP), and artificial intelligence (AI) for Tetun and other low-resource language settings, with a focus on promoting digital inclusion and AI access in Timor-Leste.

Related projects

Citation

@misc{labadain2026e2btetun,
  title        = {Labadain E2B Instruct Tetun},
  author       = {Gabriel de Jesus},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/labadain/labadain-E2B-it-Tetun}}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей