from hf_hub_ctranslate2 import TranslatorCT2fromHfHub, GeneratorCT2fromHfHub
from transformers import AutoTokenizer
model_name = "michaelfeil/ct2fast-stablelm-7b-sft-v7-epoch-3"# 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/stablelm-7b-sft-v7-epoch-3")
)
outputs = model.generate(
text=["def fibonnaci(", "User: How are you doing? Bot:"],
max_length=64,
include_prompt_in_result=False
)
print(outputs)
Licence and other remarks:
This is just a quantized version. Licence conditions are intended to be idential to original huggingface repo.
Original description
Open-Assistant StableLM-7B SFT-7 Model
This is the 7th iteration English supervised-fine-tuning (SFT) model of
the
Open-Assistant
project.
It is based on a StableLM 7B that was fine-tuned on human demonstrations
of assistant conversations collected through the
https://open-assistant.io/
human feedback web
app before April 12, 2023.
Two special tokens are used to mark the beginning of user and assistant turns:
<|prompter|>
and
<|assistant|>
. Each turn ends with a
<|endoftext|>
token.
Input prompt example:
<|prompter|>What is a meme, and what's the history behind this word?<|endoftext|><|assistant|>
The input ends with the
<|assistant|>
token to signal that the model should
start generating the assistant reply.
Runs of michaelfeil ct2fast-stablelm-7b-sft-v7-epoch-3 on huggingface.co
15
Total runs
0
24-hour runs
2
3-day runs
4
7-day runs
-3
30-day runs
More Information About ct2fast-stablelm-7b-sft-v7-epoch-3 huggingface.co Model
ct2fast-stablelm-7b-sft-v7-epoch-3 huggingface.co
ct2fast-stablelm-7b-sft-v7-epoch-3 huggingface.co is an AI model on huggingface.co that provides ct2fast-stablelm-7b-sft-v7-epoch-3's model effect (), which can be used instantly with this michaelfeil ct2fast-stablelm-7b-sft-v7-epoch-3 model. huggingface.co supports a free trial of the ct2fast-stablelm-7b-sft-v7-epoch-3 model, and also provides paid use of the ct2fast-stablelm-7b-sft-v7-epoch-3. Support call ct2fast-stablelm-7b-sft-v7-epoch-3 model through api, including Node.js, Python, http.
ct2fast-stablelm-7b-sft-v7-epoch-3 huggingface.co is an online trial and call api platform, which integrates ct2fast-stablelm-7b-sft-v7-epoch-3's modeling effects, including api services, and provides a free online trial of ct2fast-stablelm-7b-sft-v7-epoch-3, you can try ct2fast-stablelm-7b-sft-v7-epoch-3 online for free by clicking the link below.
michaelfeil ct2fast-stablelm-7b-sft-v7-epoch-3 online free url in huggingface.co:
ct2fast-stablelm-7b-sft-v7-epoch-3 is an open source model from GitHub that offers a free installation service, and any user can find ct2fast-stablelm-7b-sft-v7-epoch-3 on GitHub to install. At the same time, huggingface.co provides the effect of ct2fast-stablelm-7b-sft-v7-epoch-3 install, users can directly use ct2fast-stablelm-7b-sft-v7-epoch-3 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
ct2fast-stablelm-7b-sft-v7-epoch-3 install url in huggingface.co: