uploaded readme
Browse files
README.md
ADDED
@@ -0,0 +1,187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Quantization made by Richard Erkhov.
|
2 |
+
|
3 |
+
[Github](https://github.com/RichardErkhov)
|
4 |
+
|
5 |
+
[Discord](https://discord.gg/pvy7H8DZMG)
|
6 |
+
|
7 |
+
[Request more models](https://github.com/RichardErkhov/quant_request)
|
8 |
+
|
9 |
+
|
10 |
+
Vikhr-Llama-3.2-1B-Instruct - GGUF
|
11 |
+
- Model creator: https://huggingface.co/Vikhrmodels/
|
12 |
+
- Original model: https://huggingface.co/Vikhrmodels/Vikhr-Llama-3.2-1B-Instruct/
|
13 |
+
|
14 |
+
|
15 |
+
| Name | Quant method | Size |
|
16 |
+
| ---- | ---- | ---- |
|
17 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q2_K.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q2_K.gguf) | Q2_K | 0.54GB |
|
18 |
+
| [Vikhr-Llama-3.2-1B-Instruct.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.IQ3_XS.gguf) | IQ3_XS | 0.58GB |
|
19 |
+
| [Vikhr-Llama-3.2-1B-Instruct.IQ3_S.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.IQ3_S.gguf) | IQ3_S | 0.6GB |
|
20 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q3_K_S.gguf) | Q3_K_S | 0.6GB |
|
21 |
+
| [Vikhr-Llama-3.2-1B-Instruct.IQ3_M.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.IQ3_M.gguf) | IQ3_M | 0.61GB |
|
22 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q3_K.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q3_K.gguf) | Q3_K | 0.64GB |
|
23 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q3_K_M.gguf) | Q3_K_M | 0.64GB |
|
24 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q3_K_L.gguf) | Q3_K_L | 0.68GB |
|
25 |
+
| [Vikhr-Llama-3.2-1B-Instruct.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.IQ4_XS.gguf) | IQ4_XS | 0.7GB |
|
26 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q4_0.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q4_0.gguf) | Q4_0 | 0.72GB |
|
27 |
+
| [Vikhr-Llama-3.2-1B-Instruct.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.IQ4_NL.gguf) | IQ4_NL | 0.72GB |
|
28 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q4_K_S.gguf) | Q4_K_S | 0.72GB |
|
29 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q4_K.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q4_K.gguf) | Q4_K | 0.75GB |
|
30 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q4_K_M.gguf) | Q4_K_M | 0.75GB |
|
31 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q4_1.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q4_1.gguf) | Q4_1 | 0.77GB |
|
32 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q5_0.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q5_0.gguf) | Q5_0 | 0.83GB |
|
33 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q5_K_S.gguf) | Q5_K_S | 0.83GB |
|
34 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q5_K.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q5_K.gguf) | Q5_K | 0.85GB |
|
35 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q5_K_M.gguf) | Q5_K_M | 0.85GB |
|
36 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q5_1.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q5_1.gguf) | Q5_1 | 0.89GB |
|
37 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q6_K.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q6_K.gguf) | Q6_K | 0.95GB |
|
38 |
+
| [Vikhr-Llama-3.2-1B-Instruct.Q8_0.gguf](https://huggingface.co/RichardErkhov/Vikhrmodels_-_Vikhr-Llama-3.2-1B-Instruct-gguf/blob/main/Vikhr-Llama-3.2-1B-Instruct.Q8_0.gguf) | Q8_0 | 1.23GB |
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
Original model description:
|
44 |
+
---
|
45 |
+
library_name: transformers
|
46 |
+
model_name: Vikhr-Llama-3.2-1B-instruct
|
47 |
+
base_model:
|
48 |
+
- meta-llama/Llama-3.2-1B-Instruct
|
49 |
+
language:
|
50 |
+
- ru
|
51 |
+
- en
|
52 |
+
license: llama3.2
|
53 |
+
datasets:
|
54 |
+
- Vikhrmodels/GrandMaster-PRO-MAX
|
55 |
+
---
|
56 |
+
|
57 |
+
# 💨📱 Vikhr-Llama-3.2-1B-instruct
|
58 |
+
|
59 |
+
#### RU
|
60 |
+
|
61 |
+
Инструктивная модель на основе Llama-3.2-1B-Instruct, обученная на русскоязычном датасете GrandMaster-PRO-MAX. В 5 раз эффективнее базовой модели, и идеально подходит для запуска на слабых или мобильных устройствах.
|
62 |
+
|
63 |
+
#### EN
|
64 |
+
|
65 |
+
Instructive model based on Llama-3.2-1B-Instruct, trained on the Russian-language dataset GrandMaster-PRO-MAX. It is 5 times more efficient than the base model, making it perfect for deployment on low-power or mobile devices.
|
66 |
+
|
67 |
+
## GGUF
|
68 |
+
|
69 |
+
- [Vikhrmodels/Vikhr-Llama-3.2-1B-instruct-GGUF](https://huggingface.co/Vikhrmodels/Vikhr-Llama-3.2-1B-instruct-GGUF)
|
70 |
+
|
71 |
+
## Особенности:
|
72 |
+
|
73 |
+
- 📚 Основа / Base: [Llama-3.2-1B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct)
|
74 |
+
- 🇷🇺 Специализация / Specialization: **RU**
|
75 |
+
- 💾 Датасет / Dataset: [GrandMaster-PRO-MAX](https://huggingface.co/datasets/Vikhrmodels/GrandMaster-PRO-MAX)
|
76 |
+
|
77 |
+
## Попробовать / Try now:
|
78 |
+
|
79 |
+
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1bJpLmplDGkMbfOLO2CH6IO-2uUZEaknf?usp=sharing)
|
80 |
+
|
81 |
+
## Описание:
|
82 |
+
|
83 |
+
#### RU
|
84 |
+
|
85 |
+
Vikhr-Llama-3.2-1B-instruct — это компактная языковая модель, обученная на датасете GrandMaster-PRO-MAX, специально доученная для обработки русского языка. Эффективность модели в 5 раз превышает базовую модель, а её размер не превышает 3GB, что делает её отличным выбором для запуска на слабых и мобильных устройствах.
|
86 |
+
|
87 |
+
#### EN
|
88 |
+
|
89 |
+
Vikhr-Llama-3.2-1B-instruct is a compact language model trained on the GrandMaster-PRO-MAX dataset, specifically designed for processing the Russian language. Its efficiency is 5 times higher than the base model, and its size does not exceed 3GB, making it an excellent choice for deployment on low-power and mobile devices.
|
90 |
+
|
91 |
+
## Обучение / Train:
|
92 |
+
|
93 |
+
#### RU
|
94 |
+
|
95 |
+
Для создания **Vikhr-Llama-3.2-1B-instruct** использовался метод SFT (Supervised Fine-Tuning). Мы обучили модель на синтетическом датасете **Vikhrmodels/GrandMaster-PRO-MAX** (150k инструкций) с поддержкой CoT (Chain-Of-Thought), используя промпты для GPT-4-turbo.
|
96 |
+
|
97 |
+
Скрипт для запуска SFT можно найти в нашей библиотеке на GitHub: [effective_llm_alignment](https://github.com/VikhrModels/effective_llm_alignment/).
|
98 |
+
|
99 |
+
#### EN
|
100 |
+
|
101 |
+
To create **Vikhr-Llama-3.2-1B-instruct**, the SFT (Supervised Fine-Tuning) method was used. We trained the model on a synthetic dataset **Vikhrmodels/GrandMaster-PRO-MAX** (150k instructions) with support for CoT (Chain-Of-Thought), utilizing prompts for GPT-4-turbo.
|
102 |
+
|
103 |
+
The script for running SFT can be found in our GitHub repository: [effective_llm_alignment](https://github.com/VikhrModels/effective_llm_alignment/).
|
104 |
+
|
105 |
+
## Пример кода для запуска / Sample code to run:
|
106 |
+
|
107 |
+
**Рекомендуемая температура для генерации: 0.3** / **Recommended generation temperature: 0.3**.
|
108 |
+
|
109 |
+
```python
|
110 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
111 |
+
|
112 |
+
# Загрузка модели и токенизатора
|
113 |
+
model_name = "Vikhrmodels/Vikhr-Llama-3.2-1B-instruct"
|
114 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
115 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
116 |
+
|
117 |
+
# Подготовка входного текста
|
118 |
+
input_text = "Напиши очень краткую рецензию о книге гарри поттер."
|
119 |
+
|
120 |
+
# Токенизация и генерация текста
|
121 |
+
input_ids = tokenizer.encode(input_text, return_tensors="pt")
|
122 |
+
output = model.generate(
|
123 |
+
input_ids,
|
124 |
+
max_length=1512,
|
125 |
+
temperature=0.3,
|
126 |
+
num_return_sequences=1,
|
127 |
+
no_repeat_ngram_size=2,
|
128 |
+
top_k=50,
|
129 |
+
top_p=0.95,
|
130 |
+
)
|
131 |
+
|
132 |
+
# Декодирование и вывод результата
|
133 |
+
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
|
134 |
+
print(generated_text)
|
135 |
+
```
|
136 |
+
|
137 |
+
#### Ответ модели / Model response:
|
138 |
+
|
139 |
+
> **Краткая рецензия на книгу "Гарри Поттер"**
|
140 |
+
>
|
141 |
+
> "Гарри Поттер" — это серия книг, написанная Дж. К. Роулинг, которая стала культовой в мире детских литературы. Книги рассказывают о жизни и приключениях молодого ученика по имени Гарри Поттер, который стал знаменитым по своей способности к магии.
|
142 |
+
>
|
143 |
+
> **Основные моменты:**
|
144 |
+
>
|
145 |
+
> 1. **Введение в мир Гарри Поттера:** Книги начинаются с описания Гарри, ег�� семьи и школы, где он изучает магию. Гарри — необычный ученик, который не имеет магических способностей, но обладает уникальным умом и способностью к решению проблем.
|
146 |
+
>
|
147 |
+
> 2. **Социальные и политические аспекты:** В книгах рассматриваются социальные и политические аспекты, такие как правительство, магические общества, и их взаимодействие.
|
148 |
+
>
|
149 |
+
> 3. **Магические приключения:** Гарри и его друзья, включая Рон и Хэл, сталкиваются с множеством магических угроз, включая злодеев, такие как Волшебный Войнук и Сатан.
|
150 |
+
>
|
151 |
+
> 4. **Развитие персонажей:** В книгах развиваются персонажи, их мотивации и отношения с другими персонажами.
|
152 |
+
>
|
153 |
+
> 5. **Философские и моральные вопросы:** Книги затрагивают темы, такие как вера, доброта, справедливость и моральные дилеммы.
|
154 |
+
>
|
155 |
+
> **Заключение:**
|
156 |
+
>
|
157 |
+
> "Гарри Поттер" — это не только история о молодом ученике, но и глубокое исследование человеческого опыта, социальных норм и моральных дилемм. Книги привлекают читателей своими захватывающими сюжетами, яркими персонажами и глубокими философскими размышлениями. Они являются не только увлекательным приключением, но и важным источником вдохновения для многих людей.
|
158 |
+
|
159 |
+
## Метрики на ru_arena_general / Metrics on ru_arena_general
|
160 |
+
|
161 |
+
| **Model** | **Score** | **95% CI** | **Avg Tokens** | **Std Tokens** | **LC Score** |
|
162 |
+
| ------------------------------------------- | --------- | --------------- | -------------- | -------------- | ------------ |
|
163 |
+
| kolibri-vikhr-mistral-0427 | 22.41 | +1.6 / -1.6 | 489.89 | 566.29 | 46.04 |
|
164 |
+
| storm-7b | 20.62 | +2.0 / -1.6 | 419.32 | 190.85 | 45.78 |
|
165 |
+
| neural-chat-7b-v3-3 | 19.04 | +2.0 / -1.7 | 927.21 | 1211.62 | 45.56 |
|
166 |
+
| **Vikhrmodels-Vikhr-Llama-3.2-1B-instruct** | **19.04** | **+1.3 / -1.6** | **958.63** | **1297.33** | **45.56** |
|
167 |
+
| gigachat_lite | 17.2 | +1.4 / -1.4 | 276.81 | 329.66 | 45.29 |
|
168 |
+
| Vikhrmodels-vikhr-qwen-1.5b-it | 13.19 | +1.4 / -1.6 | 2495.38 | 741.45 | 44.72 |
|
169 |
+
| meta-llama-Llama-3.2-1B-Instruct | 4.04 | +0.8 / -0.6 | 1240.53 | 1783.08 | 43.42 |
|
170 |
+
|
171 |
+
### Авторы / Authors
|
172 |
+
|
173 |
+
- Sergei Bratchikov, [NLP Wanderer](https://t.me/nlpwanderer), [Vikhr Team](https://t.me/vikhrlabs)
|
174 |
+
- Nikolay Kompanets, [LakoMoor](https://t.me/lakomoor), [Vikhr Team](https://t.me/vikhrlabs)
|
175 |
+
- Konstantin Korolev, [Vikhr Team](https://t.me/vikhrlabs)
|
176 |
+
- Aleksandr Nikolich, [Vikhr Team](https://t.me/vikhrlabs)
|
177 |
+
|
178 |
+
```
|
179 |
+
@article{nikolich2024vikhr,
|
180 |
+
title={Vikhr: The Family of Open-Source Instruction-Tuned Large Language Models for Russian},
|
181 |
+
author={Aleksandr Nikolich and Konstantin Korolev and Sergey Bratchikov and Nikolay Kompanets and Artem Shelmanov},
|
182 |
+
journal={arXiv preprint arXiv:2405.13929},
|
183 |
+
year={2024},
|
184 |
+
url={https://arxiv.org/pdf/2405.13929}
|
185 |
+
}
|
186 |
+
```
|
187 |
+
|