/ Модель

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

Контекст
262 144 токена
Параметры
3,7 млрд
Размер весов
8 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-4B-Instruct-2507
Библиотека
transformers
Опубликована
29 сен 2026

mgi-assistant-v1-qwen3-4b

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

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

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

Дообученная на Qwen3-4B двуязычная ассистент-модель для ответов на вопросы о Meghna Group of Industries и Meghna Aviation, в том числе с использованием RAG.

MGI Assistant v1 — диалоговая языковая модель, разработанная MD Abdullah Al Baki на базе unsloth/Qwen3-4B-Instruct-2507. Это плотная архитектура Qwen3 с 3,7 млрд параметров, дообученная методом QLoRA supervised fine-tuning; модель принимает текст и генерирует ответы на английском, бенгальском и бенглиш. Контекстное окно составляет до 262 144 токенов.

Модель предназначена для ответов на вопросы о Meghna Group of Industries и Meghna Aviation: брендах, продуктах и артикулах, направлениях бизнеса, экономических зонах, CSR, вакансиях и контактах. В режиме RAG она отвечает по предоставленному контексту, добавляет ссылку на источник, а если ответа в контексте нет — сообщает об этом и предлагает обратиться в подходящий контакт. Для фактических запросов автор рекомендует использовать RAG с предусмотренным карточкой системным промптом.

Модель специализирована на информации этих организаций и не предназначена для общего чата или юридических, медицинских и финансовых консультаций. Результаты проверки показывают, что validation loss почти не менялся между первой и второй эпохами, хотя training loss продолжал снижаться. Лицензия — Apache-2.0.

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

  • ответы клиентам о продуктах, брендах и артикулах MGI
  • справочные ответы о направлениях бизнеса и экономических зонах Meghna Group
  • ответы на вопросы о Meghna Aviation по предоставленным документам
  • поиск сведений о вакансиях, CSR и контактных точках
  • ответы по внутренней базе опубликованных материалов с указанием источника

Ограничения

Модель ориентирована на сведения о MGI и Meghna Aviation и не предназначена для общего чата или юридических, медицинских и финансовых консультаций. Для фактических ответов рекомендуется RAG; без подходящего контекста модель должна сообщить, что не нашла ответ, однако качество генерации может варьироваться.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

MGI Assistant v1 (Qwen3-4B)

MGI Assistant is a bilingual (English, Bangla and Banglish) assistant for questions about Meghna Group of Industries (MGI) and Meghna Aviation: brands, products and SKUs, business verticals, economic zones, CSR, careers and contact points. It was developed by MD Abdullah Al Baki.

What it does

  • Answers in the user's language: English, Bangla (বাংলা) or Banglish
  • Introduces itself as MGI Assistant, built by MGI AI Labs
  • In RAG mode, answers only from the supplied context and ends with the source link
  • Says it couldn't find the answer, and points to the right MGI contact, when the context doesn't contain it
  • Does not invent prices, stock, specifications or contact details
  • Politely declines questions unrelated to MGI

Quick start

from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "abdullahalbaki/mgi-assistant-v1-qwen3-4b"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="auto", device_map="auto")

SYSTEM_CHAT = (
    "You are MGI Assistant, an AI assistant developed by MD Abdullah Al Baki. "
    "You help people with information about Meghna Group of Industries (MGI) — its brands, products and SKUs, "
    "business verticals, economic zones, CSR, careers — and Meghna Aviation. Be warm, professional and concise, "
    "and answer the question first. Reply in the user's language: English, Bangla, or Banglish (Bangla in Roman "
    "letters). Never invent prices, stock, specifications or contact details; if you are not sure, say so and "
    "share the right MGI contact."
)

messages = [
    {"role": "system", "content": SYSTEM_CHAT},
    {"role": "user", "content": "soyabean tel er ki ki size ase?"},
]
inputs = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt", return_dict=True
).to(model.device)
output = model.generate(**inputs, max_new_tokens=400, temperature=0.7, top_p=0.8, top_k=20, do_sample=True)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Recommended: RAG mode

For factual questions, retrieve relevant chunks and use the RAG system prompt. The user turn must follow the same layout the model was trained on:

SYSTEM_RAG = SYSTEM_CHAT + (
    " Use only the information in the provided context to answer. If the context does not contain the answer, "
    "say you couldn't find it and share the right contact. When you use the context, end with the source link."
)

user_turn = (
    "Context:\n"
    "[1] <retrieved chunk>\n\n"
    "[2] <retrieved chunk>\n\n"
    "Question: Meghna Aviation er koyta helicopter ase?"
)
messages = [{"role": "system", "content": SYSTEM_RAG}, {"role": "user", "content": user_turn}]

Use the system prompts exactly as written above. The model was trained with them, and other wording weakens its identity and grounding behaviour.

Generation settings: temperature=0.7, top_p=0.8, top_k=20 (the Qwen3-Instruct defaults) for chat. Use greedy decoding (do_sample=False) when answers must be reproducible.

Training

Base modelunsloth/Qwen3-4B-Instruct-2507 (trained on its 4-bit version, merged into 16-bit weights)
MethodQLoRA supervised fine-tuning, loss on assistant replies only (train_on_responses_only)
LoRAr = 32, alpha = 32, dropout 0, on q, k, v, o, gate, up, down projections (66 M trainable parameters, 1.6%)
Epochs / steps2 epochs, 414 steps
Batch1 per device × 16 gradient accumulation = 16
OptimizerAdamW 8-bit, learning rate 2e-4, cosine schedule, 5% warmup, weight decay 0.01
Max sequence length4096 (longest example 2,721 tokens)
Final losstrain 0.63, validation 1.077 (epoch 1: 1.078)

Validation loss barely changed between epochs 1 and 2 while training loss kept falling. More epochs are unlikely to help.

Data

3,300 training, 160 validation and 166 test conversations, built from 1,843 question-answer items taken from public content on mgi.org and meghnaaviation.com (crawled 26–27 September 2026). The splits are made by source page, so test facts never appear in training.

TypeTrainPurpose
chat1,696Question → answer, no context
rag1,117Retrieved context (correct chunk + 1–2 distractors) → grounded answer + source link
rag_none142Context without the answer → "couldn't find it" + the right contact
multiturn283Two related questions in one conversation
persona_*62Identity, greetings, off-topic questions, prices and stock → polite redirect

Languages: English 51%, Banglish 32%, Bangla 17%.

Quality checks on the data:

  • Every number in a written answer had to appear in its source text; 20 answers failed and were dropped.
  • Product, SKU, fleet and contact answers were generated directly from the parsed website data.
  • Newsletter content covers business news only, with no employee personal data.

Intended use

Customer-facing and internal information assistant for MGI and Meghna Aviation, deployed with a retrieval index over MGI's published content. Not intended for general-purpose chat, or for legal, medical or financial advice.

License

The model weights are released under Apache 2.0, the license of the Qwen3-4B-Instruct-2507 base model. The training content was taken from MGI's public websites; confirm with MGI before redistributing the model or its outputs publicly.

Credits

Developed by MD Abdullah Al Baki. Built on Qwen3-4B-Instruct-2507 by the Qwen team and fine-tuned with Unsloth.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
5474e84

0 моделей