michaelfeil commited on
Commit
6430a5f
1 Parent(s): e76f5e7

Upload VMware/open-llama-7b-open-instruct ctranslate fp16 weights

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -21,7 +21,7 @@ pip install hf-hub-ctranslate2>=2.0.8 ctranslate2>=3.16.0
21
  ```
22
  Converted on 2023-06-15 using
23
  ```
24
- ct2-transformers-converter --model VMware/open-llama-7b-open-instruct --output_dir /home/michael/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)
@@ -30,17 +30,17 @@ and [hf-hub-ctranslate2>=2.0.8](https://github.com/michaelfeil/hf-hub-ctranslate
30
  - `compute_type=int8` for `device="cpu"`
31
 
32
  ```python
33
- from hf_hub_ctranslate2 import TranslatorCT2fromHfHub, GeneratorCT2fromHfHub
34
  from transformers import AutoTokenizer
35
 
36
  model_name = "michaelfeil/ct2fast-open-llama-7b-open-instruct"
37
- # use either TranslatorCT2fromHfHub or GeneratorCT2fromHfHub here, depending on model.
 
38
  model = GeneratorCT2fromHfHub(
39
  # load in int8 on CUDA
40
  model_name_or_path=model_name,
41
  device="cuda",
42
  compute_type="int8_float16",
43
- # tokenizer=AutoTokenizer.from_pretrained("VMware/open-llama-7b-open-instruct")
44
  )
45
  outputs = model.generate(
46
  text=["def fibonnaci(", "User: How are you doing? Bot:"],
 
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)
 
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
38
  model = GeneratorCT2fromHfHub(
39
  # load in int8 on CUDA
40
  model_name_or_path=model_name,
41
  device="cuda",
42
  compute_type="int8_float16",
43
+ # tokenizer=AutoTokenizer.from_pretrained("{ORG}/{NAME}")
44
  )
45
  outputs = model.generate(
46
  text=["def fibonnaci(", "User: How are you doing? Bot:"],