/ Модель

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

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

slm-tavenel-10m

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

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

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

Бенчмарки

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

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

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

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

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

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

SLM-Tavenel 10M — экспериментальная базовая языковая модель на 9,978,368 параметрах, разработанная авторами проекта SLM-Tavenel и обученная с нуля. Это декодерный трансформер на 10 слоях с токенизатором byte-level BPE на 8 192 токена; обучение длилось 15 000 шагов на двуязычном корпусе открытых научных текстов French-Science-Commons. Контекст составляет 1 024 токена.

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

Веса и код распространяются по лицензии MIT. Исходный корпус включает материалы под лицензиями CC0, CC-BY-4.0 и Licence-Ouverte-2.0; для части записей остаются неразрешённые расхождения в сведениях о лицензиях. Проведён только базовый скрининг безопасности, который не является сертификацией; модель не проходила настройку безопасности.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

SLM-Tavenel 10M

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 (9.98M parameters), trained from scratch for 15,000 steps on a bilingual open-science text pilot (French-Science-Commons). Not instruction tuned; not a chat assistant. Weights and code are offered under MIT; the source corpus mixes CC0, CC-BY-4.0 and Licence-Ouverte-2.0 records, and the unresolved rights and privacy checks are disclosed below. This is not an OSI certification or a rights clearance.

At a glance
Parameters9,978,368
ArchitectureDecoder-only transformer, 10 layers, width 256, 4 query / 2 key-value heads, SwiGLU 768, head-wise attention gate
TokenizerProject byte-level BPE, 8,192 tokens
Context window1,024 tokens
Training precisionbfloat16 mixed precision
Published weightsmodel.safetensors, float32; bfloat16 copy staged in ariants/bf16/; CPU int8 recipe in Local inference
Training dataPleIAs/French-Science-Commons (french_open_science), 31,417 retained records, 491.52M token positions
Optimizer / seedAdamW; seed 1234
ComputeOne RTX 4060 Laptop GPU (8 GB), ~2.5 GPU-hours; energy not measured
Final train / validation loss2.29647 / 2.33488
LicenseMIT (weights, code, Data Information); source records keep their own terms
Hub revision described9818b706a2a2467efb22848967a5842871f7422c (weights identical at later revisions: SHA-256 ef6967c4…)

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

Training and validation loss across the completed 10M run

A complete 15,000-step run at 10M parameters (validation loss 2.335). On the six multiple-choice tasks the model is close to chance, as expected at this size and budget; its role in the project is the trained ancestor of the grown 25M model and a small-scale baseline.

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). One checkpoint, one training seed.

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.

Against the grown 25M model on the same items, all six paired 95% item-bootstrap intervals include zero (see the 25M card). The SLM-Tavenel 10M's FSC validation BPB is 1.1755 (English) and 1.0897 (French).

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, float3243.8128.3×2.93yes
GPU, float3261.961.3×0.99yes

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
CPUfloat3216.7 ms1.48 s0.87 GB—
GPUfloat3216.1 ms1.06 s1.36 GB56 MB
GPUbfloat1617.6 ms1.20 s1.50 GB32 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)
float32CPU39.9 MB1.4634+0.0000100.0%103.6
bfloat16GPU20.0 MB1.4636+0.000298.8%53.8
int8-dynamicCPU18.4 MB (in memory)1.4872+0.023885.7%58.3

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-10m"
revision = "9818b706a2a2467efb22848967a5842871f7422c"
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")
print(tokenizer.decode(model.generate(**inputs, max_new_tokens=48, do_sample=False)[0]))

trust_remote_code=True is required (custom architecture; code in hf_model.py and 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

Ten 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. The 25M model was grown from this trained checkpoint by expanding depth and feed-forward width.

Training

SettingValue
InitializationFrom scratch
OptimizerAdamW, β = (0.9, 0.95), weight decay 0.1, gradient clipping 1.0
ScheduleWarmup–stable–decay: 500 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 / tokens15,000 steps, 491,520,000 token positions
Precisionbfloat16 autocast
Hardware1 × NVIDIA GeForce RTX 4060 Laptop GPU (8 GB), peak allocated 3.7 GB
SoftwarePython 3.11.9, PyTorch 2.10.0+cu130
Compute~2.5 GPU-hours, summed from the logged throughput
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)

Traceability and explainability

Traceability. training_record/ holds the checkpoint provenance, run manifest, train/eval/ observability logs, source registry, processing manifest and decisions, tokenizer and token-shard manifests, a record-level source manifest (one row per retained document: title, declared authors, identifiers, DOI, declared license, hashes), the benchmark score record, model code and configurations. provenance.json lists the SHA-256 of every file. The recorded training worktree was dirty and the uncommitted diff was not captured, so byte-exact reproduction of the training code is not claimed.

Explainability (observability, not causal explanation). training_record/observability.jsonl records, every 500 steps on a fixed probe batch, per-layer attention entropy, attention-sink mass, head-wise gate statistics, residual-stream norms, weight norms and update ratios. Last record:

Per-layer internal diagnostics

Attention-sink mass stays low in every layer; gates are mostly open except in a few layers; the residual norm grows sharply in the last layers. These are probe-batch 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, bilingual text modeling, reproducibility and training observability.
  • 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-10m0.069 [0.050, 0.089]6.2% [4.2%, 8.4%]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

Training data came from the french_open_science subset of PleIAs/French-Science-Commons, pinned to bfa114c09d7c28dcd0a8a47fe445c64b4a3c6156. The processing pipeline started with 43,011 records and retained 31,417 after quality, PII-pattern, exact-duplicate and near-duplicate processing. The retained source metadata reports 4,528 records labeled CC0-1.0, 26,368 CC-BY-4.0 and 521 Licence-Ouverte-2.0. The record-level metadata-only manifest lists titles, declared authors, identifiers, DOI fields, source IDs, declared labels and hashes; all 31,417 rows have non-empty title and author fields and 13,200 have no DOI (left blank). These are supplied metadata, not independent verification of authorship or rights ownership. Source texts are not included.

CC-BY-4.0 and Licence-Ouverte-2.0 require attribution: see ATTRIBUTION.md and training_record/source-record-manifest.jsonl. The metadata label does not establish that each submitter had authority to apply it; no blanket rights clearance is claimed. Pattern-based redaction and screening were limited, not a complete privacy audit.

HAL file-license cross-check (22 October 2026). After training, the 31,417 HAL identifiers were queried against HAL's licence_s and fileLicenses_s fields (HAL notice, API documentation): 31,262 matched, 72 explicit mismatches, 3 conflicting declarations, 24 missing file-license metadata and 56 not found. These 155 remain unresolved. Results and script: training_record/hal-file-license-audit-2026-10-22.json, training_record/scripts/audit_fsc_mixed_hal_files.py. This post-training metadata check is not a legal clearance.

Limitations

  • One seed and one completed run; no training-seed uncertainty estimate.
  • Benchmark accuracy is near chance on several tasks and does not establish general model quality.
  • Dirty training worktree; exact uncommitted diff unavailable.
  • 155 of 31,417 source identifiers have unresolved license-label discrepancies or missing records.
  • 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, project code and included Data Information: MIT. Source records remain under their declared licenses. Cite as SLM-Tavenel EXP-0009 10M, seed 1234, Hub revision 9818b706a2a2467efb22848967a5842871f7422c; the experiment report and protocol are in training_record/EXP-0009-fsc-scaling-and-references.md. 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 this model
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
Ревизия весов
f763b6f

0 моделей