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