Commit
·
1d4d24a
1
Parent(s):
9dd82db
Upload VMware/open-llama-7b-open-instruct ctranslate fp16 weights
Browse files
README.md
CHANGED
@@ -17,21 +17,11 @@ Speedup inference while reducing memory by 2x-4x using int8 inference in C++ on
|
|
17 |
|
18 |
quantized version of [VMware/open-llama-7b-open-instruct](https://huggingface.co/VMware/open-llama-7b-open-instruct)
|
19 |
```bash
|
20 |
-
pip install hf-hub-ctranslate2>=2.0
|
21 |
```
|
22 |
-
Converted on 2023-06-15 using
|
23 |
-
```
|
24 |
-
ct2-transformers-converter --model VMware/open-llama-7b-open-instruct --output_dir ~/tmp-ct2fast-open-llama-7b-open-instruct --force --copy_files README.md tokenizer_config.json generation_config.json special_tokens_map.json .gitattributes --quantization int8_float16 --trust_remote_code
|
25 |
-
```
|
26 |
-
|
27 |
-
Checkpoint compatible to [ctranslate2>=3.16.0](https://github.com/OpenNMT/CTranslate2)
|
28 |
-
and [hf-hub-ctranslate2>=2.0.8](https://github.com/michaelfeil/hf-hub-ctranslate2)
|
29 |
-
- `compute_type=int8_float16` for `device="cuda"`
|
30 |
-
- `compute_type=int8` for `device="cpu"`
|
31 |
|
32 |
```python
|
33 |
-
from transformers import AutoTokenizer
|
34 |
-
|
35 |
model_name = "michaelfeil/ct2fast-open-llama-7b-open-instruct"
|
36 |
|
37 |
from hf_hub_ctranslate2 import GeneratorCT2fromHfHub
|
@@ -50,6 +40,16 @@ outputs = model.generate(
|
|
50 |
print(outputs)
|
51 |
```
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
# Licence and other remarks:
|
54 |
This is just a quantized version. Licence conditions are intended to be idential to original huggingface repo.
|
55 |
|
|
|
17 |
|
18 |
quantized version of [VMware/open-llama-7b-open-instruct](https://huggingface.co/VMware/open-llama-7b-open-instruct)
|
19 |
```bash
|
20 |
+
pip install hf-hub-ctranslate2>=2.10.0 ctranslate2>=3.16.0
|
21 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
```python
|
24 |
+
# from transformers import AutoTokenizer
|
|
|
25 |
model_name = "michaelfeil/ct2fast-open-llama-7b-open-instruct"
|
26 |
|
27 |
from hf_hub_ctranslate2 import GeneratorCT2fromHfHub
|
|
|
40 |
print(outputs)
|
41 |
```
|
42 |
|
43 |
+
Checkpoint compatible to [ctranslate2>=3.16.0](https://github.com/OpenNMT/CTranslate2)
|
44 |
+
and [hf-hub-ctranslate2>=2.10.0](https://github.com/michaelfeil/hf-hub-ctranslate2)
|
45 |
+
- `compute_type=int8_float16` for `device="cuda"`
|
46 |
+
- `compute_type=int8` for `device="cpu"`
|
47 |
+
|
48 |
+
Converted on 2023-06-16 using
|
49 |
+
```
|
50 |
+
ct2-transformers-converter --model VMware/open-llama-7b-open-instruct --output_dir ~/tmp-ct2fast-open-llama-7b-open-instruct --force --copy_files README.md tokenizer_config.json generation_config.json special_tokens_map.json .gitattributes --quantization int8_float16 --trust_remote_code
|
51 |
+
```
|
52 |
+
|
53 |
# Licence and other remarks:
|
54 |
This is just a quantized version. Licence conditions are intended to be idential to original huggingface repo.
|
55 |
|