/ Модель

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

Контекст
2 048 токенов
Параметры
1 млрд
Лицензия
MIT
Архитектура
qtensor_llama · dense
Библиотека
transformers
Опубликована
15 авг 2026

QTensor-TinyLlama-1.1B-Asymmetric-v2

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

Сжатая версия TinyLlama 1.1B для генерации текста и диалогов с гибридным сжатием SVD и INT4 AWQ.

34скачиваний за 30 дней1лайквеса обновлены15 авг 2026

Бенчмарки

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

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

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

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

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

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

QTensor TinyLlama 1.1B Asymmetric v2 — сжатая разговорная языковая модель проекта trentzap на основе TinyLlama/TinyLlama-1.1B-Chat-v1.0. По карточке, модель обучена методом дистилляции с учителем FP16 и сочетает динамическое распределение рангов SVD для слоёв внимания, квантование INT4 AWQ для MLP и LoRA-компоненты. Репозиторий содержит веса в формате safetensors; архитектура — плотная QTensor Llama, библиотека — Transformers.

Модель предназначена для генерации текста и диалоговых сценариев. В карточке заявлены 1,162 МБ видеопамяти при инференсе и скорость 58,8 токена в секунду на RTX 5080; при этом указанная perplexity на WikiText — 93,65, что сигнализирует о заметном ограничении качества языкового моделирования. Контекст составляет 2048 токенов, основной язык карточки — английский. Лицензия — MIT.

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

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

Ограничения

Контекст ограничен 2048 токенами. Заявленная perplexity на WikiText равна 93,65, поэтому качество генерации может быть существенно ниже исходной FP16-модели.

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

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

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

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

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

Открыть на Hugging Face

QTensor TinyLlama 1.1B — Asymmetric v2

GitHub Website License: MIT

QTensor TinyLlama 1.1B Asymmetric v2 is a fully compressed, production-ready variant of TinyLlama/TinyLlama-1.1B-Chat-v1.0, built using the Information-Theoretic Asymmetric Architecture — the world's first implementation of entropy-mapped dynamic SVD rank allocation combined with AWQ-protected INT4 MLP quantization.

The model was trained for 10,000 steps of Quantization-Aware Distillation (QAD) using KL-Divergence + Hidden-State MSE distillation against the FP16 teacher, with all <pad> tokens masked from the loss to ensure true semantic convergence.


📊 Verified Results (NVIDIA RTX 5080, CUDA 13.2)

MetricFP16 BaselineQTensor Asymmetric v2
VRAM (inference)~4.4 GB1,162 MB
Throughput~80 t/s58.8 t/s
WikiText word_perplexity~1193.65
HellaSwag (200-sample)50.1%40.0%
QAD training loss—2.2264
Generation coherence✅✅ (no repetition loops)

Note on perplexity: The 93.65 word perplexity represents a 44% improvement over the flat-rank baseline (168.46). The INT4 MLP quantization introduces an information bottleneck that bounds the theoretical minimum perplexity for this compression depth.


🧬 Architecture

This model uses a three-tier hybrid compression topology:

LayerMethodDetail
Attention (q/k/v/o_proj)Block-SVD + SpLoRADynamic rank $r \in [8, 32]$, entropy-mapped per layer
MLP (gate/up/down_proj)INT4 AWQ + LoRA4-bit packed with per-channel AWQ activation scales
Subspace BridgeLearnable scalarAligns student hidden states to teacher manifold

Key Innovations

  • Shannon Entropy Rank Allocator: Singular values are normalized into a probability distribution. Shannon entropy $H = -\sum p \log p$ maps each layer to its optimal rank budget. Low-entropy (structurally simple) layers use $r=8$; high-entropy (information-dense) layers expand to $r=32$.
  • Corrected AWQ Identity: $W_{packed} = \text{INT4}(W / S)$ with $X_{scaled} = X \times S$ in the forward pass — the mathematically correct direction for protecting salient activation channels without destroying surrounding weights.
  • Vectorized INT4 Triton Kernel: BLOCK_K=64 tile loading prevents register spilling, achieving 2× throughput over naïve scalar implementations.
  • Masked Distillation Loss: KLDiv and MSE computed exclusively over non-padding tokens for true semantic convergence.

🚀 Quickstart

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "trentzap/QTensor-TinyLlama-1.1B-Asymmetric-v2"

tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
    device_map="cuda"
)

messages = [{"role": "user", "content": "Explain entropy-based SVD rank allocation."}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")

with torch.no_grad():
    outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.7, top_p=0.9)
    print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

📦 Training Details

ParameterValue
Teacher modelTinyLlama/TinyLlama-1.1B-Chat-v1.0
Training datasettatsu-lab/alpaca (52K instructions, cycled)
Training steps10,000
Batch size4 (grad accum × 8 = effective 32)
Learning rate2e-4 (CosineAnnealing, η_min=1e-5)
LossKLDiv (temperature T=2) + MSE (anchor layers 4,8,12,16,20,22)
HardwareNVIDIA RTX 5080 16GB

📄 License

MIT License — see LICENSE

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

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

GPU в ailist

vLLM

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

Архитектура qtensor_llama неизвестна transformers в образе рантайма.

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

0 моделей