File size: 438 Bytes
27f635d 634e268 5aedc32 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
---
language:
- it
pipeline_tag: translation
---
To initialize the model:
```python
from transformers import MBartForConditionalGeneration
model = MBartForConditionalGeneration.from_pretrained("facebook/mbart-large-50", output_hidden_states=True)
```
To generate text using the model:
```python
input_ids = tokenizer.encode("Input text", return_tensors="pt")
output = model.generate(input_ids)
``` |