Instructions to use UF-NLPC-Lab/test_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UF-NLPC-Lab/test_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="UF-NLPC-Lab/test_model", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("UF-NLPC-Lab/test_model", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload BertForStance
Browse files- config.json +11 -1
- model.safetensors +2 -2
config.json
CHANGED
|
@@ -9,13 +9,23 @@
|
|
| 9 |
"AutoModel": "bert_for_stance.BertForStance"
|
| 10 |
},
|
| 11 |
"classifier_dropout": null,
|
| 12 |
-
"classifier_hidden_units":
|
| 13 |
"gradient_checkpointing": false,
|
| 14 |
"hidden_act": "gelu",
|
| 15 |
"hidden_dropout_prob": 0.1,
|
| 16 |
"hidden_size": 768,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
"initializer_range": 0.02,
|
| 18 |
"intermediate_size": 3072,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
"layer_norm_eps": 1e-12,
|
| 20 |
"max_position_embeddings": 512,
|
| 21 |
"model_type": "bert_for_stance",
|
|
|
|
| 9 |
"AutoModel": "bert_for_stance.BertForStance"
|
| 10 |
},
|
| 11 |
"classifier_dropout": null,
|
| 12 |
+
"classifier_hidden_units": null,
|
| 13 |
"gradient_checkpointing": false,
|
| 14 |
"hidden_act": "gelu",
|
| 15 |
"hidden_dropout_prob": 0.1,
|
| 16 |
"hidden_size": 768,
|
| 17 |
+
"id2label": {
|
| 18 |
+
"0": "NONE",
|
| 19 |
+
"1": "AGAINST",
|
| 20 |
+
"2": "FAVOR"
|
| 21 |
+
},
|
| 22 |
"initializer_range": 0.02,
|
| 23 |
"intermediate_size": 3072,
|
| 24 |
+
"label2id": {
|
| 25 |
+
"AGAINST": 1,
|
| 26 |
+
"FAVOR": 2,
|
| 27 |
+
"NONE": 0
|
| 28 |
+
},
|
| 29 |
"layer_norm_eps": 1e-12,
|
| 30 |
"max_position_embeddings": 512,
|
| 31 |
"model_type": "bert_for_stance",
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:751afeaf42a2a20bda4be0a547e53e18af05d9ec53407f2d283c3abb7fd5d885
|
| 3 |
+
size 440324276
|