/ Модель

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

Контекст
2 048 токенов
Параметры
338 млн
Лицензия
Apache 2.0
Архитектура
gemma4_text · dense
Библиотека
transformers
Опубликована
9 окт 2026

Udgam-384M-Base

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

Компактная англоязычная базовая модель Udgam Labs для продолжения текста и локальных экспериментов с генерацией.

416скачиваний за 30 дней0лайковвеса обновлены9 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Udgam-384M-Base — базовая языковая модель, разработанная Udgam Labs и обученная с нуля примерно на 8 млрд токенов лицензированных открытых и синтетических текстов. Это плотный авторегрессионный трансформер с архитектурой, совместимой с Gemma 4: 20 слоёв, около 337,6 млн параметров по метаданным и контекст до 2 048 токенов. Модель продолжает текст по заданному началу и рассчитана на компактное локальное и on-device использование; доступны веса Safetensors и варианты GGUF F16 и Q8_0.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Udgam-384M-Base · Udgam Labs

UDGAM LABS · Base model · 384M parameters

Udgam-384M-Base

A 384M-parameter English base model trained from scratch by Udgam Labs. It is a decoder-only transformer compatible with the Gemma 4 architecture (Gemma4ForCausalLM), so it runs unmodified in transformers, llama.cpp / Ollama / LM Studio (GGUF) and MLX. It is the foundation of the on-device tool-calling model Udgam-384M-Chat. For a 4,096-token context use Udgam-384M-Base-4K.

This is a base (pretrained) model: it continues text. It is not instruction-tuned and not safety-tuned, and it has no chat behaviour of its own. For chat and tool calling use Udgam-384M-Chat.

Model family: Udgam-384M-Base (2,048 context) · Udgam-384M-Base-4K · Udgam-384M-Chat · GGUF · MLX · MLX 4-bit · Technical report

DeveloperUdgam Labs
Parameters384.4M total (317.3M in the 20 transformer layers; untied 32,768 × 1,024 input and output embeddings)
Architecturedecoder-only transformer compatible with Gemma 4 (Gemma4ForCausalLM): 20 layers × 1,024, 16 query / 4 KV heads, sliding-window (512) and global attention in a 3 : 1 pattern, GeGLU MLP, logit soft-cap
Vocabulary32,768 tokens, with the Gemma 4 chat-template special tokens
Context2,048 tokens (max_position_embeddings 2048; GGUF context_length 2048)
LanguageEnglish
Trainingpretrained from scratch on roughly 8B tokens of licensed public and synthetic text
LicenceApache-2.0

How to use

from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained("udgamlabs/Udgam-384M-Base")
model = AutoModelForCausalLM.from_pretrained("udgamlabs/Udgam-384M-Base")
ids = tok("<bos>The capital of France is", return_tensors="pt", add_special_tokens=False).input_ids  # add <bos> yourself
print(tok.decode(model.generate(ids, max_new_tokens=30, do_sample=False)[0]))

The model was trained with exactly one <bos> at the start of every document. Since 12 October 2026 the tokenizer adds it: tokenizer(text) returns <bos> + text. If you write <bos> yourself, as above, pass add_special_tokens=False, or you get two. The chat template already starts with <bos>.

GGUF (in gguf/: f16 and Q8_0) with llama.cpp: llama-cli -m Udgam-384M-Base-Q8_0.gguf -c 2048 -p "The capital of France is" -n 40. Ollama (raw completion):

FROM ./Udgam-384M-Base-Q8_0.gguf
TEMPLATE """{{ .Prompt }}"""
PARAMETER temperature 0.7
PARAMETER top_p 0.9
PARAMETER repeat_penalty 1.15
PARAMETER num_ctx 2048

MLX: mlx_lm.generate --model udgamlabs/Udgam-384M-Base --ignore-chat-template --prompt "The capital of France is" (mlx-lm reads the safetensors directly, and the tokenizer adds the one <bos> the model needs; do not type a literal <bos> as well). Without --ignore-chat-template the prompt is wrapped in the chat template and the base model rambles.

Export parity was checked: transformers fp32, llama.cpp GGUF and MLX give the same greedy tokens, and Ollama's greedy output matches transformers.

Evaluation

Held-out bits per byte at 2,048 tokens (lower is better): 0.668 on mixed validation text, 0.865 on web text, 0.408 on tool-call / JSON / chat-style text.

Probes (greedy, raw prompts in the Gemma 4 format): a set_timer tool prompt gives a correct call <|tool_call>call:set_timer{label:<|"|>pasta<|"|>,minutes:15}<tool_call|>; a shell prompt gives find /var/log -type f -size +10M; "The chemical symbol of gold is" → " Au." Typical base-model weaknesses: repetition ("The capital of France is Paris, and the capital of Belgium is Brussels. The capital of France is …"), date-reasoning errors, buggy code. The pretraining text included structured and conversational material, so the base already knows the Gemma 4 tool-call format: prompted with the chat template, the 4K base scores BFCL v3 simple 66% / multiple 75% but irrelevance only 11% (it calls a tool almost always). We did not run knowledge benchmarks (HellaSwag, ARC, MMLU); at 384M parameters and ~8B tokens expect scores in line with other sub-500M models trained on similar budgets, far below larger models.

Where it falls short

  • Small model, small token budget: limited world knowledge, frequent factual errors, repetition, date-reasoning errors and buggy code.
  • English only. Context 2,048 tokens (use Udgam-384M-Base-4K for longer inputs).
  • Not instruction-tuned or safety-tuned: it will continue any text, including harmful text. Do not deploy it directly to end users.
  • Prompted as a chatbot without fine-tuning, it tends to ramble in a "thinking aloud" style ("Okay, let me…", "Wait, …"). Fine-tuning (as in Udgam-384M-Chat) removes this.
  • Parts of the training text were machine-generated; their styles and errors can carry over.

Training

Pretrained from scratch on roughly 8B tokens of licensed public and synthetic text, at a sequence length of 2,048. See the technical report for an overview.

Licence

Apache-2.0 (weights and tokenizer); see LICENSE. The chat template is the official Gemma 4 template (Apache-2.0).

Citation

@misc{udgamlabs2026udgam384m,
  title        = {Udgam-384M: a small on-device tool-calling model trained from scratch},
  author       = {{Udgam Labs}},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/udgamlabs/Udgam-384M-Chat}},
  note         = {Technical report: \url{https://udgamlabs.com/reports/udgam-384m}}
}

Contact

Udgam Labs. Please use the Community (discussions) tab of the model page for questions, issues and feedback.

On udgamlabs.com: Model page · Research notes


About Udgam Labs. Udgam Labs is an independent AI research lab. We work from first principles: before we build, we understand why things work, whether we are training a model, fine-tuning one or applying AI to a new problem. Udgam (उद्गम) is Sanskrit for origin. udgamlabs.com

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей