Instructions to use aixplain/NoRefER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aixplain/NoRefER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="aixplain/NoRefER", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("aixplain/NoRefER", trust_remote_code=True) model = AutoModel.from_pretrained("aixplain/NoRefER", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Commit ·
d63e61f
1
Parent(s): 1bdc7be
Update model.py
Browse files
model.py
CHANGED
|
@@ -1,5 +1,3 @@
|
|
| 1 |
-
__author__="thiagocastroferreira"
|
| 2 |
-
|
| 3 |
import torch.nn as nn
|
| 4 |
from transformers import XLMRobertaModel
|
| 5 |
from transformers.models.xlm_roberta.modeling_xlm_roberta import XLMRobertaPreTrainedModel
|
|
|
|
|
|
|
|
|
|
| 1 |
import torch.nn as nn
|
| 2 |
from transformers import XLMRobertaModel
|
| 3 |
from transformers.models.xlm_roberta.modeling_xlm_roberta import XLMRobertaPreTrainedModel
|