/ Модель

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

Контекст
262 144 токена
Размер весов
9,3 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Библиотека
transformers
Опубликована
18 окт 2026

Jugurtha-4B

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

Генеративная модель на архитектуре Qwen3.5 для общения, рассуждений и перевода с упором на кабильский язык.

1 075скачиваний за 30 дней6лайковвеса обновлены6 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Jugurtha-4B — разработанная AƔBALU генеративная модель на 4,2 млрд параметров, ориентированная прежде всего на кабильский язык (таqbaylit, код kab) в латинской письменности. Она построена на архитектуре Qwen3.5: 32 слоя, включая 24 слоя линейного внимания DeltaNet и 8 слоёв полного внимания; контекст — 32 768 токенов. Модель поддерживает диалог и инструкции, а также режим пошагового рассуждения на кабильском языке.

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

Для лучшего результата на кабильском рекомендуется каноническая латинская орфография: неформальная запись Arabizi и нестандартное написание могут ухудшать обработку. Режим рассуждения может снижать результаты на англоязычных тестах; фактические ответы в узких культурных темах могут быть ненадёжны. Модель не предназначена для медицинской диагностики, назначения лекарств или юридических консультаций. Лицензия — Apache-2.0.

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

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

Ограничения

Для качественной обработки предпочтительна каноническая кабильская латиница: Arabizi и нестандартное написание ухудшают результат. Не предназначена для медицинских или юридических рекомендаций; режим рассуждения может снижать качество на англоязычных задачах.

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

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

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

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

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

Открыть на Hugging Face

Jugurtha-4B

A 4.2B-parameter (4,205,751,296 text tower / 4,539,265,536 total) generative model for Kabyle (Taqbaylit, kab, Latin script) with native chain-of-thought reasoning in Taqbaylit. It is, as far as we can establish, the first general-purpose generative model to produce verified, orthographically correct Kabyle across conversation, translation, and multi-step reasoning.

It achieves 100.0% NIAH at 32k context, 80.89% on GSM8K, 62.86% on MMLU-Pro, and lifts Kabyle topic classification from 20% to 73.74% on SIB-200 — while retaining 73.96 points across seven general-purpose English and French benchmarks.

Highlights

  • Dual-mode reasoning: standard conversational mode and transparent step-by-step reasoning in Kabyle (<think>...</think>) — switchable per request with enable_thinking
  • 100% NIAH at 32k: perfect single-needle retrieval across all three RULER variants at full context
  • Native Kabyle generation: lifts kab→eng from 14 chrF++ to 46.17, eng→kab from 10 to 28.77, with the orthography gap closing to 0.00
  • Multilingual retention: 73.96-point mean across MMLU, Belebele, GSM8K, ARC-Challenge and three others — within 0.20 of the general-purpose baseline
  • No trust_remote_code: standard transformers loading, BF16, device_map="auto"

Results

Evaluated with lm-eval (v0.4.13). Translation scored 5-shot against the orthographically corrected FLORES+ kab_Latn reference (agbalu/KabBench).

Kabyle & multilingual

Benchmark / TaskMetricScore
Needle-in-a-Haystack (32k)Accuracy100.00%
SIB-200 (kab_Latn, 7-shot)Accuracy (chance 14.29%)73.74%
FLORES+ kab → eng5-shot chrF++ / BLEU46.17 / 23.79
FLORES+ eng → kab5-shot chrF++ / BLEU28.77 / 6.73
FLORES+ Orthography GapchrF++ (normalised − raw)0.00
Held-out KabyleBits per character (2,000 docs)1.578

Reasoning & knowledge

BenchmarkMetricScore
GSM8KExact match80.89%
MMLU-ProExact match62.86%
IFEvalPrompt-level strict54.16%
Multilingual Retention Mean7-task mean73.96

Three things worth reading carefully.

General-purpose models cannot generate Kabyle. On 5-shot eng→kab, models of this class score 10–14 chrF++ because they copy English source words or loop into repetitive tokens, and label 13 of 16 SIB-200 samples as "politics". Jugurtha-4B lifts translation to 28.77 chrF++ and topic classification to 73.74%. The gap is not a matter of scale — it is the absence of the language from the training distribution.

The orthography gap closes to zero. Scored raw and then passed through the versioned AƔBALU normaliser, Jugurtha-4B's results are identical (28.7714 vs 28.7714). The model natively writes canonical Kabyle Latin — ɣ ɛ ḥ ḍ ṣ ṭ ẓ ṛ č ǧ ţ — without phonemic degradation. The normaliser was run on both sides to confirm, not to correct.

General knowledge is retained. On the 7-task English and French suite, Jugurtha-4B averages 73.96 points — scoring 74.28% on MMLU and 57.85% on ARC-Challenge, both at or above the general-purpose baseline. The held-out Kabyle BPC drops from 4.26 to 1.578, a compression gain that reflects the model having genuinely learned the language rather than pattern-matched superficially.

Intended use

  • Primary: Kabyle conversational assistance, reading comprehension, question answering, summarisation, cultural explanations, and bidirectional Kabyle ↔ English / French translation.
  • Thinking mode: Set enable_thinking=True for transparent step-by-step reasoning in Kabyle inside <think>...</think> blocks. Set enable_thinking=False (default) for direct, fast conversational generation.
  • Not suitable for: Safety-critical medical diagnosis, pharmacological guidance, or binding legal counsel.

