Downloads · 30 days
18
0% of all-time downloads
theblackcat102/alpaca-title-generator-mt0-large
alpaca-title-generator-mt0-large is a text generation model from theblackcat102. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
data was generated using response pair from yahma/alpaca-cleaned and use openai turbo model for title.
Downloads · 30 days
18
0% of all-time downloads
All-time downloads
8K
Public
Repo size
7.4 GB
Likes
3
Public
Click a slice to open those files.
.bin2.5 GB · 99%
From the Hugging Face model README
model_name = "theblackcat102/alpaca-title-generator-mt0-large"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
question = 'Hi\nHow can I help you?'
encodes = tokenizer(question, return_tensors='pt')
outputs = model.generate(encodes.input_ids,
max_length=512,
do_sample=True,
repetition_penalty=1.2,
top_k=50,
num_return_sequences=1,
early_stopping=True
)
for i, beam_output in enumerate(outputs):
print('-----')
print("{}".format(tokenizer.decode(beam_output, skip_special_tokens=True)))
# > Help requested.
data was generated using response pair from yahma/alpaca-cleaned and use openai turbo model for title.
""
user: {}
assistant: {}
""
Generate a very short title within 5 words of the conversation above, title must be as relevant as possible. Title language must be same as the context
TITLE: