/ Модель

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

Контекст
2 048 токенов
Лицензия
MIT
Архитектура
slm_tavenel · dense
Библиотека
transformers
Опубликована
5 ноя 2026

slm-tavenel-124m

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

Экспериментальная англо-французская базовая языковая модель на 124 млн параметров для генерации текста и исследовательских сравнений.

1 250скачиваний за 30 дней0лайковвеса обновлены8 ноя 2026

Бенчмарки

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

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

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

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

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

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

SLM-Tavenel 124M — экспериментальная базовая языковая модель, разработанная авторами проекта SLM-Tavenel и обученная с нуля. Это декодерный трансформер с 124 млн параметров и контекстом 2048 токенов; архитектура включает 27 слоёв, grouped-query attention, rotary embeddings и блоки SwiGLU. Модель использует токенизатор SmolLM2 byte-level BPE на 49 152 токена и предназначена для генерации продолжений текста на английском и французском языках. Она не проходила instruction tuning и не является чат-ассистентом.

В тестах с единым оценщиком модель превзошла GPT-2 Small на ARC-Easy, но показала более низкий результат на HellaSwag; заранее установленный критерий общего превосходства не был достигнут. Поэтому результаты характеризуют конкретный чекпойнт и набор бенчмарков, а не широкую языковую компетентность. Для запуска используется Transformers; архитектура пользовательская и требует trust_remote_code=True, поэтому перед использованием следует проверить код репозитория. Лицензия — MIT.

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

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

Ограничения

Модель обучена с одним seed, не проходила instruction tuning и не предназначена для диалогового использования. Бенчмарки не подтверждают широкую языковую компетентность; сравнение с GPT-2 не изолирует влияние архитектуры, данных и бюджета обучения.

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

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

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

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

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

Открыть на Hugging Face

SLM-Tavenel 124M

Project links: SLM-Tavenel overview · published model catalog · research and reproducibility archive. This card describes this checkpoint; the repository overview links the related models and broader experiment record.

Experimental English/French base model (124M parameters), trained from scratch at GPT-2 Small's size. Not instruction tuned; not a chat assistant. Compared with GPT-2 Small on the same six benchmarks with the same evaluator: better on ARC-Easy, worse on HellaSwag, six-task mean not resolved; the preregistered "overall win" criterion was not met. Every number below links to a file in this repository or in the experiment record.

At a glance
Parameters124,038,144 total; 95,726,592 excluding token embeddings
ArchitectureDecoder-only transformer, 27 layers, width 576, 9 query / 3 key-value heads, SwiGLU 1,536
TokenizerSmolLM2 byte-level BPE, 49,152 tokens (tied input/output embeddings)
Context window2,048 tokens
Training precisionbfloat16 mixed precision
Published weightsmodel.safetensors, float32; bfloat16 copy staged in ariants/bf16/; CPU int8 recipe in Local inference
Training dataFiltered FineWeb-Edu (English) + FineWeb2-HQ (French), 983M token positions
Optimizer / seedMuon (block matrices) + AdamW (embeddings, norms); seed 20261031
ComputeOne RTX 4060 Laptop GPU (8 GB), ~57 GPU-hours; energy not measured
LicenseMIT (weights and code); data sources keep their own terms
Hub revision describeda4ccf8189c738eab28ab5d78990974e98930b9a7

Contents

Main result · Benchmarks · Local inference · Use · Architecture · Training · Traceability and explainability · Intended use and safety · Data, licenses and privacy · Limitations · License and citation · Model family

Main result

Paired benchmark accuracy differences

The preregistered criterion required higher HellaSwag accuracy and a higher six-task mean than GPT-2 Small. It was not met: HellaSwag is lower (−1.5 points, interval excluding zero) and the six-task mean difference (+0.7 points) has an interval that includes zero. ARC-Easy is higher (+3.6 points). This is a descriptive same-harness comparison, not evidence that one model is generally better.

Benchmarks

Protocol. Zero-shot multiple choice scored by log-likelihood (the answer is the choice with the highest log-probability given the context; lm-evaluation-harness prompt templates for ARC, HellaSwag and Belebele, cloze scoring for WinoGrande), implemented in the SLM-Tavenel evaluator. Both checkpoints were scored on the same pinned items. Intervals: 95% paired bootstrap over items (10,000 draws); they measure item-sampling uncertainty for these two checkpoints, not training-seed variation (one seed was trained).

Task (dataset @ revision)ItemsMetricGPT-2 124MSLM-Tavenel 124MDifference [95% paired interval]
ARC-Easy (allenai/ai2_arc@210d026f, test)2,376accuracy0.4470.484+0.036 [+0.018, +0.055]
ARC-Challenge (same, test)1,172accuracy0.1850.206+0.021 [0.000, +0.044]
HellaSwag (Rowan/hellaswag@218ec52e, validation)10,042accuracy0.2920.277−0.015 [−0.021, −0.010]
Belebele EN (facebook/belebele@7899cdfa)900accuracy0.3100.316+0.006 [−0.021, +0.032]
Belebele FR (same)900accuracy0.3180.311−0.007 [−0.038, +0.024]
WinoGrande XL (allenai/winogrande@546d5aa0, validation)1,267accuracy0.5170.519+0.002 [−0.030, +0.036]
Six-task mean—accuracy0.3450.352+0.007 [−0.003, +0.017]

Length-normalised HellaSwag accuracy: GPT-2 0.316, SLM-Tavenel 0.289. Chance level: 0.25 for the four- choice tasks, 0.50 for WinoGrande. Held-out bits per byte on this model's own corpus-v2 test split: 1.067 overall (English 1.085, French 1.040); GPT-2 was not scored on that split, so this is not a comparison. Data, tokenizer and budget differ between the two models (GPT-2's training token count is not disclosed), so the table compares checkpoints, not recipes.

Family and size-neighbour context (same evaluator and items):

ModelParametersARC-EasyARC-ChallengeHellaSwagBelebele ENBelebele FRWinoGrandeSix-task mean
SLM-Tavenel 1M1.18M0.2800.1960.2590.2640.2660.4930.293
SLM-Tavenel 10M9.98M0.3060.1840.2750.2960.3190.5110.315
SLM-Tavenel 25M25.7M0.3190.1800.2730.2830.3090.5190.314
SLM-Tavenel 25M HPLT 10%25.7M0.3190.1870.2740.2790.3080.5170.314
SLM-Tavenel 124M124M0.4840.2060.2770.3160.3110.5190.352
TinyStories tiny1m0.94M0.2560.1890.2600.2740.2900.5180.298
Pythia-14M14.1M0.3300.1610.2620.2560.3090.5200.306
Pythia-70M70M0.3170.1940.2680.2820.3060.4870.309
GPT-2 Small124M0.4470.1850.2920.3100.3180.5170.345
Pythia-160M160M0.3860.1870.2850.2880.3090.4930.324
SmolLM2-135M135M0.6430.2780.3560.3580.3140.5300.413
Items2,3761,17210,0429009001,267
95% binomial half-width (typical)±0.019±0.022±0.009±0.030±0.030±0.028
Chance0.250.250.250.250.250.50

Raw zero-shot accuracy, all rows scored by the SLM-Tavenel log-likelihood evaluator on the same pinned items (ARC allenai/ai2_arc@210d026f, HellaSwag Rowan/hellaswag@218ec52e validation, Belebele facebook/belebele@7899cdfa, WinoGrande XL allenai/winogrande@546d5aa0 validation). Half-widths are item-sampling intervals for one checkpoint; they do not include training-seed variation, and paired intervals (in each card) are the right tool for comparing two models on the same items. The models differ in data, tokenizer, training budget and possible benchmark exposure: this table describes checkpoints, it is not a ranking of recipes.

Local inference

Measured on NVIDIA GeForce RTX 4060 Laptop GPU (8 GB) and an Intel Core i7-12650H (10 cores, 68 GB RAM), Windows 11, Python 3.11.9, PyTorch 2.10.0+cu130, Transformers 4.57.6. Protocol: batch size 1, 128-token prompt, greedy decoding of exactly 64 new tokens, one warm-up run, median of timed runs (scripts/benchmark_card_inference.py, scripts/verify_kv_cache_release.py; raw results in inference-benchmark.json and kv-cache-verification.json).

Generation speed, with and without the KV cache (generated tokens per second):

DeviceWithout cacheWith KV cacheSpeed-upSame tokens with and without cache
CPU, float325.832.0×5.51yes
GPU, float3223.024.3×1.06yes

Cached generation gives the same logits as a full-prefix, no-cache reference (maximum absolute difference 0) and the same greedy tokens with and without the cache. It speeds up CPU generation; on this GPU, small models are limited by per-token kernel-launch overhead rather than arithmetic, so the cache brings no gain there.

Latency and memory (code without cache, as first published):

DeviceWeights dtypePrefill, 128 tokens (≈ time to first token)64 new tokens, totalPeak process RAMPeak allocated VRAM
CPUfloat32174.0 ms11.62 s1.37 GB—
GPUfloat3237.9 ms2.51 s1.39 GB552 MB
GPUbfloat1637.9 ms2.74 s1.69 GB278 MB

Peak process RAM includes the Python and PyTorch runtime (about 0.8 GB on CPU, 1.35 GB once CUDA is initialized), so it overstates the model's own footprint.

Reduced-precision variants (scripts/quantize_and_measure.py, quantization-measurements.json). Quality on one fixed text sample (first 100 English + 100 French documents of the SLM-Tavenel corpus-v2 held-out test split; only the change against float32 is meaningful):

VariantDeviceWeights sizeBPB on the sampleChange vs float32Next-token top-1 agreement with float32Tokens/s (KV cache)
float32CPU496.2 MB1.0397+0.0000100.0%29.8
bfloat16GPU248.1 MB1.0398+0.000198.6%21.6
int8-dynamicCPU237.4 MB (in memory)1.1084+0.068775.6%19.1

bfloat16: weights cast to bfloat16 (variants/bf16/, half the file size). int8-dynamic: PyTorch dynamic quantization of every linear layer, applied at load time on CPU (torch.ao.quantization.quantize_dynamic(model, {torch.nn.Linear}, dtype=torch.qint8)); it is not stored as a file. No 4-bit, GGUF or bitsandbytes variant has been produced or measured.

Single machine, single session: treat the timings as indicative.

Use

pip install -r requirements.txt   # versions recorded with this package
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "athenista/slm-tavenel-124m"
revision = "a4ccf8189c738eab28ab5d78990974e98930b9a7"  # revision whose weights this card describes
tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_id, revision=revision, trust_remote_code=True)
inputs = tokenizer("La recherche scientifique", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=32, do_sample=False)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

trust_remote_code=True is required because the architecture is custom (code in hf_model.py, hf_config.py; read it before running). The revision pinned above already contains the KV-cache implementation used for the measurements in Local inference. The cache was checked against uncached generation for this checkpoint; see the recorded logits and token-equivalence results.

Architecture

Decoder diagram

Pre-RMSNorm decoder blocks with causal grouped-query attention, QK normalization, rotary position embeddings, a sigmoid gate per attention head on the attention output, and a SwiGLU feed-forward sublayer, with residual connections; input and output embeddings are tied; no biases.

Training

SettingValue
InitializationFrom scratch
OptimizerMuon for block matrices (RMS-matched update), AdamW for embeddings and norms; β = (0.9, 0.95), weight decay 0.1, gradient clipping 1.0
ScheduleWarmup–stable–decay: 300 warmup steps, peak 3e-3, final 20% linear decay to 3e-4
Batch4 sequences × 2,048 tokens × 8 accumulation steps = 65,536 token positions per update
Steps / tokens15,000 updates, 983,040,000 token positions (about 0.46 epoch of the 2.14B-token training split)
Precisionbfloat16 autocast, activation checkpointing
Hardware1 × NVIDIA GeForce RTX 4060 Laptop GPU (8 GB), peak allocated 6.3 GB
SoftwarePython 3.11.9, PyTorch 2.10.0+cu130
Compute~57 GPU-hours, summed from the logged throughput (includes segments recomputed after resumes)
Energy / emissionsNot measured for this run (no power log was recorded); not estimated here. Training runs from 2026-11-06 on log GPU board energy through NVML (src/slm/energy.py)

The run was interrupted by computer shutdowns and resumed several times from checkpoints (deterministic data order). Per-step metrics, validation losses and observability records are in training_record/.

Traceability and explainability

Traceability. training_record/run_manifest.json (configuration, environment, Git commit, data and tokenizer hashes), training_record/corpus-manifest.json (pinned source files and hashes, filter counts, benchmark decontamination, split hashes), the tokenizer manifest, provenance.json (SHA-256 of every file) and the paired benchmark summaries. The run manifest records Git commit 21aaf6a03d1bab6770dfd37d358e144af62d67c9 with a dirty worktree; the exact uncommitted diff was not archived, so byte-exact reproduction of the training code is not claimed. inference-parity-report.json: a one-prompt CPU check where native and Transformers logits match exactly (max abs error 0.0).

Explainability (observability, not causal explanation). During training the network was probed on a fixed batch every 2,500 updates; training_record/observability.jsonl stores, per layer, attention entropy, attention-sink mass (attention put on the first token), head-wise gate statistics, residual- stream norms, weight norms and update ratios. The last record (step 12,500):

Per-layer internal diagnostics

Reading: many heads in layers 3–11 keep their gate closed (gate < 0.1) on most tokens, i.e. they are largely switched off; later layers open more gates. Attention-sink mass stays low (≤ 0.05), consistent with the gated design (Qiu et al., 2025, Gated Attention for Large Language Models), where a closed gate rather than attention to the first token lets a head output nothing. The residual norm grows steadily with depth. These are measurements on one probe batch; they do not explain any particular output and were not validated by interventions.

Intended use, out-of-scope use and safety

  • Intended: research and teaching on small-model pretraining, optimizers, data provenance and observability; a same-size baseline for comparisons with GPT-2 Small.
  • Out of scope: chat or assistant use, factual, medical, legal or financial advice, decisions about people, any consequential or safety-relevant use, and generation presented as authoritative.
  • Safety evaluation: a basic screening only (scripts/safety_eval_basic.py, results in safety-eval-basic.json), not a safety certification. Toxicity: 500 prompts sampled from the "challenging" subset of RealToxicityPrompts (English; Gehman et al., 2020), one sampled continuation of 32 tokens each (top-p 0.9), scored by unitary/toxic-bert. Personal data: 20 English/French prompts inviting contact details × 10 samples, scanned with the project's PII detector (email, phone, IPv4, IBAN). The prompts themselves score 0.77 mean toxicity.
ModelMean toxicity [95% CI]Continuations with toxicity > 0.5 [95% CI]PII-shaped outputsRedaction placeholders (<EMAIL>…)
slm-tavenel-124m0.131 [0.106, 0.156]12.2% [9.4%, 15.0%]0.5%26.5%
GPT-2 Small (same harness, reference)0.417 [0.378, 0.455]42.2% [38.0%, 46.6%]21.0%0.0%

Lower toxicity than GPT-2 is not evidence of safety: small or domain-specific models often produce less fluent continuations, which classifiers score as less toxic. The PII probe detects strings shaped like personal data; it does not check whether they belong to real people. Not covered: French toxicity (no French-capable classifier with a compatible license was found), bias, memorization of training text, jailbreaks. No instruction, preference or safety tuning was applied.

Data, licenses and privacy

Training used a locally filtered candidate corpus built from pinned subsets of FineWeb-Edu (English, educational-quality classifier score ≥ 3) and FineWeb2-HQ (French, quality-filtered). Both dataset cards declare ODC-By 1.0 and refer to Common Crawl terms. Local processing: length and character filters, regex PII redaction (email, phone, IPv4, IBAN), exact deduplication, exact 13-gram decontamination against the six benchmarks, and a domain-hash train/dev/test split. The tokenizer comes from SmolLM2-360M (Apache-2.0; see TOKENIZER-NOTICE.md).

This is traceability of dataset declarations and processing, not independent verification of rights in each source page. Regex redaction is not a complete privacy review. Exact 13-gram decontamination does not rule out paraphrases, translations or prior exposure. No training text is included here.

Limitations

  • One training seed; intervals do not estimate seed-to-seed variation.
  • Dirty worktree at training time (see above); resumed several times.
  • Different data, tokenizer and budget from GPT-2: the comparison does not isolate architecture or data.
  • Quantized variants are limited to bfloat16 weights and CPU int8 dynamic quantization (see Local inference); no 4-bit or GGUF version.
  • Benchmarks and BPB do not establish broad language competence, absence of memorization, legal clearance or privacy certification.

License and citation

Weights and the included SLM-Tavenel code: MIT (LICENSE). The tokenizer is attributed separately in TOKENIZER-NOTICE.md. MIT does not relicense training sources or settle third-party claims over source pages; no OSI certification or legal clearance is claimed. Experiment record: EXP-0036. Cite as SLM-Tavenel 124M, EXP-0036, seed 20261031, Hub revision a4ccf8189c738eab28ab5d78990974e98930b9a7; no paper or DOI is assigned.

The SLM-Tavenel family

ModelParametersDataRelation
slm-tavenel-1m1.18MFrench-Science-Commons (CC0 subset)ten-seed gate study
slm-tavenel-10m9.98MFrench-Science-Commonstrained from scratch
slm-tavenel-25m25.7MFrench-Science-Commonsgrown from 10M
slm-tavenel-25m-hplt-10pct25.7M+ 10% HPLTcontinuation of 25M
slm-tavenel-124m124MFineWeb-Edu + FineWeb2-HQtrained from scratch, new tokenizer

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

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

0 моделей