Downloads · 30 days
16
30% of all-time downloads
blackmount8/open-llama-13b-open-instruct-ct2-int8_float16
open-llama-13b-open-instruct-ct2-int8_float16 is a text generation model from blackmount8. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc.
Int8float16 version of VMware/open-llama-13b-open-instruct, quantized using CTranslate2.
Downloads · 30 days
16
30% of all-time downloads
All-time downloads
54
Public
Repo size
13 GB
Likes
0
Public
Click a slice to open those files.
.bin13 GB · 100%
From the Hugging Face model README
Int8_float16 version of VMware/open-llama-13b-open-instruct, quantized using CTranslate2.
Instruction-tuned version of the fully trained Open LLama 13B model. The model is open for <b>COMMERCIAL USE </b>. <br>
<b> NOTE </b> : The model was trained using the Alpaca prompt template
<b> NOTE </b> : Fast tokenizer results in incorrect encoding, set the use_fast = False parameter, when instantiating the tokenizer
<b>Commercially Viable </b>import ctranslate2
from transformers import AutoTokenizer
model_name = "blackmount8/open-llama-13b-open-instruct-ct2-int8_float16"
tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False, padding_side="left", truncation_side="left")
model = ctranslate2.Generator(model_name, device="auto", compute_type="int8_float16")
input_text = ["What is the meaning of stonehenge?", "Hello mate!"]
input_ids = tokenizer(input_text, return_tensors="pt", padding=True, truncation=True).input_ids
input_tokens = [tokenizer.convert_ids_to_tokens(ele) for ele in input_ids]
outputs = model.generate_batch(input_tokens, max_length=128)
output_tokens = [
ele.sequences_ids[0] for ele in outputs
]
output = tokenizer.batch_decode(output_tokens)
print(output)