Text Classification
Transformers
PyTorch
TensorBoard
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use peter2000/xlm-roberta-base-finetuned-ecoicop with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use peter2000/xlm-roberta-base-finetuned-ecoicop with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="peter2000/xlm-roberta-base-finetuned-ecoicop")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("peter2000/xlm-roberta-base-finetuned-ecoicop") model = AutoModelForSequenceClassification.from_pretrained("peter2000/xlm-roberta-base-finetuned-ecoicop") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "xlm-roberta-base", | |
| "architectures": [ | |
| "XLMRobertaForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "1185_Edible ices and ice cream", | |
| "1": "1116_Pasta products and couscous", | |
| "2": "1136_Other preserved or processed fish and seafood-based preparations", | |
| "3": "1112_Flours and other cereals", | |
| "4": "1212_Tea", | |
| "5": "1223_Fruit and vegetable juices", | |
| "6": "9999_Non-Food", | |
| "7": "1151_Butter", | |
| "8": "1127_Dried, salted or smoked meat", | |
| "9": "1182_Jams, marmalades and honey", | |
| "10": "1192_Salt, spices and culinary herbs", | |
| "11": "1115_Pizza and quiche", | |
| "12": "1191_Sauces, condiments", | |
| "13": "1193_Baby food", | |
| "14": "1114_Other bakery products", | |
| "15": "1124_Poultry", | |
| "16": "1145_Cheese and curd", | |
| "17": "1173_Dried vegetables, other preserved or processed vegetables", | |
| "18": "1163_Dried fruit and nuts", | |
| "19": "1222_Soft drinks", | |
| "20": "1211_Coffee", | |
| "21": "1146_Other milk products", | |
| "22": "1113_Bread", | |
| "23": "1111_Rice", | |
| "24": "1161_Fresh or chilled fruit", | |
| "25": "1142_Fresh low fat milk", | |
| "26": "2111_Spirits and liqueurs", | |
| "27": "1132_Frozen fish", | |
| "28": "1121_Beef and veal", | |
| "29": "1172_Frozen vegetables other than potatoes and other tubers", | |
| "30": "1117_Breakfast cereals", | |
| "31": "1183_Chocolate", | |
| "32": "1144_Yoghurt", | |
| "33": "2131_Lager beer", | |
| "34": "1164_Preserved fruit and fruit-based products", | |
| "35": "1153_Olive oil", | |
| "36": "1141_Fresh whole milk", | |
| "37": "1123_Lamb and goat", | |
| "38": "1118_Other cereal products", | |
| "39": "1199_Other food products n.e.c.", | |
| "40": "1134_Frozen seafood", | |
| "41": "1171_Fresh or chilled vegetables other than potatoes and other tubers", | |
| "42": "1126_Edible offal", | |
| "43": "2121_Wine from grapes", | |
| "44": "1162_Frozen fruit", | |
| "45": "1125_Other meats", | |
| "46": "1184_Confectionery products", | |
| "47": "1176_Other tubers and products of tuber vegetables", | |
| "48": "1221_Mineral or spring waters", | |
| "49": "1174_Potatoes", | |
| "50": "1154_Other edible oils", | |
| "51": "1175_Crisps", | |
| "52": "1128_Other meat preparations", | |
| "53": "2201_Cigarettes", | |
| "54": "1181_Sugar", | |
| "55": "1147_Eggs", | |
| "56": "1194_Ready-made meals", | |
| "57": "1133_Fresh or chilled seafood", | |
| "58": "1122_Pork", | |
| "59": "2202_Cigars", | |
| "60": "1186_Artificial sugar substitutes", | |
| "61": "2122_Wine from other fruits", | |
| "62": "1155_Other edible animal fats", | |
| "63": "1135_Dried, smoked or salted fish and seafood", | |
| "64": "1152_Margarine and other vegetable fats", | |
| "65": "1143_Preserved milk", | |
| "66": "2124_Wine-based drinks", | |
| "67": "2134_Beer-based drinks", | |
| "68": "1131_Fresh or chilled fish", | |
| "69": "2112_Alcoholic soft drinks", | |
| "70": "2133_Low and non-alcoholic beer", | |
| "71": "2132_Other alcoholic beer", | |
| "72": "2123_Fortified wines", | |
| "73": "1213_Cocoa and powdered chocolate", | |
| "74": "2203_Other tobacco products" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "1111_Rice": 23, | |
| "1112_Flours and other cereals": 3, | |
| "1113_Bread": 22, | |
| "1114_Other bakery products": 14, | |
| "1115_Pizza and quiche": 11, | |
| "1116_Pasta products and couscous": 1, | |
| "1117_Breakfast cereals": 30, | |
| "1118_Other cereal products": 38, | |
| "1121_Beef and veal": 28, | |
| "1122_Pork": 58, | |
| "1123_Lamb and goat": 37, | |
| "1124_Poultry": 15, | |
| "1125_Other meats": 45, | |
| "1126_Edible offal": 42, | |
| "1127_Dried, salted or smoked meat": 8, | |
| "1128_Other meat preparations": 52, | |
| "1131_Fresh or chilled fish": 68, | |
| "1132_Frozen fish": 27, | |
| "1133_Fresh or chilled seafood": 57, | |
| "1134_Frozen seafood": 40, | |
| "1135_Dried, smoked or salted fish and seafood": 63, | |
| "1136_Other preserved or processed fish and seafood-based preparations": 2, | |
| "1141_Fresh whole milk": 36, | |
| "1142_Fresh low fat milk": 25, | |
| "1143_Preserved milk": 65, | |
| "1144_Yoghurt": 32, | |
| "1145_Cheese and curd": 16, | |
| "1146_Other milk products": 21, | |
| "1147_Eggs": 55, | |
| "1151_Butter": 7, | |
| "1152_Margarine and other vegetable fats": 64, | |
| "1153_Olive oil": 35, | |
| "1154_Other edible oils": 50, | |
| "1155_Other edible animal fats": 62, | |
| "1161_Fresh or chilled fruit": 24, | |
| "1162_Frozen fruit": 44, | |
| "1163_Dried fruit and nuts": 18, | |
| "1164_Preserved fruit and fruit-based products": 34, | |
| "1171_Fresh or chilled vegetables other than potatoes and other tubers": 41, | |
| "1172_Frozen vegetables other than potatoes and other tubers": 29, | |
| "1173_Dried vegetables, other preserved or processed vegetables": 17, | |
| "1174_Potatoes": 49, | |
| "1175_Crisps": 51, | |
| "1176_Other tubers and products of tuber vegetables": 47, | |
| "1181_Sugar": 54, | |
| "1182_Jams, marmalades and honey": 9, | |
| "1183_Chocolate": 31, | |
| "1184_Confectionery products": 46, | |
| "1185_Edible ices and ice cream": 0, | |
| "1186_Artificial sugar substitutes": 60, | |
| "1191_Sauces, condiments": 12, | |
| "1192_Salt, spices and culinary herbs": 10, | |
| "1193_Baby food": 13, | |
| "1194_Ready-made meals": 56, | |
| "1199_Other food products n.e.c.": 39, | |
| "1211_Coffee": 20, | |
| "1212_Tea": 4, | |
| "1213_Cocoa and powdered chocolate": 73, | |
| "1221_Mineral or spring waters": 48, | |
| "1222_Soft drinks": 19, | |
| "1223_Fruit and vegetable juices": 5, | |
| "2111_Spirits and liqueurs": 26, | |
| "2112_Alcoholic soft drinks": 69, | |
| "2121_Wine from grapes": 43, | |
| "2122_Wine from other fruits": 61, | |
| "2123_Fortified wines": 72, | |
| "2124_Wine-based drinks": 66, | |
| "2131_Lager beer": 33, | |
| "2132_Other alcoholic beer": 71, | |
| "2133_Low and non-alcoholic beer": 70, | |
| "2134_Beer-based drinks": 67, | |
| "2201_Cigarettes": 53, | |
| "2202_Cigars": 59, | |
| "2203_Other tobacco products": 74, | |
| "9999_Non-Food": 6 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "xlm-roberta", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "output_past": true, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.11.3", | |
| "type_vocab_size": 1, | |
| "use_cache": true, | |
| "vocab_size": 250002 | |
| } | |