/ Модель

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

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

AlterEgo

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

Компактная англоязычная модель генерации текста с диалоговой настройкой, созданная с нуля для экспериментов и локального чата.

37скачиваний за 30 дней2лайкавеса обновлены22 июн 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

AlterEgo-373M — компактная языковая модель jbomdev с архитектурой LlamaForCausalLM, разработанная и обученная с нуля, а затем настроенная для диалога. Репозиторий содержит конверсию исходного чекпойнта в формат Transformers; автор сообщает о численно точном соответствии исходной версии. Модель имеет 373,3 млн параметров и контекст 2048 токенов.

Модель предназначена для генерации текста и многоходового чата в формате ChatML, а также для изучения полного цикла создания и локального развёртывания LLM. Предобучение проводилось примерно на 10 млрд токенов FineWeb-Edu, а настройка на диалог — на UltraChat-200K. Модель рассчитана на английский язык; для запуска поддерживаются Transformers, vLLM и инструменты работы с GGUF.

Небольшой размер делает модель подходящей для экспериментов и локального запуска, но она может ошибаться, повторяться и терять связность на длинных или сложных запросах. Автор не рекомендует её как готового пользовательского ассистента; модель не проходила RLHF/DPO-настройку безопасности и может выдавать предвзятый или нежелательный текст. Лицензия — Apache-2.0.

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

  • локальный англоязычный чат-бот
  • генерация продолжения текста
  • изучение обучения и развёртывания LLM
  • эксперименты с форматом ChatML
  • тестирование генерации текста на компактной модели

Ограничения

Модель может ошибаться, повторяться и терять связность на длинных или сложных запросах; она не проходила RLHF/DPO-настройку безопасности и может выдавать предвзятый или нежелательный контент. Автор не рекомендует использовать её как готового пользовательского ассистента без дополнительных мер защиты.

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

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

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

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

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

Открыть на Hugging Face

🧠 AlterEgo-373M

A 373-million-parameter language model designed, trained, and served entirely from scratch.

Code Platform Architecture Params support


Introduction

AlterEgo is a small, decoder-only language model built from the ground up - not a fine-tune of an existing model. Every part was written from zero: the transformer architecture, the training loop, the tokenizer wiring, and the KV-cached inference engine. It was pre-trained on ~10B tokens of high-quality educational web text and then instruction-tuned for chat.

It is the model at the heart of LLME, a self-hosted, end-to-end-encrypted LLM platform (think LM Studio / Open WebUI / Ollama, also built from scratch). LLME can serve AlterEgo alongside llama.cpp GGUF models and the Gemini API; AlterEgo is the "house" model it was designed around.

This repository contains the model. The training and architecture code lives in the AlterEgo repo; the serving platform lives in the LLME repo.

Two formats are published. This repo is the Hugging Face LlamaForCausalLM conversion, for drop-in use with transformers, vLLM, and GGUF tooling. The original checkpoint - in AlterEgo's own from-scratch architecture, exactly as trained - is published separately as jbomdev/alterego_raw. This version is a numerically-lossless conversion of it (verified: max logit difference ~1e-6).

What it is and isn't. AlterEgo is a research / learning artifact - a demonstration of the full modern LLM pipeline (architecture → pretraining → SFT → serving) at a scale one person can train on a single GPU. It is not a production assistant and won't compete with billion-parameter models. See Limitations.

Architecture

A modern Llama-style decoder (and, thanks to that, it loads as a standard LlamaForCausalLM).

ComponentChoice
TypeDecoder-only transformer (autoregressive)
Parameters~373M (input/output embeddings tied)
Layers24
Model dimension1024
AttentionGrouped-Query Attention - 16 query heads / 4 KV heads (head dim 64)
Positional encodingRotary embeddings (RoPE), θ = 10,000
NormalizationRMSNorm (pre-norm)
Feed-forwardSwiGLU, hidden dim 2816
Context length2048
Vocabulary100,352
Tokenizercl100k_base (tiktoken) extended with ChatML special tokens

Training

AlterEgo was trained in two stages on a single NVIDIA RTX 4090.

Stage 1 - Pretraining

Pre-trained on FineWeb-Edu (HuggingFaceFW), a quality-filtered educational subset of CommonCrawl.

Pretraining loss

Training dynamics

The grad-norm settling to ~0.26 and the smooth cosine-shaped loss indicate stable training with no divergence.

Stage 2 - Supervised fine-tuning

Instruction-tuned on UltraChat-200K (HuggingFaceH4), formatted as multi-turn ChatML.

SFT loss

