/ Модель

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

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

slm-tavenel-25m

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

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

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

Бенчмарки

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

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

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

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

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

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

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

Модель рассчитана на исследования и обучение, связанные с обучением малых языковых моделей, ростом моделей, двуязычным моделированием текста и воспроизводимостью экспериментов. На отложенных текстах French-Science-Commons она улучшила метрику bits per byte на английском и французском относительно версии 10M, однако на шести тестах с выбором ответа убедительного прироста не показала. Результат получен на одном начальном состоянии и одном пути роста, поэтому влияние размера модели нельзя отделить от инициализации и дополнительного обучения.

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

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

  • Изучение обучения малых языковых моделей
  • Исследование роста языковой модели с 10M до 25M параметров
  • Эксперименты с двуязычным моделированием английского и французского текста
  • Оценка продолжения текста на корпусе French-Science-Commons
  • Обучение воспроизводимости экспериментов с языковыми моделями

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

SLM-Tavenel 25M

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 (25.7M parameters), grown from the trained SLM-Tavenel 10M and trained for 15,000 more steps on French-Science-Commons. Not instruction tuned; not a chat assistant. One seed and one initialization path. Weights, code and project-authored Data Information are offered under MIT; described as an OSAID 1.0 aligned research artifact by project self-assessment (docs/reviews/OSAID-1.0-EXP0009-25M-ASSESSMENT.md), which is not OSI certification. Rights and privacy review gaps for the mixed-license source corpus are disclosed below.

At a glance
Parameters25,723,648
ArchitectureDecoder-only transformer, 20 layers, width 256, 4 query / 2 key-value heads, SwiGLU 1,280, head-wise attention gate
TokenizerProject byte-level BPE, 8,192 tokens
Context window1,024 tokens
Training precisionbfloat16 mixed precision
Published weightsmodel.safetensors, float32 (SHA-256 59c495cb…); bfloat16 copy staged in ariants/bf16/; CPU int8 recipe in Local inference
InitializationGrown from the trained 10M (depth and feed-forward expansion; new tensors initialized with seed 0)
Training dataPleIAs/French-Science-Commons (french_open_science); 491.52M additional token positions (~983M with the 10M ancestor)
Optimizer / seedAdamW; training seed 1234
ComputeOne RTX 4060 Laptop GPU (8 GB), ~5.5 GPU-hours for this stage (plus ~2.5 for the 10M ancestor); energy not measured
Final train / validation loss2.14016 / 2.21816
Held-out validation BPB, EN / FR1.1171 / 1.0367
LicenseMIT (weights, code, Data Information); source records keep their own terms
Hub revision describeda34c08d1bd4b91a244f170ae26096ff059afc37a

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

Growing the 10M model to 25M and training it further lowers held-out bits per byte on the FSC validation text in both languages, with intervals well away from zero, but does not produce a resolved gain on the six multiple-choice tasks.

Paired comparison (10M minus 25M BPB; positive favors 25M)DocumentsDifference95% paired document-bootstrap interval
English685+0.0585[+0.0570, +0.0602]
French678+0.0530[+0.0520, +0.0540]
Equal-language mean685 EN; 678 FR+0.0557[+0.0548, +0.0567]

Paired document-bootstrap intervals for held-out BPB differences

Because the 25M model inherits the trained 10M weights and receives another 491.52M token positions, this does not isolate parameter count from initialization or extra training.

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). Paired intervals: 95% item bootstrap.

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.

25M minus 10M, paired 95% item-bootstrap intervals (all include zero): ARC-Easy [−0.004, +0.030], ARC-Challenge [−0.023, +0.015], HellaSwag [−0.006, +0.002], Belebele EN [−0.033, +0.009], Belebele FR [−0.032, +0.011], WinoGrande [−0.018, +0.032]. Lower BPB measures next-token prediction on this text, not broad task accuracy.

SLM-Tavenel 1M, 10M and grown 25M benchmark results compared with SLM references

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, float3219.564.5×3.30yes
GPU, float3232.932.1×0.98yes

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
CPUfloat3239.6 ms3.33 s0.94 GB—
GPUfloat3225.7 ms1.82 s1.35 GB119 MB
GPUbfloat1631.7 ms2.00 s1.54 GB64 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)
float32CPU102.9 MB1.4019+0.0000100.0%57.6
bfloat16GPU51.5 MB1.4020+0.000298.7%28.2
int8-dynamicCPU34.2 MB (in memory)1.4276+0.025784.7%28.5

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-25m"
revision = "a34c08d1bd4b91a244f170ae26096ff059afc37a"
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; 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

Twenty pre-RMSNorm decoder blocks with grouped-query causal attention, QK normalization, RoPE, a head-wise sigmoid gate and SwiGLU, with residual connections. Created by expanding the trained 10M model (grow_from in the run manifest), then trained further; not trained from scratch.

Training

SettingValue
Initializationruns/fsc-scaling/grown/25m-gated-from-10m.pt (grown from the trained 10M)
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 2.9 GB
SoftwarePython 3.11.9, PyTorch 2.10.0+cu130
Compute~5.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)

The run resumed from checkpoint 3,000 in the recorded environment after a mismatched-runtime attempt was stopped and archived; recomputed validation at the resume point and the step-3,500 losses matched the recorded trajectory (resume diagnostic). The configuration is not bitwise deterministic.

Traceability and explainability

Traceability. training_record/ includes checkpoint provenance, the source manifest, data and token manifests, training metrics, validation, benchmark outputs, paired item-bootstrap comparisons, model code, configurations, audit reports and a SHA-256 inventory (provenance.json). A full tracked source snapshot at the recorded Git commit is in training_record/reproduction_source/; the original worktree was dirty, so exact source-state reproduction is not claimed.

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

Per-layer internal diagnostics

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 education on small-model training, model growth, bilingual text modeling, reproducibility and 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-25m0.083 [0.063, 0.104]7.8% [5.6%, 10.2%]0.0%1.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 the french_open_science subset of PleIAs/French-Science-Commons, revision bfa114c09d7c28dcd0a8a47fe445c64b4a3c6156. The retained 31,417-row manifest preserves source identifiers, source-declared license labels, titles, declared authors, DOI fields and hashes; no source text is included. A post-training HAL metadata audit found matching main/document-file labels for 31,262 source IDs; 72 explicit mismatches, 3 conflicts, 24 missing file-license fields and 56 not-found IDs remain unresolved. A targeted recheck on 23 October found no changes. Of 75 DOI-bearing unresolved records, Crossref metadata included the dataset-declared license URL for 30, listed only a different license or policy URL for 15, had no license field for 23, and failed for 7. Reports: training_record/hal-file-license-audit-2026-10-22.json, training_record/hal-file-license-recheck-2026-10-23.json, training_record/unresolved-crossref-license-discovery-2026-10-23.json. A conservative screen excludes all 155 unresolved records from any future release-oriented corpus (training_record/conservative-source-exclusions.jsonl, policy); this does not remove data from this already trained checkpoint.

A 23 October screen of the processed corpus found four documents with IPv4-shaped patterns (triaged as networking teaching/research examples), 54 replacement-character documents and 20,808 records with at least one broad review signal (training_record/fsc-v1-privacy-signal-scan-2026-10-23.json, source and privacy review, rights and privacy triage). These are automated triage results; human source-rights and privacy sign-off remain pending. No rights clearance or absence-of-memorization claim is made.

Limitations

  • One seed, one growth path; size, initialization and extra training are confounded.
  • Benchmark accuracy is close to chance on several tasks; the BPB gain is a text-modeling result.
  • Dirty training worktree; not bitwise deterministic; resumed once (documented).
  • 155 source records with unresolved license metadata; human privacy review pending.
  • 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/training code and project-authored Data Information: MIT. The upstream records keep their own per-record terms; this package does not relicense them. Cite as SLM-Tavenel EXP-0009 grown 25M, seed 1234, Hub revision a34c08d1bd4b91a244f170ae26096ff059afc37a, with the checkpoint SHA-256 from provenance.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-Commonsparent (grown into this model)
slm-tavenel-25m25.7MFrench-Science-Commonsgrown from 10M
slm-tavenel-25m-hplt-10pct25.7M+ 10% HPLTcontinuation of this model (EXP-0032)
slm-tavenel-124m124MFineWeb-Edu + FineWeb2-HQtrained from scratch, new tokenizer

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

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

0 моделей