Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: THUDM/chatglm3-6b
|
3 |
+
language:
|
4 |
+
- zh
|
5 |
+
- en
|
6 |
+
tags:
|
7 |
+
- glm
|
8 |
+
- chatglm
|
9 |
+
- thudm
|
10 |
+
- openvino
|
11 |
+
- nncf
|
12 |
+
- fp16
|
13 |
+
---
|
14 |
+
|
15 |
+
This model is a quantized version of [`THUDM/chatglm3-6b`](https://huggingface.co/THUDM/chatglm3-6b) and is converted to the OpenVINO format. This model was obtained via the [nncf-quantization](https://huggingface.co/spaces/echarlaix/nncf-quantization) space with [optimum-intel](https://github.com/huggingface/optimum-intel).
|
16 |
+
First make sure you have `optimum-intel` installed:
|
17 |
+
```bash
|
18 |
+
pip install optimum[openvino]
|
19 |
+
```
|
20 |
+
To load your model you can do as follows:
|
21 |
+
```python
|
22 |
+
from optimum.intel import OVModelForCausalLM
|
23 |
+
model_id = "AIFunOver/chatglm3-6b-openvino-fp16"
|
24 |
+
model = OVModelForCausalLM.from_pretrained(model_id)
|
25 |
+
```
|