/ Модель

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

Контекст
1 024 токена
Лицензия
MIT
Архитектура
slm_tavenel · dense
Базовая модель
slm-tavenel-25m
Библиотека
transformers
Опубликована
27 окт 2026

slm-tavenel-25m-hplt-10pct

Генерация текстаТекст → текст3 профессии
1 224скачиваний за 30 дней0лайковвеса обновлены8 ноя 2026

Описание модели

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

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

SLM-Tavenel 25M HPLT 10% — экспериментальный англо-французский базовый языковой чекпойнт, разработанный авторами проекта SLM-Tavenel. Это decoder-only трансформер с 25,7 млн параметров, 20 слоями и контекстом 1024 токена; он использует проектный byte-level BPE-токенизатор на 8192 токена. Модель продолжила обучение исходного SLM-Tavenel 25M на смеси токенов из French-Science-Commons и HPLT в пропорции 90/10.

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

Весам и коду проекта предоставлена лицензия MIT. Она не распространяется на исходные датасеты; авторы отмечают, что проверка прав на источники French-Science-Commons и проверка прав и приватности страниц в HPLT-derived данных не завершены. Оценка безопасности была базовой и не является сертификацией.

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

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

Ограничения

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

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

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

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

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

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

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

Открыть на Hugging Face

SLM-Tavenel 25M HPLT 10% continuation

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), adapted to an HPLT-derived web mixture. It continues the published SLM-Tavenel 25M for 1,500 steps on a frozen 90% French-Science-Commons / 10% HPLT-derived token mixture. A separate variant: it does not replace the 25M checkpoint. Not instruction tuned; not a chat assistant. Source-rights review (FSC lineage) and page-level rights and privacy review (HPLT-derived data) remain unresolved; MIT applies to this project's code and weights and does not relicense either upstream dataset.

At a glance
Parameters25,723,648
ArchitectureDecoder-only transformer, 20 layers, width 256, 4 query / 2 key-value heads, head-wise attention gate (same as the parent)
TokenizerProject byte-level BPE, 8,192 tokens (inherited unchanged)
Context window1,024 tokens
Training precisionbfloat16 mixed precision
Published weightsmodel.safetensors, float32 (SHA-256 fb7c7783…); bfloat16 copy staged in ariants/bf16/; CPU int8 recipe in Local inference
ParentSLM-Tavenel 25M (final checkpoint)
Continuation1,500 steps, 49,152,000 token positions, AdamW, seed 20261028
HPLT share~10% of continuation tokens, English and French balanced within the candidate subset
ComputeOne RTX 4060 Laptop GPU (8 GB), ~0.8 GPU-hours for this continuation; energy not measured
LicenseMIT (weights, code); upstream datasets keep their own terms
Hub revision describedd377cfb8cae4a6018ea44d9133da5f82dce6b4d3

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

EXP-0032 was a paired, same-seed continuation from the same 25M checkpoint: the treatment used the frozen 90/10 FSC/HPLT stream, the control continued on FSC only; same tokenizer, model, initialization, optimizer, seed and token budget. The HPLT test split was held out and scored once, after the recipe was frozen.

EvaluationLanguageFSC-only controlHPLT 10% (this model)Treatment − control95% paired document interval
Held-out HPLT test BPBEnglish1.546031.47279−0.07323[−0.07596, −0.07037]
Held-out HPLT test BPBFrench1.355561.29059−0.06497[−0.06960, −0.05989]
FSC validation BPBEnglish1.102991.10421+0.00122[+0.00100, +0.00143]
FSC validation BPBFrench1.024161.02493+0.00077[+0.00055, +0.00098]

Lower BPB is better. Intervals resample documents within language (13,870 English and 4,712 French HPLT test documents); they do not measure training-seed variation. The result supports an HPLT-domain adaptation effect for this pair, not a general capability gain.

Paired HPLT development and held-out test BPB differences

Benchmarks

Protocol. Zero-shot multiple choice scored by log-likelihood with the SLM-Tavenel evaluator on pinned items. Paired treatment-minus-control accuracy, 95% item bootstrap — every interval includes zero:

TaskItemsFSC-only controlHPLT 10%DifferencePaired 95% item interval
ARC-Easy2,3760.31610.3194+0.0034[−0.0088, +0.0152]
ARC-Challenge1,1720.18770.1869−0.0009[−0.0154, +0.0145]
HellaSwag10,0420.27570.2736−0.0022[−0.0054, +0.0010]
Belebele English9000.28110.2789−0.0022[−0.0144, +0.0111]
Belebele French9000.31560.3078−0.0078[−0.0211, +0.0056]
WinoGrande1,2670.51850.5170−0.0016[−0.0197, +0.0166]

Family 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, float3218.763.9×3.43yes
GPU, float3232.732.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
CPUfloat3245.2 ms3.52 s0.94 GB—
GPUfloat3230.3 ms1.87 s1.36 GB119 MB
GPUbfloat1631.7 ms2.19 s1.55 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.3481+0.0000100.0%59.2
bfloat16GPU51.5 MB1.3483+0.000298.6%29.2
int8-dynamicCPU34.2 MB (in memory)1.3743+0.026284.3%22.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   # torch>=2.3, transformers==4.57.6, tokenizers==0.22.2, safetensors==0.8.0
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "athenista/slm-tavenel-25m-hplt-10pct"
revision = "d377cfb8cae4a6018ea44d9133da5f82dce6b4d3"
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]))

Tested here with PyTorch 2.10.0 and Transformers 4.57.6. 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 transformer architecture

Identical to the parent 25M: twenty pre-RMSNorm decoder blocks with grouped-query causal attention, QK normalization, RoPE, a head-wise sigmoid gate and SwiGLU, with residual connections.

Training

SettingValue
InitializationFinal checkpoint of SLM-Tavenel 25M (EXP-0009)
OptimizerAdamW, β = (0.9, 0.95), weight decay 0.1, gradient clipping 1.0
ScheduleWarmup–stable–decay: 50 warmup steps, peak 3e-4, final 20% decay to 3e-5
Batch4 sequences × 1,024 tokens × 8 accumulation steps = 32,768 token positions per step
Steps / tokens1,500 steps, 49,152,000 token positions
Precisionbfloat16 autocast
Hardware1 × NVIDIA GeForce RTX 4060 Laptop GPU (8 GB), peak allocated 2.9 GB
Softwarenot recorded in the published run summary (the project environment at the time was Python 3.11.9 / PyTorch 2.10.0+cu130)
Compute~0.8 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/ includes the EXP-0032 report, training configuration, sanitized run-manifest summaries for treatment and control, step logs, the mixture manifest, aggregate paired BPB results and checkpoint provenance; provenance.json gives SHA-256 hashes. Source text, token shards, benchmark prompts and per-example predictions are not included.

Explainability. No observability log (attention, gate or residual diagnostics) was recorded for this 1,500-step continuation; see the parent 25M card for those diagnostics. Not recorded rather than reconstructed.

Intended use, out-of-scope use and safety

  • Intended: research on domain adaptation by data mixture, small-model training and provenance.
  • Out of scope: chat or assistant use, factual 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-25m-hplt-10pct0.107 [0.084, 0.132]9.6% [7.2%, 12.2%]0.0%0.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

90% of continuation token positions came from the FSC scaling stream and ~10% from a deterministic English/French HPLT-derived candidate stream. HPLT source: ashtok897/european-hplt-v1, revision 51edb798468aa71b1000e950d3ab43bb435f72cd; its card declares CC0-1.0 inherited from HPLT v3. HPLT describes the collection as web crawls from the Internet Archive and Common Crawl and does not establish rights over every original page; the declared label is provenance, not evidence of each page's rights. The parent FSC lineage (PleIAs/French-Science-Commons, french_open_science, bfa114c09d7c28dcd0a8a47fe445c64b4a3c6156) has source-declared CC0-1.0, CC-BY-4.0 and Licence-Ouverte-2.0 records; its remaining audit discrepancies, depositor-authority questions and unsigned human privacy review are described in the parent's card. No independent rights or privacy sign-off is represented by this release.

Limitations

  • One fresh seed pair; no estimate of training-seed variation.
  • The HPLT test split was used once for the predeclared comparison and should not guide further tuning.
  • No observability log for this continuation.
  • 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 and code: MIT; upstream datasets keep their own terms. Cite as SLM-Tavenel 25M HPLT 10% continuation, seed 20261028, Hub revision d377cfb8cae4a6018ea44d9133da5f82dce6b4d3, with the checkpoint SHA-256 from provenance.json, and link the EXP-0032 report as exploratory HPLT-domain adaptation evidence. 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-Commonsancestor of the 25M
slm-tavenel-25m25.7MFrench-Science-Commonsparent of this model
slm-tavenel-25m-hplt-10pct25.7M+ 10% HPLTcontinuation of 25M (EXP-0032)
slm-tavenel-124m124MFineWeb-Edu + FineWeb2-HQtrained from scratch, new tokenizer

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

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

GPU в ailist

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

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

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

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

0 моделей