Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
# pip install -q transformers accelerateimport torch
from transformers import pipeline, GenerationConfig
model_name = "pszemraj/flan-t5-base-instruct-dolly_hhrlhf"
assistant = pipeline(
"text2text-generation",
model_name,
device=0if 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.
Intended uses & limitations
this is
not
tuned with RLHF etc, and may output offensive results
this model is rather small and therefore it's "cognition" abilities are rather limited
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
learning_rate: 4e-05
train_batch_size: 8
eval_batch_size: 16
seed: 42
distributed_type: multi-GPU
gradient_accumulation_steps: 8
total_train_batch_size: 64
optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
lr_scheduler_type: cosine
lr_scheduler_warmup_ratio: 0.03
num_epochs: 2.0
Runs of pszemraj flan-t5-base-instruct-dolly_hhrlhf on huggingface.co
38
Total runs
0
24-hour runs
3
3-day runs
2
7-day runs
14
30-day runs
More Information About flan-t5-base-instruct-dolly_hhrlhf huggingface.co Model
More flan-t5-base-instruct-dolly_hhrlhf license Visit here:
flan-t5-base-instruct-dolly_hhrlhf huggingface.co is an AI model on huggingface.co that provides flan-t5-base-instruct-dolly_hhrlhf's model effect (), which can be used instantly with this pszemraj flan-t5-base-instruct-dolly_hhrlhf model. huggingface.co supports a free trial of the flan-t5-base-instruct-dolly_hhrlhf model, and also provides paid use of the flan-t5-base-instruct-dolly_hhrlhf. Support call flan-t5-base-instruct-dolly_hhrlhf model through api, including Node.js, Python, http.
flan-t5-base-instruct-dolly_hhrlhf huggingface.co is an online trial and call api platform, which integrates flan-t5-base-instruct-dolly_hhrlhf's modeling effects, including api services, and provides a free online trial of flan-t5-base-instruct-dolly_hhrlhf, you can try flan-t5-base-instruct-dolly_hhrlhf online for free by clicking the link below.
pszemraj flan-t5-base-instruct-dolly_hhrlhf online free url in huggingface.co:
flan-t5-base-instruct-dolly_hhrlhf is an open source model from GitHub that offers a free installation service, and any user can find flan-t5-base-instruct-dolly_hhrlhf on GitHub to install. At the same time, huggingface.co provides the effect of flan-t5-base-instruct-dolly_hhrlhf install, users can directly use flan-t5-base-instruct-dolly_hhrlhf installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
flan-t5-base-instruct-dolly_hhrlhf install url in huggingface.co: