Instructions to use Joshi-Aryan/Fine_Tuned_HF_Language_Identification_Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Joshi-Aryan/Fine_Tuned_HF_Language_Identification_Model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Joshi-Aryan/Fine_Tuned_HF_Language_Identification_Model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Joshi-Aryan/Fine_Tuned_HF_Language_Identification_Model") model = AutoModelForSequenceClassification.from_pretrained("Joshi-Aryan/Fine_Tuned_HF_Language_Identification_Model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
b01bf38
1
Parent(s): 8761d48
Delete config.json
Browse files- config.json +0 -43
config.json
DELETED
|
@@ -1,43 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_name_or_path": "xlm-roberta-base",
|
| 3 |
-
"architectures": [
|
| 4 |
-
"XLMRobertaForSequenceClassification"
|
| 5 |
-
],
|
| 6 |
-
"attention_probs_dropout_prob": 0.1,
|
| 7 |
-
"bos_token_id": 0,
|
| 8 |
-
"classifier_dropout": null,
|
| 9 |
-
"eos_token_id": 2,
|
| 10 |
-
"hidden_act": "gelu",
|
| 11 |
-
"hidden_dropout_prob": 0.1,
|
| 12 |
-
"hidden_size": 768,
|
| 13 |
-
"id2label": {
|
| 14 |
-
"0": "arabic",
|
| 15 |
-
"1": "english",
|
| 16 |
-
"2": "french",
|
| 17 |
-
"3": "german",
|
| 18 |
-
"4": "russian"
|
| 19 |
-
},
|
| 20 |
-
"initializer_range": 0.02,
|
| 21 |
-
"intermediate_size": 3072,
|
| 22 |
-
"label2id": {
|
| 23 |
-
"arabic": 0,
|
| 24 |
-
"english": 1,
|
| 25 |
-
"french": 2,
|
| 26 |
-
"german": 3,
|
| 27 |
-
"russian": 4
|
| 28 |
-
},
|
| 29 |
-
"layer_norm_eps": 1e-05,
|
| 30 |
-
"max_position_embeddings": 514,
|
| 31 |
-
"model_type": "xlm-roberta",
|
| 32 |
-
"num_attention_heads": 12,
|
| 33 |
-
"num_hidden_layers": 12,
|
| 34 |
-
"output_past": true,
|
| 35 |
-
"pad_token_id": 1,
|
| 36 |
-
"position_embedding_type": "absolute",
|
| 37 |
-
"problem_type": "single_label_classification",
|
| 38 |
-
"torch_dtype": "float32",
|
| 39 |
-
"transformers_version": "4.28.0",
|
| 40 |
-
"type_vocab_size": 1,
|
| 41 |
-
"use_cache": true,
|
| 42 |
-
"vocab_size": 250002
|
| 43 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|