Text Classification
Transformers
Safetensors
code
bert
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run HuggingFaceTB/stack-edu-classifier-rust 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/HuggingFaceTB/stack-edu-classifier-rust. 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/HuggingFaceTB/stack-edu-classifier-rust 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 HuggingFaceTB/stack-edu-classifier-rust with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HuggingFaceTB/stack-edu-classifier-rust with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="HuggingFaceTB/stack-edu-classifier-rust")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/stack-edu-classifier-rust") model = AutoModelForSequenceClassification.from_pretrained("HuggingFaceTB/stack-edu-classifier-rust", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (10)
- README.mdAdded+83
- final/config.jsonAdded+32
- final/merges.txtAdded
- final/model.safetensorsAdded+3
- final/special_tokens_map.jsonAdded+45
- final/tokenizer.jsonAdded
- final/tokenizer_config.jsonAdded+186
- final/training_args.binAdded+3
- final/vocab.jsonAdded
- model.safetensors+1-1
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283---base_model: bigcode/starencodertags:- generated_from_trainermetrics:- precision- recall- accuracymodel-index:- name: stack-edu-classifier-rust 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. -->
# stack-edu-classifier-rust
This model is a fine-tuned version of [bigcode/starencoder](https://huggingface.co/bigcode/starencoder) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.4309- Precision: 0.4200- Recall: 0.3245- F1 Macro: 0.3364- Accuracy: 0.5715- F1 Binary Minimum3: 0.6938
## 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: 0.0003- train_batch_size: 64- eval_batch_size: 256- seed: 0- distributed_type: multi-GPU- num_devices: 2- total_train_batch_size: 128- total_eval_batch_size: 512- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- lr_scheduler_warmup_steps: 200- num_epochs: 20
### Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 Macro | Accuracy | F1 Binary Minimum3 ||:-------------:|:-------:|:-----:|:---------------:|:---------:|:------:|:--------:|:--------:|:------------------:|| No log | 0 | 0 | 6.3938 | 0.0009 | 0.1667 | 0.0018 | 0.0054 | 0 || 0.4784 | 1.4535 | 1000 | 0.4524 | 0.4359 | 0.3052 | 0.3115 | 0.5596 | 0.6790 || 0.4553 | 2.9070 | 2000 | 0.4622 | 0.4179 | 0.3081 | 0.3193 | 0.5299 | 0.7012 || 0.4397 | 4.3605 | 3000 | 0.4428 | 0.4256 | 0.3126 | 0.3225 | 0.5646 | 0.6890 || 0.4463 | 5.8140 | 4000 | 0.4417 | 0.4252 | 0.3155 | 0.3242 | 0.5667 | 0.6850 || 0.4305 | 7.2674 | 5000 | 0.4419 | 0.4416 | 0.3232 | 0.3397 | 0.5488 | 0.7001 || 0.4499 | 8.7209 | 6000 | 0.4361 | 0.4250 | 0.3185 | 0.3282 | 0.5682 | 0.6878 || 0.4339 | 10.1744 | 7000 | 0.4351 | 0.4452 | 0.3258 | 0.3384 | 0.5711 | 0.6884 || 0.449 | 11.6279 | 8000 | 0.4386 | 0.4217 | 0.3180 | 0.3291 | 0.5718 | 0.6782 || 0.425 | 13.0814 | 9000 | 0.4360 | 0.4224 | 0.3213 | 0.3323 | 0.5737 | 0.6828 || 0.4434 | 14.5349 | 10000 | 0.4328 | 0.4376 | 0.3280 | 0.3436 | 0.5626 | 0.6957 || 0.4396 | 15.9884 | 11000 | 0.4347 | 0.4170 | 0.3243 | 0.3384 | 0.5576 | 0.6994 || 0.4207 | 17.4419 | 12000 | 0.4326 | 0.4181 | 0.3233 | 0.3365 | 0.5606 | 0.6996 || 0.4334 | 18.8953 | 13000 | 0.4309 | 0.4200 | 0.3245 | 0.3364 | 0.5715 | 0.6938 |
### Framework versions
- Transformers 4.43.4- Pytorch 2.4.0+cu121- Datasets 2.21.0- Tokenizers 0.19.11234567891011121314151617181920212223242526272829303132{ "_name_or_path": "bigcode/starencoder", "architectures": [ "BertForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": 0.0, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "id2label": { "0": "LABEL_0" }, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "LABEL_0": 0 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 1024, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 49152, "position_embedding_type": "absolute", "problem_type": "regression", "torch_dtype": "float32", "transformers_version": "4.43.4", "type_vocab_size": 2, "use_cache": true, "vocab_size": 49156}123version https://git-lfs.github.com/spec/v1oid sha256:753e710b9f36876b01550fa0ff83f2883fb9199d284946754978acb9cf8ad3b3size 496772092123456789101112131415161718192021222324252627282930313233343536373839404142434445{ "additional_special_tokens": [ "<|endoftext|>", "<fim_prefix>", "<fim_middle>", "<fim_suffix>", "<fim_pad>", "<filename>", "<gh_stars>", "<issue_start>", "<issue_comment>", "<issue_closed>", "<jupyter_start>", "<jupyter_text>", "<jupyter_code>", "<jupyter_output>", "<empty_output>", "<commit_before>", "<commit_msg>", "<commit_after>", "<reponame>" ], "bos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "<|endoftext|>", "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186{ "add_prefix_space": false, "added_tokens_decoder": { "0": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<fim_prefix>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "<fim_middle>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<fim_suffix>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "4": { "content": "<fim_pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "5": { "content": "<filename>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "6": { "content": "<gh_stars>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "7": { "content": "<issue_start>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "8": { "content": "<issue_comment>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "9": { "content": "<issue_closed>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "10": { "content": "<jupyter_start>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "11": { "content": "<jupyter_text>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "12": { "content": "<jupyter_code>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "13": { "content": "<jupyter_output>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "14": { "content": "<empty_output>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "15": { "content": "<commit_before>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "16": { "content": "<commit_msg>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "17": { "content": "<commit_after>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "18": { "content": "<reponame>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "additional_special_tokens": [ "<|endoftext|>", "<fim_prefix>", "<fim_middle>", "<fim_suffix>", "<fim_pad>", "<filename>", "<gh_stars>", "<issue_start>", "<issue_comment>", "<issue_closed>", "<jupyter_start>", "<jupyter_text>", "<jupyter_code>", "<jupyter_output>", "<empty_output>", "<commit_before>", "<commit_msg>", "<commit_after>", "<reponame>" ], "bos_token": "<|endoftext|>", "clean_up_tokenization_spaces": true, "eos_token": "<|endoftext|>", "model_max_length": 1024, "pad_token": "<|endoftext|>", "tokenizer_class": "GPT2Tokenizer", "unk_token": "<|endoftext|>", "vocab_size": 49152}123version https://git-lfs.github.com/spec/v1oid sha256:0d680fa5c08c4c690130d75fcb83b4d5ddac72b9e628c9ea4735aa26a0bc4cdfsize 53041223version https://git-lfs.github.com/spec/v1oid sha256:bc5de002685edeae67dc8fe65dc6f9d8a82a4254dd8d0a21e918463ed7c9929eoid sha256:753e710b9f36876b01550fa0ff83f2883fb9199d284946754978acb9cf8ad3b3size 496772092README.mdAdded+83
final/config.jsonAdded+32
final/merges.txtAdded
final/model.safetensorsAdded+3
final/special_tokens_map.jsonAdded+45
final/tokenizer.jsonAdded
final/tokenizer_config.jsonAdded+186
final/training_args.binAdded+3
final/vocab.jsonAdded
model.safetensors+1-1