Instructions to use xfbai/AMRBART-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xfbai/AMRBART-large with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("xfbai/AMRBART-large") model = AutoModelForSeq2SeqLM.from_pretrained("xfbai/AMRBART-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Xuefeng Bai commited on
Commit ·
17f7c83
1
Parent(s): 3fc0ffd
Update README.md
Browse files
README.md
CHANGED
|
@@ -36,8 +36,8 @@ be fine-tuned on a downstream task.
|
|
| 36 |
Here is how to initialize this model in PyTorch:
|
| 37 |
|
| 38 |
```python
|
| 39 |
-
from transformers import
|
| 40 |
-
model =
|
| 41 |
```
|
| 42 |
Please refer to [this repository](https://github.com/muyeby/AMRBART) for tokenizer initialization and data preprocessing.
|
| 43 |
|
|
|
|
| 36 |
Here is how to initialize this model in PyTorch:
|
| 37 |
|
| 38 |
```python
|
| 39 |
+
from transformers import BartForConditionalGeneration
|
| 40 |
+
model = BartForConditionalGeneration.from_pretrained("xfbai/AMRBART-large")
|
| 41 |
```
|
| 42 |
Please refer to [this repository](https://github.com/muyeby/AMRBART) for tokenizer initialization and data preprocessing.
|
| 43 |
|