from hf_hub_ctranslate2 import TranslatorCT2fromHfHub, GeneratorCT2fromHfHub
from transformers import AutoTokenizer
model_name = "michaelfeil/ct2fast-pythia-12b-sft-v8-7k-steps"# use either TranslatorCT2fromHfHub or GeneratorCT2fromHfHub here, depending on model.
model = GeneratorCT2fromHfHub(
# load in int8 on CUDA
model_name_or_path=model_name,
device="cuda",
compute_type="int8_float16",
tokenizer=AutoTokenizer.from_pretrained("OpenAssistant/pythia-12b-sft-v8-7k-steps")
)
outputs = model.generate(
text=["How do you call a fast Flan-ingo?", "User: How are you doing? Bot:"],
)
print(outputs)
Licence and other remarks:
This is just a quantized version. Licence conditions are intended to be idential to original huggingface repo.
ct2fast-pythia-12b-sft-v8-7k-steps huggingface.co is an AI model on huggingface.co that provides ct2fast-pythia-12b-sft-v8-7k-steps's model effect (), which can be used instantly with this michaelfeil ct2fast-pythia-12b-sft-v8-7k-steps model. huggingface.co supports a free trial of the ct2fast-pythia-12b-sft-v8-7k-steps model, and also provides paid use of the ct2fast-pythia-12b-sft-v8-7k-steps. Support call ct2fast-pythia-12b-sft-v8-7k-steps model through api, including Node.js, Python, http.
ct2fast-pythia-12b-sft-v8-7k-steps huggingface.co is an online trial and call api platform, which integrates ct2fast-pythia-12b-sft-v8-7k-steps's modeling effects, including api services, and provides a free online trial of ct2fast-pythia-12b-sft-v8-7k-steps, you can try ct2fast-pythia-12b-sft-v8-7k-steps online for free by clicking the link below.
michaelfeil ct2fast-pythia-12b-sft-v8-7k-steps online free url in huggingface.co:
ct2fast-pythia-12b-sft-v8-7k-steps is an open source model from GitHub that offers a free installation service, and any user can find ct2fast-pythia-12b-sft-v8-7k-steps on GitHub to install. At the same time, huggingface.co provides the effect of ct2fast-pythia-12b-sft-v8-7k-steps install, users can directly use ct2fast-pythia-12b-sft-v8-7k-steps installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
ct2fast-pythia-12b-sft-v8-7k-steps install url in huggingface.co: