/ Модель

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

Контекст
4 096 токенов
Параметры
1,3 млрд
Размер весов
2 ГБ
Лицензия
Своя лицензия
Архитектура
anvaya · dense
Библиотека
pytorch
Опубликована
5 ноя 2026

Anvaya-1B

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

Плотная языковая модель на 1,018 млрд параметров, обученная с нуля для генерации текста и демонстрации предобучения на ограниченных ресурсах.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Anvaya-1B — плотная авторегрессионная языковая модель с 1,018 млрд параметров, разработанная Vijayendra Dwari как образовательный проект по обучению и инженерной инфраструктуре. Модель предобучена с нуля по весам Transformer на токенах из FineWeb; используется токенизатор семейства Llama 3.2 1B. Архитектура включает 29 блоков декодера, ширину 1536, 24 головы внимания, RMSNorm, RoPE и MLP с GELU. Контекст — 4096 токенов; веса опубликованы в формате FP16 safetensors.

Модель предназначена для генерации текста и демонстрации полного цикла предобучения миллиардной модели на ограниченных вычислительных ресурсах. Обучение завершено после обработки 1,5 млрд модельных входных токенов. Это ограниченный образовательный эксперимент, а не конкурентная базовая модель для промышленного использования: автор не заявляет комплексных бенчмарков, а базовая реализация не поддерживает KV-кэш и не оптимизирована для сервинга. Генерации могут быть неточными, несвязными, предвзятыми, повторяющимися или небезопасными; модель не предназначена для решений с высокими ставками.

Код проекта указан как лицензированный по MIT, однако для весов в репозитории стоит лицензия «other», и отдельная лицензия весов не выбрана. Условия токенизатора и данных FineWeb регулируются их собственными лицензиями и условиями.

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

  • эксперименты с генерацией текста на компактной языковой модели
  • изучение обучения моделей Transformer примерно на миллиард параметров
  • воспроизведение этапов предобучения модели на данных FineWeb
  • исследование влияния длительности предобучения на качество генерации

Ограничения

Обучение ограничено 1,5 млрд входных токенов, а комплексные бенчмарки не заявлены; модель может выдавать неточный, несвязный, предвзятый, повторяющийся или небезопасный текст. Реализация не поддерживает KV-кэш и не оптимизирована для сервинга; веса не имеют выбранной отдельной лицензии.

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

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

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

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

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

Открыть на Hugging Face

Anvaya-1B

Anvaya-1B is a 1,018,126,848-parameter dense decoder-only language model pretrained from random Transformer initialization on FineWeb-derived tokens as an educational systems project: training a real billion-parameter model on 2×16GB NVIDIA Tesla T4 GPUs.

The reference run is complete. It reached its configured whole-update training boundary at u11445 / 1,500,119,040 model-input tokens. The default main revision contains that final model-only FP16 export.

“From scratch” refers to the Transformer weights. The tokenizer is reused from the Llama 3.2 1B tokenizer family rather than trained in this project.

Final checkpoint

FieldValue
Parameters1,018,126,848
Final checkpointu11445
Model-input tokens1,500,119,040
Context length4096
Layers / width / heads29 / 1536 / 24
FFN width6144
Vocabulary128,256
Training hardware2× Tesla T4 16 GB
Distributed strategyPyTorch FSDP FULL_SHARD
Public export dtypeFP16
Validation NLL3.212374
Validation perplexity24.83799
Validation token accuracy39.3593%
Validation sample131,072 tokens

The trainer saved u11445, evaluated that exact checkpoint, and terminated normally with [complete] reached training token target.

Public training-checkpoint lineage

Anvaya-1B is published as one model repository with immutable training revisions. This preserves the evolution of the same architecture during pretraining rather than presenting the checkpoints as separate models.

RevisionUpdateExact model-input tokensValidation NLLPPLToken accuracy
160M1,225160,563,2004.75070115.6725.21%
240M1,829239,730,6884.2655271.2030.09%
320M2,436319,291,3923.9841153.7432.38%
400M3,031397,279,2323.8132045.3033.69%
560M4,269559,546,3683.5853636.0735.71%
800M6,042791,937,0243.4134430.3737.31%
1B7,8791,032,716,2883.3033427.2038.32%
1.2B9,0901,191,444,4803.2558625.9438.92%
1.35B10,2821,347,682,3043.2291525.2639.13%
1.5B-final11,4451,500,119,0403.2123724.8439.36%

main points to the final model. Earlier revisions remain frozen historical checkpoints.

Loading the final model

import os
import torch
from huggingface_hub import snapshot_download
from transformers import AutoTokenizer

repo_id = "Vijayendra/Anvaya-1B"
revision = "1.5B-final"

model_dir = snapshot_download(
    repo_id=repo_id,
    revision=revision,
    token=os.environ.get("HF_TOKEN"),
)

import sys
sys.path.insert(0, model_dir)

from modeling_anvaya import Anvaya1B

tokenizer = AutoTokenizer.from_pretrained(
    model_dir,
    use_fast=True,
)

device = "cuda" if torch.cuda.is_available() else "cpu"

model = Anvaya1B.from_local_dir(
    model_dir,
    dtype=torch.float16,
    device=device,
)

To load an earlier point in training, change only the revision:

revision = "160M"
# or "240M", "320M", "400M", "560M", "800M",
#    "1B", "1.2B", "1.35B", "1.5B-final"

The reference model implementation intentionally stays close to the training code and does not implement a KV cache.

Architecture

The architecture is deliberately conventional so that the project focuses on the engineering of billion-parameter pretraining rather than a novel model design:

  • 29 decoder blocks
  • hidden width 1536
  • 24 attention heads × 64 dimensions
  • FFN width 6144
  • RMSNorm
  • half-split RoPE
  • dense causal PyTorch SDPA
  • standard two-layer GELU MLP
  • tied input/output embeddings
  • context length 4096

This is a dense model and is not an SCA checkpoint.

Training system

The run uses:

  • 2× NVIDIA Tesla T4 16 GB
  • PyTorch FSDP FULL_SHARD
  • activation checkpointing
  • FP16 mixed precision
  • gradient accumulation
  • 131,072 model-input tokens per optimizer update
  • fixed 131,072-token validation
  • transactional COMPLETE-only distributed checkpoints
  • immutable mounted-parent continuation across temporary Kaggle sessions

The recorded rank-0 PyTorch allocator high-water mark was approximately 11.41 GiB.

Data and tokenizer

Training uses tokenized data derived from HuggingFaceFW/fineweb, revision v1.4.0, config CC-MAIN-2025-26.

Historical corpus contract:

  • 1.485B training tokens
  • 15M validation tokens
  • 24 training shards
  • little-endian uint32 token IDs
  • vocabulary size 128,256

Tokenizer family: meta-llama/Llama-3.2-1B, vocabulary 128,256, EOS 128001.

The sampler draws deterministic 4096-token windows with replacement, so the reported training number is a model-input token ledger, not a claim that every corpus token was seen exactly once.

Export and provenance

Each public revision was reconstructed from a COMPLETE two-rank FSDP training checkpoint and exported as model-only FP16 safetensors.

The release pipeline verifies:

  • exact architecture and tensor names/shapes
  • exact 1,018,126,848 parameter count
  • tokenizer identity
  • safetensors package completeness
  • SHA-256 file hashes
  • finite-logits forward smoke test when CUDA is available

Raw optimizer and GradScaler state are not part of the user-facing model package.

Full trainer, data contract, checkpoint protocol, validation ledger, and engineering documentation:

https://github.com/VijayendraDwari/pretrain-1b-on-2xT4

What the run demonstrates

This project demonstrates that a real 1.018B-parameter dense language model can be continuously pretrained from random initialization at 4K context on two 16 GB T4 GPUs using a carefully designed sharding, accumulation, checkpointing and continuation system.

The public checkpoint lineage also makes it possible to study how generation behavior changes as pretraining progresses.

Limitations

This is an educational and systems-focused run, not a competitive production foundation model.

In particular:

  • 1.5B model-input tokens is a deliberately limited training budget for a 1B-parameter model;
  • no comprehensive downstream benchmark suite is claimed here;
  • the reference implementation has no KV cache and is not optimized for serving;
  • the model can generate inaccurate, incoherent, biased, repetitive or unsafe text;
  • next-token validation metrics do not establish general reasoning or factual capability;
  • the project does not claim architectural novelty, compute optimality, or performance superiority over modern pretrained models.

Do not use the model for high-stakes decisions.

Licensing

The original training/model code in the GitHub project is MIT-licensed.

The weights repository remains marked license: other until a dedicated weights license is explicitly selected. Tokenizer and dataset artifacts retain their upstream terms. Nothing in this repository overrides third-party licenses or terms.

Author

Vijayendra Dwari

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей