Run this model with HF Jobs
Run justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735") model = AutoModelForSequenceClassification.from_pretrained("justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit From AutoTrain
Browse filesFiles changed (9)
- .gitattributes+3
- README.mdAdded+52
- config.jsonAdded+80
- pytorch_model.binAdded+3
- sample_input.pklAdded+3
- special_tokens_map.jsonAdded+1
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+1
- vocab.txtAdded
24 unmodified lines25262724 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zstandard filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text24 unmodified lines25262728293024 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zstandard filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text*.bin.* filter=lfs diff=lfs merge=lfs -text*.tar.gz filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152---tags: autotrainlanguage: enwidget:- text: "I love AutoTrain 🤗"datasets:- justpyschitry/autotrain-data-Wikipeida_Article_Classifier_by_Chapco2_eq_emissions: 16.816741650923202---
# Model Trained Using AutoTrain
- Problem type: Multi-class Classification- Model ID: 1022634735- CO2 Emissions (in grams): 16.816741650923202
## Validation Metrics
- Loss: 0.4373569190502167- Accuracy: 0.9027552674230146- Macro F1: 0.8938134766263609- Micro F1: 0.9027552674230146- Weighted F1: 0.9023653852553881- Macro Precision: 0.8970541297231431- Micro Precision: 0.9027552674230146- Weighted Precision: 0.903514305510645- Macro Recall: 0.892665778987219- Micro Recall: 0.9027552674230146- Weighted Recall: 0.9027552674230146
## Usage
You can use cURL to access this model:
```$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735```
Or Python API:
```from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("justpyschitry/autotrain-Wikipeida_Article_Classifier_by_Chap-1022634735", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)```1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ "_name_or_path": "AutoTrain", "_num_labels": 20, "architectures": [ "BertForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "directionality": "bidi", "gradient_checkpointing": false, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 1024, "id2label": { "0": "Certain infectious or parasitic diseases", "1": "Developmental anaomalies", "2": "Diseases of the blood or blood forming organs", "3": "Diseases of the genitourinary system", "4": "Mental behavioural or neurodevelopmental disorders", "5": "Neoplasms", "6": "certain conditions originating in the perinatal period", "7": "conditions related to sexual health", "8": "diseases of the circulatroy system", "9": "diseases of the digestive system", "10": "diseases of the ear or mastoid process", "11": "diseases of the immune system", "12": "diseases of the musculoskeletal system or connective tissue", "13": "diseases of the nervous system", "14": "diseases of the respiratory system", "15": "diseases of the skin", "16": "diseases of the visual system", "17": "endocrine nutritional or metabolic diseases", "18": "pregnanacy childbirth or the puerperium", "19": "sleep-wake disorders" }, "initializer_range": 0.02, "intermediate_size": 4096, "label2id": { "Certain infectious or parasitic diseases": 0, "Developmental anaomalies": 1, "Diseases of the blood or blood forming organs": 2, "Diseases of the genitourinary system": 3, "Mental behavioural or neurodevelopmental disorders": 4, "Neoplasms": 5, "certain conditions originating in the perinatal period": 6, "conditions related to sexual health": 7, "diseases of the circulatroy system": 8, "diseases of the digestive system": 9, "diseases of the ear or mastoid process": 10, "diseases of the immune system": 11, "diseases of the musculoskeletal system or connective tissue": 12, "diseases of the nervous system": 13, "diseases of the respiratory system": 14, "diseases of the skin": 15, "diseases of the visual system": 16, "endocrine nutritional or metabolic diseases": 17, "pregnanacy childbirth or the puerperium": 18, "sleep-wake disorders": 19 }, "layer_norm_eps": 1e-12, "max_length": 128, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 16, "num_hidden_layers": 24, "pad_token_id": 0, "padding": "max_length", "pooler_fc_size": 768, "pooler_num_attention_heads": 12, "pooler_num_fc_layers": 3, "pooler_size_per_head": 128, "pooler_type": "first_token_transform", "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.15.0", "type_vocab_size": 2, "use_cache": true, "vocab_size": 28996}123version https://git-lfs.github.com/spec/v1oid sha256:b907498c548d991c11749136e18f3dbd1be694116226a098756008ad75c11a89size 1334560749123version https://git-lfs.github.com/spec/v1oid sha256:3febec0bca076249a423a66f54312182ec8b9ad8a95afe5765a7bf65442d2151size 43841{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}1{"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "AutoTrain", "tokenizer_class": "BertTokenizer"}.gitattributes+3
README.mdAdded+52
config.jsonAdded+80
pytorch_model.binAdded+3
sample_input.pklAdded+3
special_tokens_map.jsonAdded+1
tokenizer.jsonAdded
tokenizer_config.jsonAdded+1
vocab.txtAdded