/ Модель

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

Контекст
1 024 токена
Параметры
46,3 млн
Лицензия
MIT
Архитектура
llama · dense
Библиотека
transformers
Опубликована
1 окт 2026

scglm-v2-46m

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

Небольшая базовая Llama-подобная модель на 46,3 млн параметров для продолжения англоязычного текста и экспериментов с предварительным обучением.

338скачиваний за 30 дней0лайковвеса обновлены1 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SCG-LM V2 — базовая языковая модель davemaxuellkr, обученная с нуля без дообучения по инструкциям. Это плотный авторегрессионный трансформер в архитектуре LlamaForCausalLM с 12 слоями и 46,3 млн параметров. Модель обучалась на 45 млрд токенов англоязычных текстов; словарь содержит 16 384 токена, контекст — 1 024 токена.

Модель предназначена для продолжения текста, экспериментов с генерацией и изучения предварительного обучения небольших языковых моделей. Разработчик также позиционирует её как учебный и исследовательский базовый чекпойнт для сравнения методов обучения и состава данных. По описанию, модель обучалась на веб-текстах, образовательных материалах, энциклопедиях, Stack Exchange и книгах из Project Gutenberg.

Модель часто генерирует фактические ошибки, не следует инструкциям и не имеет настройки безопасности или фильтрации контента. Она рассчитана на английский язык и короткий контекст; результаты на отдельных тестах близки к случайному уровню. Лицензия — MIT.

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

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

Ограничения

Модель часто допускает фактические ошибки, не обучена следовать инструкциям и не имеет настройки безопасности; её не следует использовать для фактических ответов или советов. Поддерживает только английский язык и контекст до 1 024 токенов.

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

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

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

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

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

Открыть на Hugging Face

SCG-LM V2 (46M)

SCG-LM V2 is a 46,346,752-parameter Llama-style language model trained from random initialization on 45.0 billion tokens of human-written English. Training took 31.9 hours on a single H100. It is a base model: it continues text, and it has not been instruction-tuned or safety-tuned. It was built for Track 01 of the Global Innovation Build Challenge V2 (train a language model from scratch with at most 50M parameters).

Successor: SCG-LM V2.1 is this model with one short fine-tuning stage on the four benchmarks' training splits. It scores higher on them (four-task mean 52.76 vs 47.12), but its scores are task-tuned and its WikiText-103 perplexity is worse (25.46 vs 23.85). This repository is the pretraining-only model.

SCG-LM V2 key numbers: parameters, pretraining tokens, throughput, corpus size

ArchitectureLlamaForCausalLM: 12 layers, width 512, 8 heads (full multi-head attention), SwiGLU 1,376, RMSNorm, RoPE θ = 10,000, tied input/output embeddings, no biases
Parameters46,346,752 (embeddings included; tied embeddings counted once)
Context / vocabulary1,024 tokens / 16,384 (byte-level BPE trained from scratch)
Training tokens44,999,966,720 next-token targets (about 970 per parameter)
InitializationRandom (seed 20260923); no pretrained weights, no distillation
LanguageEnglish
WeightsFP32 model.safetensors, SHA256 9aac2111b9ca6b06f4a12278f5213c17621ded643b7b54137987ce25028011bd
Code and recordshttps://github.com/davemaxuell/Global-Innovation-Build-Challenge-V2

Model architecture

SCG-LM architecture: decoder block diagram and parameter breakdown

SpecificationValue
TypeDecoder-only causal transformer (LlamaForCausalLM), pre-norm
Parameters46,346,752 total; 37,958,144 non-embedding
Layers12
Hidden size512
AttentionCausal multi-head self-attention: 8 query heads and 8 key/value heads (no grouped-query sharing), head dimension 64, PyTorch SDPA
Feed-forwardSwiGLU: gate and up projections 512 → 1,376, down projection 1,376 → 512, SiLU activation
NormalizationRMSNorm (ε = 1e-5) before attention and before the feed-forward, plus a final RMSNorm
Position encodingRotary position embeddings (RoPE), θ = 10,000
Context length1,024 tokens
Vocabulary16,384 tokens, byte-level BPE trained from scratch; pad 0, bos 1, eos 2, unk 3
EmbeddingsThe input embedding and the output head share one 16,384 × 512 matrix
Bias, dropoutNone: no bias in any projection, dropout 0
InitializationRandom normal (std 0.02), seed 20260923; no pretrained weights
WeightsFP32 safetensors, 185 MB

Parameters by component

ComponentShapeParametersShare
Token embedding = LM head (tied)16,384 × 5128,388,60818.1%
Attention: q, k, v, o projections12 × 4 × 512 × 51212,582,91227.1%
Feed-forward: gate, up, down12 × 3 × 512 × 1,37625,362,43254.7%
RMSNorm weights(24 + 1) × 51212,8000.03%
Total46,346,7523,653,248 under the 50,000,000 cap

Compute

Pretraining tokens44,999,966,720 (about 971 per parameter)
Pretraining computeAbout 1.25 × 1019 FLOPs (6·N·D with N = all parameters; attention FLOPs not included)
InferenceAbout 93 MFLOPs per generated token (2·N); KV cache 48 KiB per token in FP32 (2 × 12 layers × 512 × 4 bytes)
Hardware, softwareOne NVIDIA H100 NVL; PyTorch 2.10 (CUDA 12.8), Transformers 5.5.4; BF16 autocast with FP32 master weights

How to use

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "davemaxuellkr/scglm-v2-46m"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo).eval()

prompt = "The water cycle begins when"
# Training documents are separated by <|eos|> (id 2); prefixing it matches training and evaluation.
ids = torch.tensor([[tok.eos_token_id] + tok.encode(prompt, add_special_tokens=False)])
out = model.generate(ids, max_new_tokens=60, do_sample=False, repetition_penalty=1.1,
                     pad_token_id=tok.pad_token_id, eos_token_id=tok.eos_token_id)
print(prompt + tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))

Tested with Transformers 4.46.3 and 5.5.4 (PyTorch 2.10). The special tokens are <|pad|> = 0, <|bos|> = 1, <|eos|> = 2 and <|unk|> = 3. To score text by likelihood, prepend <|eos|> as the first context token, the way the evaluation below does (prefix_token_id=2).

Evaluation

Zero-shot, raw accuracy (%) ± standard error, from EleutherAI lm-evaluation-harness v0.4.12 at a pinned commit. WikiText-103 perplexity is computed on the validation split with context 1,024 and stride 512 (269,569 scored tokens). The comparison row is our own earlier model (V1: same architecture, 13.0B training tokens) under the identical protocol.

ModelHellaSwagARC-EasyPIQAWinoGrande4-task meanWikiText-103 ppl ↓
Random chance25.00≈2550.0050.00≈37.5—
SCG-LM V1 (13B tokens)28.4846.5962.0850.6746.9625.52
SCG-LM V2 (45B tokens)28.85 ± 0.4547.39 ± 1.0260.77 ± 1.1451.46 ± 1.4047.1223.85

Normalized accuracy (V2): HellaSwag 30.95, ARC-Easy 42.09, PIQA 60.66.

Official results for V1, V2 and its fine-tuned successor V2.1: accuracy and WikiText-103 perplexity

How to read these numbers:

  • Perplexity: the WikiText-103 improvement over V1 is clear, about 6.5%.
  • Accuracy: the 0.17-point gain in the four-task mean is within per-task standard errors, and PIQA is 1.3 points lower than V1.
  • Near-chance tasks: at this scale HellaSwag and WinoGrande sit close to chance.

Selection and disclosure:

  • The checkpoint was chosen on development data only (held-out text and held-out items from benchmark training splits) and frozen before any official V2 score was computed.
  • A pre-registered rule then compared it with V1.
  • V1's official scores had been observed earlier, and a second V2 variant (a different data mix in the final learning-rate decay) was evaluated and not selected (four-task mean 47.08, perplexity 23.56).

Training data

Human-written English only; no model-generated corpora.

SourceUnique tokensShare of trainingPasses
DCLM-baseline (web)8.29B35%1.90
FineWeb-Edu (educational web)6.02B30%2.24
Benchmark-targeted slice (top 20% of the FineWeb-Edu + DCLM pool, see below)3.52B15%1.92
English Wikipedia (20231101.en)2.02B10%2.23
StackExchange (54 English, mostly non-code sites; answered questions with score ≥ 1)1.61B5%1.39
Project Gutenberg (English; license boilerplate removed; 20k-character chunks)0.99B5%2.27
Total22.45B

V2 corpus: unique tokens and training share per source

1B-token pilot: V2 data against V1 data at the same model, seed and schedule

Contamination controls.

  • N-gram exclusion: any document sharing a 13-word n-gram with the train or evaluation splits of HellaSwag, ARC-Easy, PIQA or WinoGrande, or with the WikiText-103 validation and test splits, was removed.
  • Domain blocks: all of wikihow.com and instructables.com (the sources of HellaSwag and PIQA) were blocked, removing 12,708 documents.
  • Deduplication: exact, URL and MinHash near-duplicate removal across all sources.
  • Limits: this is not a guarantee against paraphrased overlap.

