Instructions to use google/roberta2roberta_L-24_bbc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/roberta2roberta_L-24_bbc with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("summarization", model="google/roberta2roberta_L-24_bbc")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/roberta2roberta_L-24_bbc") model = AutoModelForSeq2SeqLM.from_pretrained("google/roberta2roberta_L-24_bbc") - Notebooks
- Google Colab
- Kaggle
File size: 135 Bytes
757e411 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:4343ca7009aca775e83d00909b564768db41a9b8604de4f662452a9cf049b21c
size 1821418078
|