Hyperparameters

PretrainingSFT
DatasetFineWeb-EduUltraChat-200K
Tokens / steps~10B / 19,073~64M / 244
Global batch524,288 tokens (micro 2 × 2048 × 128 grad-accum)same scheme
OptimizerAdamW (β = 0.9, 0.95; ε = 1e-8; fused)same
Weight decay0.1 (decoupled; excluded from norms/biases)same
LR schedulelinear warmup (1,900 steps) → cosine decaycosine
Peak / min LR3e-4 → 3e-5low (fine-tune range)
Grad clippingglobal-norm 1.01.0
Precisionbfloat16 autocastbfloat16
Throughput / wall-clock~32k tok/s · ~86 GPU-h (3.6 days)~39k tok/s · ~28 min
Othertorch.compile, gradient checkpointing, FlashAttention (SDPA)same
Final loss (train / val)2.94 / 2.891.83 / 1.81

Evaluation

Benchmarked with EleutherAI's lm-evaluation-harness (0-shot).

BenchmarkMetricAlterEgo-373MRandom
lambada_openaiacc31.6%~0%
hellaswagacc_norm38.0%25%
arc_easyacc_norm52.7%25%
arc_challengeacc_norm27.3%25%
piqaacc_norm65.7%50%
winograndeacc51.3%50%
openbookqaacc_norm32.2%25%
sciqacc_norm72.2%25%
boolqacc61.8%50%

For a 373M model trained on ~10B tokens these are solid: clearly above chance on science and commonsense (SciQ, PIQA, BoolQ, ARC-easy, HellaSwag) and on next-word prediction (LAMBADA — perplexity 62.3), with the expected near-chance results on the hardest reasoning sets (ARC-challenge, WinoGrande).

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

tok = AutoTokenizer.from_pretrained("jbomdev/AlterEgo")
model = AutoModelForCausalLM.from_pretrained("jbomdev/AlterEgo", torch_dtype=torch.bfloat16)

messages = [
    {"role": "system", "content":
     "You are Alter Ego, a small AI built from scratch. You're casual and direct. "
     "You're not great with facts, math, or current events - when you don't know "
     "something, just say so. You're better at chatting than at answering questions."},
    {"role": "user", "content": "Tell me something interesting about the ocean."},
]
ids = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")

out = model.generate(
    ids,
    max_new_tokens=200,
    do_sample=True,
    temperature=0.7,
    top_k=50,
    top_p=1.0,
    repetition_penalty=1.1,
)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))

Recommended generation settings

These are the defaults AlterEgo was tuned and served with in LLME:

ParameterValue
temperature0.7
top_k50
top_p1.0
repetition_penalty1.1
max_new_tokens200

Lower the temperature toward 0.3–0.5 for steadier, more focused replies; it stops on <|im_end|> or <|endoftext|>.

Chat format

AlterEgo uses ChatML:

<|im_start|>system
{system prompt}<|im_end|>
<|im_start|>user
{message}<|im_end|>
<|im_start|>assistant

Run it locally (GGUF)

Feel free to use my pre-made GGUF's and quants by visiting The GGUF's and quants page. Or running the model with ollama.

Also, Because it's standard Llama format, you can convert to GGUF for Ollama / LM Studio / llama.cpp yourself:

python llama.cpp/convert_hf_to_gguf.py ./AlterEgo --outfile alterego-f16.gguf --outtype f16

Limitations

AlterEgo is a 373M-parameter model trained on a modest token budget, and it behaves like one:

  • Capability - it can be factually wrong, repeat itself, and lose coherence on long or complex prompts. By its own (default) system prompt, it is "better at chatting than at answering questions."
  • Language - English only.
  • Safety - it is not safety- or preference-tuned (no RLHF/DPO). It can produce incorrect, biased, or undesirable content and must not be deployed in user-facing settings without additional safeguards.
  • Bias - it inherits biases from FineWeb-Edu (web text) and UltraChat.

License

Released under the Apache 2.0 license. Training data is governed by the respective licenses of FineWeb-Edu and UltraChat-200K.

Citation

@misc{alterego2026,
  title  = {AlterEgo: A 373M language model trained from scratch},
  author = {J-bom},
  year   = {2026},
  url    = {https://github.com/J-bom/AlterEgo}
}

Credits - datasets: FineWeb-Edu (HuggingFaceFW), UltraChat-200K (HuggingFaceH4). Architecture follows the modern Llama-style design (RoPE, GQA, SwiGLU, RMSNorm); implementation, training, and serving by the author.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
3f17d90

0 моделей