Benchmark-targeted slice. A fastText classifier was trained to recognize text resembling benchmark training examples: 80% of the train splits of ARC-Easy/Challenge, PIQA, HellaSwag, WinoGrande, OpenBookQA, SciQ and CommonsenseQA, against length-matched web passages. The top 20% of pool documents by score form this slice. Benchmark items were never used as training text, and official evaluation splits were never used for selection or tuning.

Tokenizer. A 16,384-token byte-level BPE trained from scratch on 100M characters of FineWeb and English Wikipedia (training partitions only). A pre-registered comparison against new tokenizers trained on the V2 mixture kept this one.

Training procedure

SettingValue
ObjectiveCausal next-token cross-entropy on packed 1,024-token sequences (documents separated by `<
Batch64 × 1,024 = 65,536 tokens per update; 686,645 updates
OptimizerAdamW, β = (0.9, 0.95), ε = 1e-8, weight decay 0.1 on matrices, gradient clipping 1.0
Learning rateWarmup-stable-decay: linear warmup to 6e-4 over 500 updates, constant to update 617,981 (40.5B tokens), linear decay to 0 over the final 68,664 updates
PrecisionBF16 autocast with FP32 master weights and optimizer state; torch.compile
ThroughputAbout 395,000 tokens/s on one NVIDIA H100 NVL (peak memory 28.6 GB)
Time31.9 hours of training. One crash at update 10,000 was resumed from update 8,000, so 2,000 updates were computed twice

Held-out loss plateaued near 3.17 nats during the constant phase, then fell to 2.97 during the final decay.

V2 pretraining curve: training loss and held-out NLL over 45B tokens

Limitations and risks

  • Small model, frequent errors. It produces fluent but often false statements. For example, it continued "The water cycle begins when" with "…the water in the ocean is depleted". Do not use it for factual answers or advice.
  • Not an assistant. There was no instruction tuning, preference tuning or safety tuning, so it does not follow instructions and has no content filtering.
  • Data biases. Web, encyclopedic, Q&A and older public-domain book text carry the social biases and dated viewpoints of their sources.
  • English only, with a 1,024-token context.
  • Benchmark scope. Scores near chance on HellaSwag and WinoGrande mean these benchmarks say little about reasoning at this scale.

Intended uses: research and teaching on small-scale pretraining, data mixtures and training efficiency; a baseline for other from-scratch models; text-completion experiments.

Environmental impact

The selected run used 31.9 H100-hours. All V2 GPU work, including a 1B-token pilot and the unselected decay variant, came to 35.8 H100-hours. Power was not measured. At the H100 NVL's 400 W maximum board power, that is at most about 12.8 kWh for the selected run and 14.3 kWh in total. Carbon emissions depend on the local grid and were not measured.

Licenses and attribution

The model weights are released under the MIT license declared above. The training data keeps its own terms:

  • FineWeb-Edu: ODC-By 1.0.
  • DCLM-baseline: CC-BY-4.0.
  • Wikipedia: CC-BY-SA 3.0 / GFDL.
  • StackExchange content: CC-BY-SA 4.0.
  • Project Gutenberg: public domain.
  • Common Crawl terms also apply to the web sources.

We thank the maintainers of these datasets and of lm-evaluation-harness.

Files and reproducibility

  • model.safetensors, config.json, generation_config.json, tokenizer.json: identical to the selected training export.
  • tokenizer_config.json: identical except tokenizer_class, which is set to PreTrainedTokenizerFast so that Transformers 4.x can load the tokenizer. Token IDs are unchanged.
  • figures/: the figures shown on this card, generated from the recorded results by src/scglm_v2/figures.py in the GitHub repository.
  • training_provenance.json: the trainer's record of steps, token counts and data identity.
  • eval_results.json: the official metrics above, with the SHA256 of the original evaluation record.
  • Full records (code, configurations, per-phase registrations, the frozen development-only selection, and the evaluation outputs): https://github.com/davemaxuell/Global-Innovation-Build-Challenge-V2.

Citation

@misc{scglm_v2_2026,
  title  = {SCG-LM V2: a 46M-parameter language model trained from scratch},
  author = {davemaxuell},
  year   = {2026},
  url    = {https://huggingface.co/davemaxuellkr/scglm-v2-46m}
}

AI assistance: Claude (Anthropic) assisted the research, implementation, tests and documentation.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей