Downloads · 30 days
16
1% of all-time downloads
pszemraj/flan-t5-large-instruct-dolly_hhrlhf
flan-t5-large-instruct-dolly_hhrlhf is a text generation model from pszemraj. 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-by-sa-3.0.
<a href="https://colab.research.google.com/gist/pszemraj/df1989546b02f284d33ca4996f70fedc/flan-t5-large-instruct-example.ipynb" <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/ </a
Downloads · 30 days
16
1% of all-time downloads
All-time downloads
2.4K
Public
Parameters
783M
6.3 GB on disk
Likes
2
Public
Click a slice to open those files.
.bin3.1 GB · 50%
From the Hugging Face model README
This model is a fine-tuned version of google/flan-t5-large on the pszemraj/dolly_hhrlhf-text2text dataset.
text2text models fine-tuned on a modified dataset for text2text generation based on the relatively more permissive mosaicml/dolly_hhrlhf dataset.
Basic usage in Python:
# pip install -q transformers accelerate
import torch
from transformers import pipeline, GenerationConfig
model_name = "pszemraj/flan-t5-large-instruct-dolly_hhrlhf"
assistant = pipeline(
"text2text-generation",
model_name,
device=0 if torch.cuda.is_available() else -1,
)
cfg = GenerationConfig.from_pretrained(model_name)
# pass an 'instruction' as the prompt to the pipeline
prompt = "Write a guide on how to become a ninja while working a 9-5 job."
result = assistant(prompt, generation_config=cfg)[0]["generated_text"]
print(result)
using the generation config is optional, can subsitute with other generation params.
large tagged variant, this model has only 774M parameters (3 gb) and therefore may exhibit less 'cogitive ability' on some uses cases/tasksThe following hyperparameters were used during training: