/ Модель

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

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

slm-tavenel-1m

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

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

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

Бенчмарки

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

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

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

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

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

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

SLM-Tavenel 1M — экспериментальная базовая языковая модель с открытыми весами, разработанная авторами проекта SLM-Tavenel и обученная с нуля. Это плотный декодерный трансформер на 1,18 млн параметров: четыре слоя, grouped-query causal attention с поканальным sigmoid-гейтом, SwiGLU и байтовый BPE-токенизатор на 8 192 токена. Нативный контекст — 1 024 токена.

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

В опубликованном исследовании на этом корпусе модель с attention gate показала лучшее значение held-out bits per byte, чем сопоставимая версия без гейта; результат относится только к указанному корпусу, токенизатору и режиму обучения. Очень малый размер и ограниченное обучение не дают оснований ожидать широких языковых или научных способностей. Лицензия — MIT; для загрузки с Transformers требуется trust_remote_code, а код пользовательской архитектуры следует предварительно проверить.

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

  • изучение обучения языковых моделей с нуля
  • сравнение вариантов архитектуры внимания на малых моделях
  • воспроизведение экспериментов с attention gate
  • обучение и демонстрация воспроизводимых ML-экспериментов

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

SLM-Tavenel 1M

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 (1.18M parameters), trained from scratch on a CC0 subset of French-Science-Commons, released with a preregistered ten-seed study of its head-wise attention gate. Not instruction tuned; not a chat assistant. Project self-assessment: the package meets the core requirements of the Open Source AI Definition 1.0 under MIT terms for weights, code and Data Information (training_record/OSAID-1.0-SELF-ASSESSMENT.md); this is not OSI certification. Source-license metadata and privacy limitations are disclosed below.

At a glance
Parameters1,181,920 (ungated control: 1,180,768)
ArchitectureDecoder-only transformer, 4 layers, width 96, 3 query / 1 key-value heads, SwiGLU 256, head-wise attention gate
TokenizerProject byte-level BPE, 8,192 tokens (tokenizers 0.22.2)
Context window1,024 tokens
Training precisionbfloat16 mixed precision, deterministic algorithms
Published weightsmodel.safetensors, float32 (SHA-256 b2ef1606…); all 20 study runs under training_record/replicates/; bfloat16 copy staged in variants/bf16/
Training data1,229 CC0-labelled French-Science-Commons documents (748 EN, 481 FR); 15.98M training-token positions (~one pass)
Optimizer / seedAdamW; release seed 421101, preselected in the protocol
ComputeOne RTX 4060 Laptop GPU (8 GB); ~0.06 GPU-hours for the released run (20 runs in the study); energy not measured
LicenseMIT (weights, code, Data Information)
Hub revision described33ddccd588a693efeaceae9ae239fa0fbd0c94b6 (weights identical at later revisions)

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

Across ten paired seeds, the gated model reduced held-out bits per byte by 0.0275 relative to a matched ungated model (hierarchical bootstrap 95% interval [0.0168, 0.0395]; predeclared practical threshold 0.01 BPB). The primary metric is the equal-language macro-average of English and French BPB on a document-disjoint test set; the effect is ungated minus gated BPB, so a positive value favors the gate; the interval resamples paired seeds and test documents within language. The finding applies to this corpus, tokenizer and one-pass budget only.

Paired-seed result for SLM-Tavenel 1M. Positive values favor the gated model.

Per-seed effects and the pooled interval. Per-seed values, document-hash-level scores and the locked analysis: training_record/sealed-test-bpb-results.json.

Benchmarks

Protocol. Zero-shot multiple choice scored by log-likelihood with the SLM-Tavenel evaluator on pinned items (lm-evaluation-harness prompt templates for ARC, HellaSwag and Belebele; cloze scoring for WinoGrande). Post-hoc and descriptive: no family-wise correction. Paired item-bootstrap differences against the 10M and four public references: training_record/benchmark-comparisons.json.

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.

Raw accuracy for SLM-Tavenel 1M and same-harness SLM references across six benchmark tasks

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, float32155.0286.1×1.85yes
GPU, float32131.6136.4×1.04yes

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
CPUfloat324.8 ms0.37 s0.83 GB—
GPUfloat325.5 ms0.46 s1.35 GB20 MB
GPUbfloat166.4 ms0.58 s1.48 GB15 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)
float32CPU4.7 MB2.4715+0.0000100.0%250.4
bfloat16GPU2.4 MB2.4716+0.000198.0%113.3
int8-dynamicCPU4.3 MB (in memory)2.4753+0.003889.9%129.7

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-1m"
revision = "33ddccd588a693efeaceae9ae239fa0fbd0c94b6"
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=48, do_sample=False)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

trust_remote_code=True is required (custom architecture; 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

SLM-Tavenel decoder block and the 1M, 10M and grown 25M model dimensions

Four pre-RMSNorm decoder blocks with grouped-query causal attention, QK normalization, RoPE, a head-wise sigmoid gate on attention outputs and a SwiGLU feed-forward sublayer, with residual connections.

Training

SettingValue
DesignTen paired seeds: gated vs ungated, identical initial tensors except gate parameters, identical seed-indexed batches
OptimizerAdamW, β = (0.9, 0.95), weight decay 0.1, gradient clipping 1.0
ScheduleWarmup–stable–decay: 48 warmup steps, peak 3e-3, final 20% decay to 3e-4
Batch16 sequences × 1,024 tokens × 2 accumulation steps = 32,768 token positions per step
Steps / tokens488 steps, 15,990,784 token presentations
Precisionbfloat16 autocast, deterministic algorithms
Code revision02396acd15ef9bcdc453bcd53aade40819e2f69f, clean worktree
Hardware1 × NVIDIA GeForce RTX 4060 Laptop GPU (8 GB), peak allocated 1.9 GB
SoftwarePython 3.11.9, PyTorch 2.10.0+cu130, CUDA 13.0, tokenizers 0.22.2
Compute~0.06 GPU-hours for the released run, summed from the logged throughput (the 20-run study is about 20 times that)
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)

Training and development loss across all ten gated and ten matched ungated runs

Traceability and explainability

Traceability. The bundle includes a record-level manifest (source IDs and URIs, titles, declared authors, publication dates, DOI where supplied, declared license labels, language, split, pre/post- processing text hashes), the source revision, HAL snapshot, filtering decisions, pipeline configuration, split and tokenizer manifests, privacy-screen report, processing scripts and provenance.json. The data pipeline ran in a dirty worktree; it was replayed from the recorded inputs into a scratch directory and the retained-document file, decisions and statistics matched the original hashes exactly (replay configuration, manifest and comparison report included). The training runs used a clean commit.

Explainability (observability, not causal explanation). Each run's training_record/replicates/<seed>/<arm>/observability.jsonl records, on a fixed probe batch, attention-sink mass, attention entropy, residual statistics, gate values, per-layer weight norms and update ratios. The released gated run's last record:

Per-layer internal diagnostics

The gated/ungated pairs make a controlled comparison of these diagnostics possible (same data, initialization and steps). They are measurements, not explanations of particular outputs, and were not validated by interventions.

Intended use, out-of-scope use and safety

  • Intended: research and teaching on small-model training, reproducibility, controlled architecture comparisons and observable optimization behavior.
  • Out of scope: chat or assistant use, factual or scientific advice, decisions about people, any consequential use.
  • 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-1m0.018 [0.010, 0.026]0.8% [0.2%, 1.6%]0.0%2.0%
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

Source: the french_open_science subset of PleIAs/French-Science-Commons, revision bfa114c09d7c28dcd0a8a47fe445c64b4a3c6156. Of 3,483 English/French records labelled CC0, a paginated HAL audit (2026-10-22) found 3,450 whose licence_s main-file license and all reported fileLicenses_s document-file licenses were CC0 across returned versions; 33 were excluded for missing, conflicting or non-CC0 HAL records. The filters retained 1,229 documents (748 English, 481 French). Training split 15,976,924 tokens; development 931,435; document-held-out test 2,032,436 (69 English and 47 French documents, text not included). The audit establishes metadata agreement, not depositor authority or publisher permission (HAL licence API announcement; audit note).

The pipeline redacted 2,579 email-shaped strings, 158 phone-shaped strings and three IP-pattern matches, and excluded five documents with residual email-shaped strings and two with replacement characters. The retained text had zero matches for the configured residual scan patterns; a deterministic screen reviewed 10 short excerpts per language. These are limited checks, not proof that the corpus contains no personal or sensitive information.

Document counts and token allocation across train, development and held-out test

Limitations

  • Very small model, about one pass over 15.98M token positions of one science corpus: no broad language ability or general scientific competence.
  • The primary experiment is a narrow gate-versus-no-gate comparison; it does not test general quality or explain internal behavior causally.
  • Benchmark scores are post-hoc and descriptive; item intervals do not measure seed variation.
  • CC0 labels cannot verify submitter authority; source-rights review and manual privacy attestation are unsigned.
  • Quantized variants are limited to bfloat16 weights and CPU int8 dynamic quantization (see Local inference); no 4-bit or GGUF version.

License and citation

Weights, inference implementation, training code and Data Information: MIT. The MIT notices do not relicense source articles or guarantee the absence of third-party claims. Cite the SLM-Tavenel repository, Hub revision 33ddccd588a693efeaceae9ae239fa0fbd0c94b6, and training_record/results-report.md, training_record/protocol.md and training_record/replication-driver-record.json. 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
Ревизия весов
77d1d8b

0 моделей