Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: HuggingFaceTB/SmolLM2-1.7B-Instruct
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
library_name: transformers
|
6 |
+
license: apache-2.0
|
7 |
+
tags:
|
8 |
+
- openvino
|
9 |
+
- nncf
|
10 |
+
- fp16
|
11 |
+
---
|
12 |
+
|
13 |
+
This model is a quantized version of [`HuggingFaceTB/SmolLM2-1.7B-Instruct`](https://huggingface.co/HuggingFaceTB/SmolLM2-1.7B-Instruct) 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).
|
14 |
+
First make sure you have `optimum-intel` installed:
|
15 |
+
```bash
|
16 |
+
pip install optimum[openvino]
|
17 |
+
```
|
18 |
+
To load your model you can do as follows:
|
19 |
+
```python
|
20 |
+
from optimum.intel import OVModelForCausalLM
|
21 |
+
model_id = "AIFunOver/SmolLM2-1.7B-Instruct-openvino-fp16"
|
22 |
+
model = OVModelForCausalLM.from_pretrained(model_id)
|
23 |
+
```
|