Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run King-8/math-messenger 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/King-8/math-messenger. 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/King-8/math-messenger 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 King-8/math-messenger with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use King-8/math-messenger with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="King-8/math-messenger")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("King-8/math-messenger") model = AutoModelForSequenceClassification.from_pretrained("King-8/math-messenger", device_map="auto") - Notebooks
- Google Colab
- Kaggle
King-8/math-messenger
Browse filesFiles changed (8)
- README.mdAdded+65
- config.jsonAdded+42
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+56
- training_args.binAdded+3
- vocab.txtAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465---library_name: transformerslicense: apache-2.0base_model: distilbert-base-uncasedtags:- generated_from_trainermetrics:- accuracymodel-index:- name: math_messenger 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. -->
# math_messenger
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.2436- Accuracy: 0.9357
## 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: 8- eval_batch_size: 8- seed: 42- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- num_epochs: 4- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| 0.1273 | 1.0 | 140 | 0.2788 | 0.9286 || 0.102 | 2.0 | 280 | 0.2971 | 0.9286 || 0.0307 | 3.0 | 420 | 0.2510 | 0.9357 || 0.006 | 4.0 | 560 | 0.2436 | 0.9357 |
### Framework versions
- Transformers 4.53.3- Pytorch 2.6.0+cu124- Datasets 4.0.0- Tokenizers 0.21.2123456789101112131415161718192021222324252627282930313233343536373839404142{ "activation": "gelu", "architectures": [ "DistilBertForSequenceClassification" ], "attention_dropout": 0.1, "dim": 768, "dropout": 0.1, "hidden_dim": 3072, "id2label": { "0": "ACKNOWLEDGE EMOTIONS IN MATH LEARNING", "1": "ACKNOWLEDGE REAL-WORLD CONTEXT", "2": "AFFIRM THE VALUE OF MISTAKES", "3": "ELEVATE STUDENT AGENCY", "4": "ENCOURAGE HELP-SEEKING", "5": "MAKE MATH RELEVANT", "6": "REFRAME STRUGGLE AND CAPABILITY" }, "initializer_range": 0.02, "label2id": { "ACKNOWLEDGE EMOTIONS IN MATH LEARNING": 0, "ACKNOWLEDGE REAL-WORLD CONTEXT": 1, "AFFIRM THE VALUE OF MISTAKES": 2, "ELEVATE STUDENT AGENCY": 3, "ENCOURAGE HELP-SEEKING": 4, "MAKE MATH RELEVANT": 5, "REFRAME STRUGGLE AND CAPABILITY": 6 }, "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.53.3", "vocab_size": 30522}123version https://git-lfs.github.com/spec/v1oid sha256:b2bdb15ecccdf8ac239b3800afeea3ed18d5cfcb07feae7a8114d932547abcb9size 2678479481234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ "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, "extra_special_tokens": {}, "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:96cf8dbda73f78f8a4ea20fd70fe74814cdc7099278a6bd8cca67b31e79a2b56size 5304README.mdAdded+65
config.jsonAdded+42
model.safetensorsAdded+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+56
training_args.binAdded+3
vocab.txtAdded