Downloads · 30 days
0
ohnonoho/opt-rlhf-poc
opt-rlhf-poc is a text generation model from ohnonoho. Use it when you need the model to write or continue text. The card lists the license as other.
This is a OPT-125m model trained with HF dataset on a single 3090 GPU.
Downloads · 30 days
0
Access
Public
Updated May 5, 2023
Repo size
501 MB
Likes
0
Public
Click a slice to open those files.
.pt501 MB · 100%
From the Hugging Face model README
This is a OPT-125m model trained with HF dataset on a single 3090 GPU.
You can use this model directly with a pipeline for text generation.
>>> from transformers import pipeline
>>> generator = pipeline('text-generation', model="facebook/opt-125m")
>>> generator("Hello, I'm am conscious and")
[{'generated_text': 'Hello, I am conscious and aware of the fact that I am a woman. I am aware of'}]
By default, generation is deterministic. In order to use the top-k sampling, please set do_sample to True.
>>> from transformers import pipeline, set_seed
>>> set_seed(32)
>>> generator = pipeline('text-generation', model="facebook/opt-125m", do_sample=True)
>>> generator("Hello, I'm am conscious and")
[{'generated_text': 'Hello, I am conscious and active member of the Khaosan Group, a private, self'}]
This model uses AHRLHF for RL https://huggingface.co/datasets/Anthropic/hh-rlhf