Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run Theoreticallyhugo/distilbert_B001 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/Theoreticallyhugo/distilbert_B001. 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/Theoreticallyhugo/distilbert_B001 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 Theoreticallyhugo/distilbert_B001 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Theoreticallyhugo/distilbert_B001 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Theoreticallyhugo/distilbert_B001")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Theoreticallyhugo/distilbert_B001") model = AutoModelForSequenceClassification.from_pretrained("Theoreticallyhugo/distilbert_B001", device_map="auto") - Notebooks
- Google Colab
- Kaggle
trainer: training complete at 2024-02-06 16:06:05.680434.
Browse filesFiles changed (8)
- README.mdAdded+78
- config.jsonAdded+47
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+55
- training_args.binAdded+3
- vocab.txtAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778---license: apache-2.0base_model: distilbert-base-uncasedtags:- generated_from_trainerdatasets:- essay_datasetmetrics:- f1model-index:- name: distilbert_B001 results: - task: name: Text Classification type: text-classification dataset: name: essay_dataset type: essay_dataset config: mittelwerte split: test args: mittelwerte metrics: - name: F1 type: f1 value: 0.40657710846809847---
<!-- 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. -->
# distilbert_B001
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the essay_dataset dataset.It achieves the following results on the evaluation set:- Loss: 0.8633- F1: 0.4066
## 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: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 4
### Training results
| Training Loss | Epoch | Step | Validation Loss | F1 ||:-------------:|:-----:|:----:|:---------------:|:------:|| No log | 1.0 | 42 | 1.1517 | 0.2990 || No log | 2.0 | 84 | 0.9337 | 0.2775 || No log | 3.0 | 126 | 0.8388 | 0.3911 || No log | 4.0 | 168 | 0.8633 | 0.4066 |
### Framework versions
- Transformers 4.37.1- Pytorch 2.1.2+cu121- Datasets 2.16.1- Tokenizers 0.15.11234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ "_name_or_path": "distilbert-base-uncased", "activation": "gelu", "architectures": [ "DistilBertForSequenceClassification" ], "attention_dropout": 0.1, "dim": 768, "dropout": 0.1, "hidden_dim": 3072, "id2label": { "1": "1.0", "2": "1.5", "3": "2.0", "4": "2.5", "5": "3.0", "6": "3.5", "7": "4.0", "8": "4.5", "9": "5.0" }, "initializer_range": 0.02, "label2id": { "1.0": 1, "1.5": 2, "2.0": 3, "2.5": 4, "3.0": 5, "3.5": 6, "4.0": 7, "4.5": 8, "5.0": 9 }, "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.37.1", "vocab_size": 30522}123version https://git-lfs.github.com/spec/v1oid sha256:f5263442e71d9820c2b0769f1caed5eab808a8a0b5d9ab48f90ad92e6ae4c404size 2678541001234567{ "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": true, "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:24dba53c95d21048c5f0fdbdc400a07e2ba2960ad27cc926913ebeb3a25ad58esize 4664README.mdAdded+78
config.jsonAdded+47
model.safetensorsAdded+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+55
training_args.binAdded+3
vocab.txtAdded