Downloads · 30 days
9
3% of all-time downloads
michaelfeil/ct2fast-flan-ul2
ct2fast-flan-ul2 is a machine learning model from michaelfeil. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Speedup inference by 2x-8x using int8 inference in C++
Downloads · 30 days
9
3% of all-time downloads
All-time downloads
330
Public
Repo size
19.5 GB
Likes
7
Public
Click a slice to open those files.
.bin19.5 GB · 100%
From the Hugging Face model README
Speedup inference by 2x-8x using int8 inference in C++
quantized version of google/flan-ul2
pip install hf_hub_ctranslate2>=2.0.6 ctranslate2>=3.13.0
Checkpoint compatible to ctranslate2 and hf-hub-ctranslate2
compute_type=int8_float16 for device="cuda"compute_type=int8 for device="cpu"from hf_hub_ctranslate2 import TranslatorCT2fromHfHub, GeneratorCT2fromHfHub
model_name = "michaelfeil/ct2fast-flan-ul2"
model = TranslatorCT2fromHfHub(
# load in int8 on CUDA
model_name_or_path=model_name,
device="cuda",
compute_type="int8_float16"
)
outputs = model.generate(
text=["How do you call a fast Flan-ingo?", "Translate to german: How are you doing?"],
min_decoding_length=24,
max_decoding_length=32,
max_input_length=512,
beam_size=5
)
print(outputs)
This is just a quantized version. Licence conditions are intended to be idential to original huggingface repo.