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/tmpmbki0et5/baek26/dialogsum_4088_bart-dialogsum")
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/tmpmbki0et5/baek26/dialogsum_4088_bart-dialogsum")
model = AutoModelForCausalLMWithValueHead.from_pretrained("baek26//tmp/tmpmbki0et5/baek26/dialogsum_4088_bart-dialogsum")
inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
outputs = model(**inputs, labels=inputs["input_ids"])
Runs of baek26 dialogsum_4088_bart-dialogsum on huggingface.co
3
Total runs
-2
24-hour runs
-2
3-day runs
-3
7-day runs
-3
30-day runs
More Information About dialogsum_4088_bart-dialogsum huggingface.co Model
More dialogsum_4088_bart-dialogsum license Visit here:
dialogsum_4088_bart-dialogsum huggingface.co is an AI model on huggingface.co that provides dialogsum_4088_bart-dialogsum's model effect (), which can be used instantly with this baek26 dialogsum_4088_bart-dialogsum model. huggingface.co supports a free trial of the dialogsum_4088_bart-dialogsum model, and also provides paid use of the dialogsum_4088_bart-dialogsum. Support call dialogsum_4088_bart-dialogsum model through api, including Node.js, Python, http.
dialogsum_4088_bart-dialogsum huggingface.co is an online trial and call api platform, which integrates dialogsum_4088_bart-dialogsum's modeling effects, including api services, and provides a free online trial of dialogsum_4088_bart-dialogsum, you can try dialogsum_4088_bart-dialogsum online for free by clicking the link below.
baek26 dialogsum_4088_bart-dialogsum online free url in huggingface.co:
dialogsum_4088_bart-dialogsum is an open source model from GitHub that offers a free installation service, and any user can find dialogsum_4088_bart-dialogsum on GitHub to install. At the same time, huggingface.co provides the effect of dialogsum_4088_bart-dialogsum install, users can directly use dialogsum_4088_bart-dialogsum installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
dialogsum_4088_bart-dialogsum install url in huggingface.co: