This is a
TRL language model
that has been fine-tuned with reinforcement learning to
guide the model outputs according to a value, function, or human feedback. The model can be used for text generation.
Usage
To use this model for inference, first install the TRL library:
python -m pip install trl
You can then generate text as follows:
from transformers import pipeline
generator = pipeline("text-generation", model="baek26//tmp/tmpivd22obz/baek26/all_8650_all_6417_bart-base_rl")
outputs = generator("Hello, my llama is cute")
If you want to use the model for training or to obtain the outputs from the value head, load the model as follows:
from transformers import AutoTokenizer
from trl import AutoModelForCausalLMWithValueHead
tokenizer = AutoTokenizer.from_pretrained("baek26//tmp/tmpivd22obz/baek26/all_8650_all_6417_bart-base_rl")
model = AutoModelForCausalLMWithValueHead.from_pretrained("baek26//tmp/tmpivd22obz/baek26/all_8650_all_6417_bart-base_rl")
inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
outputs = model(**inputs, labels=inputs["input_ids"])
Runs of baek26 Ours-crossrl2 on huggingface.co
4
Total runs
0
24-hour runs
-1
3-day runs
-2
7-day runs
-1
30-day runs
More Information About Ours-crossrl2 huggingface.co Model
Ours-crossrl2 huggingface.co is an AI model on huggingface.co that provides Ours-crossrl2's model effect (), which can be used instantly with this baek26 Ours-crossrl2 model. huggingface.co supports a free trial of the Ours-crossrl2 model, and also provides paid use of the Ours-crossrl2. Support call Ours-crossrl2 model through api, including Node.js, Python, http.
Ours-crossrl2 huggingface.co is an online trial and call api platform, which integrates Ours-crossrl2's modeling effects, including api services, and provides a free online trial of Ours-crossrl2, you can try Ours-crossrl2 online for free by clicking the link below.
baek26 Ours-crossrl2 online free url in huggingface.co:
Ours-crossrl2 is an open source model from GitHub that offers a free installation service, and any user can find Ours-crossrl2 on GitHub to install. At the same time, huggingface.co provides the effect of Ours-crossrl2 install, users can directly use Ours-crossrl2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.