Skip to content
Other

OLMo-2-0425-1B-Instruct_diag_fisher

эмпирическая диагональ Фишера для OLMo-2 1B

2 min readupdated

В этом репозитории лежат не веса языковой модели, а производный исследовательский артефакт — оценка эмпирической диагонали информационной матрицы Фишера (статистики кривизны функции потерь по параметрам сети). Расчёт выполнен для 112 матриц проекций внимания и MLP во всех 16 слоях модели allenai/OLMo-2-0425-1B-Instruct на выборке из 10 004 085 токенов (2 443 последовательности по 4 096 токенов) из датасета allenai/dolmino-mix-1124. В отличие от самой LLM, эти тензоры нельзя загрузить через AutoModelForCausalLM для генерации текста — они нужны исследователям для анализа чувствительности весов, квантизации, прунинга или методов определения обучающих данных (membership inference) с предварительной регуляризацией.

Ключевые особенности

  • Точный охват параметров: в файл diagonal.safetensors вошли только матрицы q_proj, k_proj, v_proj, o_proj и gate_proj, up_proj, down_proj для слоёв 0..15 — всего 112 тензоров и 1 073 741 824 значений в формате float32 (без эмбеддингов, layer norm и lm_head).
  • Чистый расчёт по последовательностям: градиенты вычислялись в BF16 по одному проходу forward/backward на каждую из 2 443 последовательностей, переводились в float32, возводились в квадрат и усреднялись без клиппинга или демпфирования.
  • Сбалансированная выборка: данные собраны из 15 378 уникальных документов шести источников (DCLM — 47.2%, Math — 20.8%, FLAN — 16.6%, Wiki — 7.11%, peS2o — 5.85%, StackExchange — 2.45%) с проверкой отсутствия точных совпадений хэшей с бенчмарком OLMo-Detect.
  • Траектория сходимости в комплекте: вместе с весами опубликованы convergence_trace.json, five_to_ten_million.json и готовые для графиков CSV-файлы со сравнением оценок на 5M и 10M токенов.

Что можно сделать

  • Использовать значения кривизны в экспериментах по прунингу, квантизации или непрерывному обучению (continual learning) модели OLMo-2-0425-1B-Instruct после подбора собственного регуляризатора.
  • Изучить послойную динамику сходимости эмпирического Фишера на срезах 5M и 10M токенов по готовым таблицам global_trace.csv и layer_five_to_ten.csv.
  • Построить предобуславливатель для экспериментов с влиянием обучающих примеров (IF-MIA), предварительно добавив демпфирование для защиты от деления на околонулевые элементы.

Пример

from safetensors import safe_open

with safe_open('diagonal.safetensors', framework='pt', device='cpu') as f:
    key = 'model.layers.0.self_attn.q_proj.weight'
    fisher_diag = f.get_tensor(key)
    print(key, fisher_diag.shape, fisher_diag.dtype)
ПодробнееСходимость 5M к 10M токенов: глобальное косинусное сходство 0.9987604, относительная L2-разница 0.0558425 (в слоях 0–3 — 0.1522–0.2534, в слоях 4–15 — 0.02812–0.06363).
Размер файла: 4.29 ГБ (4 294 980 416 байт), SHA-256 зафиксирован в final_integrity.json.
Железо расчёта: 1× NVIDIA H100 80GB (PyTorch 2.11.0+cu130, Transformers 5.12.1).
Ограничения: это не инвертированная матрица Фишера и не веса модели; перед делением на элементы диагонали обязательна регуляризация, отдельная лицензия на производный тензор не назначена.
Discuss Telegram 0

Will it run?

Runs in BF16

Fits without quantisation.

  • BF16weights 4.0 GB · ready files4.9 GB
  • FP8 / INT8recommendedweights 2.0 GB2.7 GB
  • 4-bitweights 1.1 GB1.7 GB

Tip: go 8-bit.FP8 / INT8 is within about a percent of full precision in quality, takes half the memory and runs faster on RTX 40/50 and H100. Full precision only pays off for fine-tuning.

What to get for this model

Massed ComputeOpen Massed Compute

Your own GPU: FP8 / INT8 — from RTX 2060 · BF16 — from RTX 2060

Massed Compute hourly prices, November 2026. The discounted price applies with the coupon at checkout.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # johntzwei/OLMo-2-0425-1B-Instruct_diag_fisher
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download johntzwei/OLMo-2-0425-1B-Instruct_diag_fisher --local-dir ~/models/OLMo-2-0425-1B-Instruct_diag_fisher
    # The model is in ~/models. How to run it is in the model card (link above).
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b40from November 18, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026new release

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of OLMo-2-0425-1B-Instruct_diag_fisher (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

johntzwei/OLMo-2-0425-1B-Instruct_diag_fisher
Author
johntzwei
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

00

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments