/ Модель

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

Контекст
131 072 токена
Параметры
1,2 млрд
Размер весов
5,2 ГБ
Лицензия
Llama 3.2
Архитектура
llama · dense
Базовая модель
Llama-3.2-1B
Библиотека
transformers
Опубликована
26 июл 2026

oasis_llama3.2_1b_6k

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

Исследовательский вариант Llama 3.2 1B с Softmax1 и AttentionResidual для генерации текста и изучения маршрутизации внимания между слоями.

296скачиваний за 30 дней0лайковвеса обновлены1 окт 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

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

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

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

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

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

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

OASIS — исследовательский чекпойнт на базе Meta Llama 3.2 1B, разработанный в рамках работы «Attention Sinks and Outliers in Attention Residuals». Это плотная авторегрессионная языковая модель для генерации текста с модифицированной архитектурой: Softmax1 с нулевым слотом сочетается с AttentionResidual и передачей сигнала между слоями. Число параметров — около 1,2 млрд; заявленный контекст — до 131 072 токенов. Базовая модель многоязычная, однако карточка не перечисляет языки отдельно.

Чекпойнт предназначен для изучения маршрутизации между слоями и влияния attention sinks и выбросов активаций, а также для сравнения вариантов OASIS с абляциями и базовыми архитектурами. В README упомянуты оценки perplexity, статистики активаций и сравнения после квантования. Для загрузки нужны веса и код моделирования OASIS: стандартный AutoModelForCausalLM отбрасывает дополнительные параметры и не воспроизводит этот вариант архитектуры. Модель основана на Llama 3.2 1B и распространяется по лицензии Llama 3.2.

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

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

Ограничения

Для корректной работы необходим специальный код моделирования OASIS: стандартная загрузка через AutoModelForCausalLM отбрасывает дополнительные параметры. Чекпойнт предназначен для исследований и сравнения архитектур; README не приводит отдельной оценки качества для прикладных задач.

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

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

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

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

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

Открыть на Hugging Face

oasis_llama3.2_1b_6k

OASIS checkpoint built on Llama-3.2-1B: Softmax1 attention + AttentionResidual with null→depth-routing coupling. Research checkpoint from the paper Attention Sinks and Outliers in Attention Residuals (OASIS), part of the OASIS collection.

Model summary

Base modelmeta-llama/Llama-3.2-1B
VariantOASIS
Token-level attentionSoftmax1 (null slot)
Depth routingAttentionResidual
Null → depth coupling✓ inter-layer null signal
TrainingContinued training at block size 6,144 on BookCorpus + Wikipedia + LongAlpaca
Parameters1.30B (F32)
Config classLlamaForCausalLM
Licensellama3.2 (inherited from the base model)

About OASIS

AttnResidual architectures add a depth-wise normalization channel that improves inter-layer routing flexibility, but it also amplifies attention sinks, activation outliers, and the resulting loss of inference stability and quantization robustness. OASIS adds a Softmax1-based null space and couples token-level null evidence to depth routing through an inter-layer null signal, reducing sink-dominated routing. This repo is one arm of that comparison (OASIS, its ablations, and sink / vanilla baselines); see the table at the bottom for all variants.

Usage

⚠️ Weights only. The checkpoint contains extra AttentionResidual (and, where applicable, Softmax1 / sink) parameters that are not part of the stock LlamaForCausalLM. Loading it with plain AutoModelForCausalLM silently drops those parameters and runs standard attention, so outputs will not reflect this variant. Build the model with the OASIS modeling code, then load the weights.

import glob, os, torch
from huggingface_hub import snapshot_download
from safetensors.torch import load_file
from transformers import AutoTokenizer

model_id = "robinzixuan/oasis_llama3.2_1b_6k"
path = snapshot_download(model_id)
tokenizer = AutoTokenizer.from_pretrained(path)

state_dict = {}
for f in sorted(glob.glob(os.path.join(path, "*.safetensors"))):
    state_dict.update(load_file(f))

# TODO: replace with the model constructor from the OASIS codebase (variant="oasis")
model = build_oasis_model(path, variant="oasis")
missing, unexpected = model.load_state_dict(state_dict, strict=False)
assert not missing and not unexpected, (missing, unexpected)
model = model.to("cuda" if torch.cuda.is_available() else "cpu").eval()

inputs = tokenizer("Hello, ", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=64)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

To see which parameters stock transformers would drop:

from transformers import AutoModelForCausalLM

_, info = AutoModelForCausalLM.from_pretrained("robinzixuan/oasis_llama3.2_1b_6k", output_loading_info=True)
print(info["unexpected_keys"][:10])  # AttentionResidual / sink parameters ignored by LlamaForCausalLM

Evaluation

all_results.json in this repo holds the evaluation perplexity and per-module activation statistics produced by the training/eval script. See the paper for the full attention-sink, outlier (‖·‖∞, kurtosis) and post-quantization (W8A8 / W4A4) comparisons across variants.

Base model

Architecture

  • config.json declares LlamaForCausalLM with extra AttentionResidual + Softmax1 modules; requires the OASIS modeling code (see Usage).

OASIS collection

ModelBaseVariantContext
Phi4_attn_residualPhi-4-mini-instructVanilla AttnResidual baselinestandard
Phi4_attn_OASISPhi-4-mini-instructOASISstandard
Phi4_attn_AoSPhi-4-mini-instructAoS (attention-only Softmax1)standard
qwen3-0.6b-oasisQwen3-0.6BOASISstandard
qwen3-0.6b-vanillaQwen3-0.6BVanilla AttnResidual baselinestandard
llama-3.2-1b-vanillaLlama-3.2-1BVanilla AttnResidual baselinestandard
llama-3.2-1b-oasisLlama-3.2-1BOASISstandard
oasis_llama3.2_1b_6k (this model)Llama-3.2-1BOASIS6k
vanilla_llama3.2_1b_6kLlama-3.2-1BVanilla AttnResidual baseline6k
oasis_qwen3_0.6b_6kQwen3-0.6BOASIS6k
vanilla_qwen3_0.6b_6kQwen3-0.6BVanilla AttnResidual baseline6k
sink_logit_llama3.2_1bLlama-3.2-1BSink baseline S1 (sink logit)6k
sink_token_llama3.2_1bLlama-3.2-1BSink baseline S2 (prefix sink)6k
s0_softmax1_noroute_llama3.2_1bLlama-3.2-1BAblation S0 (Softmax1, no routing)6k

Citation

@article{luo2026oasis,
  title   = {Attention Sinks and Outliers in Attention Residuals},
  author  = {Luo, Haozheng and Dai, Haoran and Zhang, Shaoyang and Chen, Xi and
             Jiang, Eric Hanchen and Li, Yijiang and Huang, Jingyuan and Qiu, Chenghao and
             Xu, Chenwei and Pan, Zhenyu and Zhang, Haotian and Wang, Binghui and Chen, Yan},
  journal = {arXiv preprint arXiv:2605.17887},
  year    = {2026}
}

Built with Llama. Llama 3.2 is licensed under the Llama 3.2 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
98c8dc6

0 моделей