Instructions to use poyum/test_discut with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use poyum/test_discut with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="poyum/test_discut", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("poyum/test_discut", trust_remote_code=True) model = AutoModelForTokenClassification.from_pretrained("poyum/test_discut", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
modif config for remote code
Browse files- config.json +10 -3
config.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"XLMRobertaForTokenClassification"
|
|
|
|
| 4 |
],
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
"bos_token_id": 0,
|
|
@@ -23,5 +24,11 @@
|
|
| 23 |
"transformers_version": "4.52.4",
|
| 24 |
"type_vocab_size": 1,
|
| 25 |
"use_cache": true,
|
| 26 |
-
"vocab_size": 250002
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"XLMRobertaForTokenClassification",
|
| 4 |
+
"AutoModelForTokenClassification"
|
| 5 |
],
|
| 6 |
"attention_probs_dropout_prob": 0.1,
|
| 7 |
"bos_token_id": 0,
|
|
|
|
| 24 |
"transformers_version": "4.52.4",
|
| 25 |
"type_vocab_size": 1,
|
| 26 |
"use_cache": true,
|
| 27 |
+
"vocab_size": 250002,
|
| 28 |
+
|
| 29 |
+
"_name_or_path": "poyum/test_discut",
|
| 30 |
+
"auto_map": {
|
| 31 |
+
"AutoTokenizer": "tokenizer.json",
|
| 32 |
+
"AutoModelForTokenClassification": "pipeline.DiscoursePipeline"
|
| 33 |
+
}
|
| 34 |
+
}
|