Update README.md
Browse files
README.md
CHANGED
@@ -27,14 +27,74 @@ This repository contains a GGML-formatted version of the [ruGPT-3.5-13B model](h
|
|
27 |
|
28 |
#### Usage
|
29 |
|
30 |
-
#####
|
|
|
|
|
|
|
|
|
|
|
31 |
|
|
|
32 |
```python
|
33 |
-
# 4-bit Quantized Version
|
34 |
from llm_rs import AutoModel
|
|
|
|
|
|
|
35 |
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
```
|
39 |
|
40 |
##### f16 Version
|
@@ -64,18 +124,79 @@ While this model is intended to be compatible with any GGML-compatible UI, it ha
|
|
64 |
|
65 |
#### Использование
|
66 |
|
|
|
67 |
```python
|
68 |
-
# Версия с квантованием в 4 бита
|
69 |
from llm_rs import AutoModel
|
70 |
-
|
71 |
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q4_0-ggjt.bin")
|
72 |
print(model.generate("Смысл жизни в ").text)
|
73 |
```
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
```python
|
76 |
-
# Версия f16
|
77 |
from llm_rs import AutoModel
|
|
|
|
|
|
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-f16.bin")
|
80 |
print(model.generate("Смысл жизни в ").text)
|
81 |
```
|
|
|
27 |
|
28 |
#### Usage
|
29 |
|
30 |
+
##### For QuantizationType.Q4_0 and ContainerType.GGJT
|
31 |
+
```python
|
32 |
+
from llm_rs import AutoModel
|
33 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q4_0-ggjt.bin")
|
34 |
+
print(model.generate("The meaning of life is ").text)
|
35 |
+
```
|
36 |
|
37 |
+
##### For QuantizationType.Q4_0 and ContainerType.GGML
|
38 |
```python
|
|
|
39 |
from llm_rs import AutoModel
|
40 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q4_0.bin")
|
41 |
+
print(model.generate("The meaning of life is ").text)
|
42 |
+
```
|
43 |
|
44 |
+
##### For QuantizationType.Q4_1 and ContainerType.GGJT
|
45 |
+
```python
|
46 |
+
from llm_rs import AutoModel
|
47 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q4_1-ggjt.bin")
|
48 |
+
print(model.generate("The meaning of life is ").text)
|
49 |
+
```
|
50 |
+
|
51 |
+
##### For QuantizationType.Q4_1 and ContainerType.GGML
|
52 |
+
```python
|
53 |
+
from llm_rs import AutoModel
|
54 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q4_1.bin")
|
55 |
+
print(model.generate("The meaning of life is ").text)
|
56 |
+
```
|
57 |
+
|
58 |
+
##### For QuantizationType.Q5_0 and ContainerType.GGJT
|
59 |
+
```python
|
60 |
+
from llm_rs import AutoModel
|
61 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q5_0-ggjt.bin")
|
62 |
+
print(model.generate("The meaning of life is ").text)
|
63 |
+
```
|
64 |
+
|
65 |
+
##### For QuantizationType.Q5_0 and ContainerType.GGML
|
66 |
+
```python
|
67 |
+
from llm_rs import AutoModel
|
68 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q5_0.bin")
|
69 |
+
print(model.generate("The meaning of life is ").text)
|
70 |
+
```
|
71 |
+
|
72 |
+
##### For QuantizationType.Q5_1 and ContainerType.GGJT
|
73 |
+
```python
|
74 |
+
from llm_rs import AutoModel
|
75 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q5_1-ggjt.bin")
|
76 |
+
print(model.generate("The meaning of life is ").text)
|
77 |
+
```
|
78 |
+
|
79 |
+
##### For QuantizationType.Q5_1 and ContainerType.GGML
|
80 |
+
```python
|
81 |
+
from llm_rs import AutoModel
|
82 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q5_1.bin")
|
83 |
+
print(model.generate("The meaning of life is ").text)
|
84 |
+
```
|
85 |
+
|
86 |
+
##### For QuantizationType.Q8_0 and ContainerType.GGJT
|
87 |
+
```python
|
88 |
+
from llm_rs import AutoModel
|
89 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q8_0-ggjt.bin")
|
90 |
+
print(model.generate("The meaning of life is ").text)
|
91 |
+
```
|
92 |
+
|
93 |
+
##### For QuantizationType.Q8_0 and ContainerType.GGML
|
94 |
+
```python
|
95 |
+
from llm_rs import AutoModel
|
96 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q8_0.bin")
|
97 |
+
print(model.generate("The meaning of life is ").text)
|
98 |
```
|
99 |
|
100 |
##### f16 Version
|
|
|
124 |
|
125 |
#### Использование
|
126 |
|
127 |
+
##### Для QuantizationType.Q4_0 и ContainerType.GGJT
|
128 |
```python
|
|
|
129 |
from llm_rs import AutoModel
|
|
|
130 |
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q4_0-ggjt.bin")
|
131 |
print(model.generate("Смысл жизни в ").text)
|
132 |
```
|
133 |
|
134 |
+
##### Для QuantizationType.Q4_0 и ContainerType.GGML
|
135 |
+
```python
|
136 |
+
from llm_rs import AutoModel
|
137 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q4_0.bin")
|
138 |
+
print(model.generate("Смысл жизни в ").text)
|
139 |
+
```
|
140 |
+
|
141 |
+
##### Для QuantizationType.Q4_1 и ContainerType.GGJT
|
142 |
```python
|
|
|
143 |
from llm_rs import AutoModel
|
144 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q4_1-ggjt.bin")
|
145 |
+
print(model.generate("Смысл жизни в ").text)
|
146 |
+
```
|
147 |
|
148 |
+
##### Для QuantizationType.Q4_1 и ContainerType.GGML
|
149 |
+
```python
|
150 |
+
from llm_rs import AutoModel
|
151 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q4_1.bin")
|
152 |
+
print(model.generate("Смысл жизни в ").text)
|
153 |
+
```
|
154 |
+
|
155 |
+
##### Для QuantizationType.Q5_0 и ContainerType.GGJT
|
156 |
+
```python
|
157 |
+
from llm_rs import AutoModel
|
158 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q5_0-ggjt.bin")
|
159 |
+
print(model.generate("Смысл жизни в ").text)
|
160 |
+
```
|
161 |
+
|
162 |
+
##### Для QuantizationType.Q5_0 и ContainerType.GGML
|
163 |
+
```python
|
164 |
+
from llm_rs import AutoModel
|
165 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q5_0.bin")
|
166 |
+
print(model.generate("Смысл жизни в ").text)
|
167 |
+
```
|
168 |
+
|
169 |
+
##### Для QuantizationType.Q5_1 и ContainerType.GGJT
|
170 |
+
```python
|
171 |
+
from llm_rs import AutoModel
|
172 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q5_1-ggjt.bin")
|
173 |
+
print(model.generate("Смысл жизни в ").text)
|
174 |
+
```
|
175 |
+
|
176 |
+
##### Для QuantizationType.Q5_1 и ContainerType.GGML
|
177 |
+
```python
|
178 |
+
from llm_rs import AutoModel
|
179 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q5_1.bin")
|
180 |
+
print(model.generate("Смысл жизни в ").text)
|
181 |
+
```
|
182 |
+
|
183 |
+
##### Для QuantizationType.Q8_0 и ContainerType.GGJT
|
184 |
+
```python
|
185 |
+
from llm_rs import AutoModel
|
186 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q8_0-ggjt.bin")
|
187 |
+
print(model.generate("Смысл жизни в ").text)
|
188 |
+
```
|
189 |
+
|
190 |
+
##### Для QuantizationType.Q8_0 и ContainerType.GGML
|
191 |
+
```python
|
192 |
+
from llm_rs import AutoModel
|
193 |
+
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-q8_0.bin")
|
194 |
+
print(model.generate("Смысл жизни в ").text)
|
195 |
+
```
|
196 |
+
|
197 |
+
##### Версия f16
|
198 |
+
```python
|
199 |
+
from llm_rs import AutoModel
|
200 |
model = AutoModel.from_pretrained("iashchak/ruGPT-3.5-13B-ggml", model_file="ruGPT-3.5-13B-f16.bin")
|
201 |
print(model.generate("Смысл жизни в ").text)
|
202 |
```
|