GigaChat-20B-A3B-instruct-v1.5 int8

Диалоговая модель из семейства моделей GigaChat, основная на ai-sage/GigaChat-20B-A3B-instruct-v1.5. Поддерживает контекст в 131 тысячу токенов.

Представляем обновленную версию с улучшенным alignment, что привело к значительному росту метрик арен:

  • Arena Hard RU: 20.8 → 29.6 (+8.8)
  • Arena General: 41.1 → 49.1 (+9)
  • остальные метрики на тех же значениях

Больше подробностей в хабр статье.

Доступность

Для данной модели также доступны веса в bf16 и fp32

А также:

Пример использования через transformers

pip install --upgrade transformers torch accelerate bitsandbytes
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig

model_name = "ai-sage/GigaChat-20B-A3B-instruct-int8"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, device_map="auto")
model.generation_config = GenerationConfig.from_pretrained(model_name)

messages = [
    {"role": "user", "content": "Докажи теорему о неподвижной точке"}
]
input_tensor = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(input_tensor.to(model.device))

result = tokenizer.decode(outputs[0][input_tensor.shape[1]:], skip_special_tokens=False)
print(result)
Downloads last month
47
Safetensors
Model size
20.6B params
Tensor type
F32
·
FP16
·
I8
·
Inference Providers NEW
This model is not currently available via any of the supported third-party Inference Providers, and HF Inference API was unable to determine this model's library.

Model tree for ai-sage/GigaChat-20B-A3B-instruct-v1.5-int8

Quantized
(2)
this model