Text Classification
Transformers
TensorBoard
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run Sharpaxis/News_classification_distilbert 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/Sharpaxis/News_classification_distilbert. 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/Sharpaxis/News_classification_distilbert 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 Sharpaxis/News_classification_distilbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sharpaxis/News_classification_distilbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Sharpaxis/News_classification_distilbert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Sharpaxis/News_classification_distilbert") model = AutoModelForSequenceClassification.from_pretrained("Sharpaxis/News_classification_distilbert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
DONE
Browse filesFiles changed (9)
- README.mdAdded+65
- config.jsonAdded+25
- model.safetensorsAdded+3
- runs/Dec06_17-34-06_b8e3dcb04ed1/events.out.tfevents.1733506449.b8e3dcb04ed1.23.0Added+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+55
- training_args.binAdded+3
- vocab.txtAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465---library_name: transformerslicense: apache-2.0base_model: distilbert-base-uncasedtags:- generated_from_trainermetrics:- f1model-index:- name: News_classification_distilbert results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# News_classification_distilbert
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.1243- F1: 0.9757- Acc: 0.9765
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 2e-05- train_batch_size: 16- eval_batch_size: 16- seed: 42- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- lr_scheduler_warmup_steps: 400- num_epochs: 3
### Training results
| Training Loss | Epoch | Step | Validation Loss | F1 | Acc ||:-------------:|:-----:|:-----:|:---------------:|:------:|:------:|| 0.1211 | 1.0 | 3868 | 0.0839 | 0.9736 | 0.9746 || 0.0506 | 2.0 | 7736 | 0.0941 | 0.9746 | 0.9756 || 0.0227 | 3.0 | 11604 | 0.1243 | 0.9757 | 0.9765 |
### Framework versions
- Transformers 4.46.3- Pytorch 2.4.0- Datasets 3.1.0- Tokenizers 0.20.312345678910111213141516171819202122232425{ "_name_or_path": "distilbert-base-uncased", "activation": "gelu", "architectures": [ "DistilBertForSequenceClassification" ], "attention_dropout": 0.1, "dim": 768, "dropout": 0.1, "hidden_dim": 3072, "initializer_range": 0.02, "max_position_embeddings": 512, "model_type": "distilbert", "n_heads": 12, "n_layers": 6, "pad_token_id": 0, "problem_type": "single_label_classification", "qa_dropout": 0.1, "seq_classif_dropout": 0.2, "sinusoidal_pos_embds": false, "tie_weights_": true, "torch_dtype": "float32", "transformers_version": "4.46.3", "vocab_size": 30522}123version https://git-lfs.github.com/spec/v1oid sha256:5e2c77955968595ea78a35e22e59611174278c0148e54e43e0b53844d1ec2bf8size 267832560123version https://git-lfs.github.com/spec/v1oid sha256:3394f10324b5793ea68d55cfa5415fdfdd2b0a30dba1fab9572fb0b524358dabsize 70581234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ "added_tokens_decoder": { "0": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "100": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "101": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "102": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "103": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "clean_up_tokenization_spaces": false, "cls_token": "[CLS]", "do_lower_case": true, "mask_token": "[MASK]", "model_max_length": 512, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "DistilBertTokenizer", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:796cd83fa20e93e2e70a5c9357581b609923e767ef301656e6557837e61de4easize 5304README.mdAdded+65
config.jsonAdded+25
model.safetensorsAdded+3
runs/Dec06_17-34-06_b8e3dcb04ed1/events.out.tfevents.1733506449.b8e3dcb04ed1.23.0Added+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+55
training_args.binAdded+3
vocab.txtAdded