Instructions to use jinaai/xlm-roberta-flash-implementation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jinaai/xlm-roberta-flash-implementation with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jinaai/xlm-roberta-flash-implementation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update modeling_xlm_roberta_for_glue.py
Browse files
modeling_xlm_roberta_for_glue.py
CHANGED
|
@@ -5,7 +5,7 @@ from torch import nn
|
|
| 5 |
from torch.nn import CrossEntropyLoss, MSELoss, BCEWithLogitsLoss
|
| 6 |
from transformers.modeling_outputs import SequenceClassifierOutput, QuestionAnsweringModelOutput, TokenClassifierOutput
|
| 7 |
|
| 8 |
-
from .
|
| 9 |
from .configuration_xlm_roberta import XLMRobertaFlashConfig
|
| 10 |
|
| 11 |
|
|
|
|
| 5 |
from torch.nn import CrossEntropyLoss, MSELoss, BCEWithLogitsLoss
|
| 6 |
from transformers.modeling_outputs import SequenceClassifierOutput, QuestionAnsweringModelOutput, TokenClassifierOutput
|
| 7 |
|
| 8 |
+
from .modeling_xlm_roberta import XLMRobertaPreTrainedModel, XLMRobertaModel
|
| 9 |
from .configuration_xlm_roberta import XLMRobertaFlashConfig
|
| 10 |
|
| 11 |
|