Usage

transformers and torch in BF16. The architecture is one of the library's own, so no trust_remote_code is required.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

MODEL = "agbalu/Jugurtha-4B"

tokenizer = AutoTokenizer.from_pretrained(MODEL)
model = AutoModelForCausalLM.from_pretrained(
    MODEL,
    torch_dtype=torch.bfloat16,
    device_map="auto",
).eval()

messages = [
    {"role": "user", "content": "Segzi-yi-d s wegzul anta i d tamurt n Yiqbayliyen d wamek i d-tezga."},
]

# Standard mode (thinking OFF — default)
prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False,
)

inputs = tokenizer([prompt], return_tensors="pt").to(model.device)
with torch.inference_mode():
    output = model.generate(**inputs, max_new_tokens=512, do_sample=False)

reply = tokenizer.decode(output[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(reply)

For step-by-step Kabyle chain-of-thought, set enable_thinking=True and sample with temperature=0.6, top_p=0.95. The reasoning trace appears between <think> and </think>.

vLLM

vllm serve agbalu/Jugurtha-4B --max-model-len 32768 --dtype bfloat16

Architecture

32-layer hybrid causal language model with tied word embeddings and 32,768-token native context.

Parameters4,205,751,296 (text tower) / 4,539,265,536 (total)
Layers32 (24 DeltaNet linear-attention + 8 full-attention)
Context Window32,768 tokens (100% NIAH)
Vocabulary248,320 tokens (tied input/output embeddings)
FormatBF16, 738 tensors, 2 safetensor shards

Training

Data

Jugurtha-4B was trained on three streams:

  1. Kabyle pretraining corpus (800.8M tokens): Cleaned Kabyle web and document prose, filtered with Dihya-5M and deduplicated, human-authored parallel bitext from the AƔBALU corpus, and curated multilingual replay to preserve general-purpose capability.
  2. Curated instruction set: High-density Kabyle dialogues covering native conversation, translation, question answering, and reasoning — including verified Kabyle chain-of-thought traces for think-mode instances.
  3. Decontamination: Filtered against FLORES+ kab_Latn and SIB-200 with a 13-word n-gram and 8-word sentence boundary. Measured overlap: 0 sentences, verified with positive controls.

Compute

TrainingContinued pretraining on 800.8M tokens and supervised fine-tuning on curated Kabyle dialogues

Limitations

  • Informal keyboards & Arabizi: Trained on canonical Kabyle Latin (ɣ ɛ ḥ ḍ ṣ ṭ ẓ ṛ č ǧ ţ). Noisy Arabizi (digits 3, 7, 9) or unstandardised spelling inflates token fertility. Preprocess informal input with Boulifa-48M before prompting.
  • Reasoning vs. standard mode: Think mode aligns the reasoning process to Kabyle, which trades some raw English benchmark score. Use standard mode when latency matters or English-only tasks are primary.
  • Corpus factual bounds: Knowledge in low-resource cultural domains reflects the verified corpus; unverified claims from public web text are filtered but may surface in niche topics.
  • Medical & legal: Not certified for clinical diagnosis, drug prescribing, or legal advice.

Files

FileContents
model.safetensors-00001-of-00002.safetensorsShard 1 of 2 (BF16 weights)
model.safetensors-00002-of-00002.safetensorsShard 2 of 2 (BF16 weights, 738 tensors total)
config.jsonArchitecture configuration
generation_config.jsonDefault sampling and EOS generation parameters
chat_template.jinjaNative dual-mode chat template
tokenizer.json, tokenizer_config.jsonTokenizer (248,320 vocabulary)

The name

Jugurtha (c. 160–104 BCE) was the grandson of King Masinissa of Numidia. When Rome sought to partition and subjugate Numidia after Masinissa's death, Jugurtha waged a seven-year war to preserve Numidian sovereignty — and was never taken in battle.

Within the AƔBALU model family, Masinissa-31M and Jugurtha-4B stand at the two ends of the stack: the grandfather who unified disparate tribes into one nation, and the grandson who refused to surrender its independence.

The naming is homage. It implies no endorsement, and neither Jugurtha nor his descendants are affiliated with this work.

Citation

@software{agbalu_jugurtha_2026,
  title  = {Jugurtha-4B: A Sovereign Kabyle Generative Foundation Model},
  author = {Ainouche, Abderahmane and {AƔBALU Project}},
  year   = {2026},
  url    = {https://huggingface.co/agbalu/Jugurtha-4B},
}

Licence

Apache-2.0 for the weights and configurations. That grant does not relicense the text the weights were trained on, and a third of that text has no licence anyone could resolve. The composition is published so you can make your own judgement:

redistributionshare
unclear34.9%
permissive32.0%
share-alike31.0%
non-commercial2.0%

unclear is not a permissive category — it is the absence of a resolvable licence. A permissive-only rebuild is possible from the 32.0% permissive sentences. If you need one, open an issue.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
696ea9d

0 моделей