Text Classification
Transformers
PyTorch
TensorBoard
Safetensors
bert
Generated from Trainer
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run jysh1023/tiny-bert-sst2-distilled 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/jysh1023/tiny-bert-sst2-distilled. 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/jysh1023/tiny-bert-sst2-distilled 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 jysh1023/tiny-bert-sst2-distilled with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jysh1023/tiny-bert-sst2-distilled with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jysh1023/tiny-bert-sst2-distilled")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("jysh1023/tiny-bert-sst2-distilled") model = AutoModelForSequenceClassification.from_pretrained("jysh1023/tiny-bert-sst2-distilled", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse filesFiles changed (26)
- logs/events.out.tfevents.1699950902.45c71320b2c6.349.11+2-2
- logs/events.out.tfevents.1699951173.45c71320b2c6.349.12Added+3
- model.safetensors+1-1
- run-10/checkpoint-1581/config.jsonAdded+34
- run-10/checkpoint-1581/model.safetensorsAdded+3
- run-10/checkpoint-1581/optimizer.ptAdded+3
- run-10/checkpoint-1581/rng_state.pthAdded+3
- run-10/checkpoint-1581/scheduler.ptAdded+3
- run-10/checkpoint-1581/special_tokens_map.jsonAdded+7
- run-10/checkpoint-1581/tokenizer.jsonAdded
- run-10/checkpoint-1581/tokenizer_config.jsonAdded+57
- run-10/checkpoint-1581/trainer_state.jsonAdded+69
- run-10/checkpoint-1581/training_args.binAdded+3
- run-10/checkpoint-1581/vocab.txtAdded
- run-11/checkpoint-527/config.jsonAdded+34
- run-11/checkpoint-527/model.safetensorsAdded+3
- run-11/checkpoint-527/optimizer.ptAdded+3
- run-11/checkpoint-527/rng_state.pthAdded+3
- run-11/checkpoint-527/scheduler.ptAdded+3
- run-11/checkpoint-527/special_tokens_map.jsonAdded+7
- run-11/checkpoint-527/tokenizer.jsonAdded
- run-11/checkpoint-527/tokenizer_config.jsonAdded+57
- run-11/checkpoint-527/trainer_state.jsonAdded+39
- run-11/checkpoint-527/training_args.binAdded+3
- run-11/checkpoint-527/vocab.txtAdded
- training_args.bin+1-1
123version https://git-lfs.github.com/spec/v1oid sha256:d14f26098a9f85f7f800ec22c42992ffdc5d1469fcf239794ce05a37d25514casize 5254123version https://git-lfs.github.com/spec/v1oid sha256:54676538fe2daaef98934d58299c690b1c77aa61ef94e9b333484d9b4f81d238size 6214
123version https://git-lfs.github.com/spec/v1oid sha256:5c9de9d8d7a16d0b00f679f5e9f3b6b72424030ad3a747e7eb4bc85402d322ddsize 4774123version https://git-lfs.github.com/spec/v1oid sha256:561f4ea6e4038a507c577b59360561e2cf4cb75aed13d0164a4dbfae6f124b3dsize 17549312123version https://git-lfs.github.com/spec/v1oid sha256:d29a20baa1b804ed752cb770dafddf31466d5f2d1d8e95037775fd9ca7f9d73dsize 17549312
12345678910111213141516171819202122232425262728293031323334{ "_name_or_path": "google/bert_uncased_L-2_H-128_A-2", "architectures": [ "BertForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 128, "id2label": { "0": "negative", "1": "positive" }, "initializer_range": 0.02, "intermediate_size": 512, "label2id": { "negative": "0", "positive": "1" }, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 2, "num_hidden_layers": 2, "pad_token_id": 0, "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.35.0", "type_vocab_size": 2, "use_cache": true, "vocab_size": 30522}123version https://git-lfs.github.com/spec/v1oid sha256:56bc32a1abc46a1d91df71a9c59db5c748c53777fac3397ee32f4d20521931b4size 17549312123version https://git-lfs.github.com/spec/v1oid sha256:c210e4f591bb5d708ab545cc6fd3955d52c7303353938e91c6f657aaa66d8fc5size 35123898123version https://git-lfs.github.com/spec/v1oid sha256:0145a794c4550fd779295bb332661a545e0c28f08ca5060bf05d2337c4c7b4d2size 14308123version https://git-lfs.github.com/spec/v1oid sha256:69e9192c1e81322aab2cb11dd7fba5d86dcf373eec20e89d385db0c8ca135abesize 10641234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ "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_basic_tokenize": true, "do_lower_case": true, "mask_token": "[MASK]", "model_max_length": 512, "never_split": null, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "BertTokenizer", "unk_token": "[UNK]"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ "best_metric": 0.8222477064220184, "best_model_checkpoint": "tiny-bert-sst2-distilled/run-10/checkpoint-527", "epoch": 3.0, "eval_steps": 500, "global_step": 1581, "is_hyper_param_search": true, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 1.0, "learning_rate": 0.0005718052284282855, "loss": 0.8086, "step": 527 }, { "epoch": 1.0, "eval_accuracy": 0.8222477064220184, "eval_loss": 0.9947215914726257, "eval_runtime": 0.9316, "eval_samples_per_second": 935.976, "eval_steps_per_second": 7.514, "step": 527 }, { "epoch": 2.0, "learning_rate": 0.000508271314158476, "loss": 0.3833, "step": 1054 }, { "epoch": 2.0, "eval_accuracy": 0.8027522935779816, "eval_loss": 1.1898581981658936, "eval_runtime": 0.853, "eval_samples_per_second": 1022.311, "eval_steps_per_second": 8.207, "step": 1054 }, { "epoch": 3.0, "learning_rate": 0.0004447373998886664, "loss": 0.2601, "step": 1581 }, { "epoch": 3.0, "eval_accuracy": 0.8084862385321101, "eval_loss": 1.3631923198699951, "eval_runtime": 0.8565, "eval_samples_per_second": 1018.104, "eval_steps_per_second": 8.173, "step": 1581 } ], "logging_steps": 500, "max_steps": 5270, "num_train_epochs": 10, "save_steps": 500, "total_flos": 24280106603460.0, "trial_name": null, "trial_params": { "alpha": 0.6602865616625522, "learning_rate": 0.0006353391426980949, "num_train_epochs": 10, "temperature": 22 }}123version https://git-lfs.github.com/spec/v1oid sha256:9521568b4c35ddb8f99dab3e9093ba9e261d765428d86fec84d91d6bf0f03abesize 466412345678910111213141516171819202122232425262728293031323334{ "_name_or_path": "google/bert_uncased_L-2_H-128_A-2", "architectures": [ "BertForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 128, "id2label": { "0": "negative", "1": "positive" }, "initializer_range": 0.02, "intermediate_size": 512, "label2id": { "negative": "0", "positive": "1" }, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 2, "num_hidden_layers": 2, "pad_token_id": 0, "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.35.0", "type_vocab_size": 2, "use_cache": true, "vocab_size": 30522}123version https://git-lfs.github.com/spec/v1oid sha256:d29a20baa1b804ed752cb770dafddf31466d5f2d1d8e95037775fd9ca7f9d73dsize 17549312123version https://git-lfs.github.com/spec/v1oid sha256:dce4058cd056775c1b500bfa78fae435365fe729c5c724d20c341e01c0d14174size 35123898123version https://git-lfs.github.com/spec/v1oid sha256:ababcbf30496eb4976cce44a5faf0cf605467f452ba655745eb60d884a0042d8size 14308123version https://git-lfs.github.com/spec/v1oid sha256:5e741afddc5e9c942ed4827591a2caee5680804c82b2b7e1b294b71c1577e958size 10641234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ "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_basic_tokenize": true, "do_lower_case": true, "mask_token": "[MASK]", "model_max_length": 512, "never_split": null, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "BertTokenizer", "unk_token": "[UNK]"}123456789101112131415161718192021222324252627282930313233343536373839{ "best_metric": 0.8084862385321101, "best_model_checkpoint": "tiny-bert-sst2-distilled/run-11/checkpoint-527", "epoch": 1.0, "eval_steps": 500, "global_step": 527, "is_hyper_param_search": true, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 1.0, "learning_rate": 8.853375939048859e-05, "loss": 1.4024, "step": 527 }, { "epoch": 1.0, "eval_accuracy": 0.8084862385321101, "eval_loss": 1.1691620349884033, "eval_runtime": 0.8297, "eval_samples_per_second": 1050.926, "eval_steps_per_second": 8.436, "step": 527 } ], "logging_steps": 500, "max_steps": 5270, "num_train_epochs": 10, "save_steps": 500, "total_flos": 8117476690260.0, "trial_name": null, "trial_params": { "alpha": 0.5936303845454114, "learning_rate": 9.835010792324513e-05, "num_train_epochs": 10, "temperature": 30 }}123version https://git-lfs.github.com/spec/v1oid sha256:37d4db04d994c090d24d490a7da5025521a5238995701eaf986b4a3ce60b6d24size 4664123version https://git-lfs.github.com/spec/v1oid sha256:9521568b4c35ddb8f99dab3e9093ba9e261d765428d86fec84d91d6bf0f03abesize 4664123version https://git-lfs.github.com/spec/v1oid sha256:37d4db04d994c090d24d490a7da5025521a5238995701eaf986b4a3ce60b6d24size 4664
logs/events.out.tfevents.1699950902.45c71320b2c6.349.11+2-2
logs/events.out.tfevents.1699951173.45c71320b2c6.349.12Added+3
model.safetensors+1-1
run-10/checkpoint-1581/config.jsonAdded+34
run-10/checkpoint-1581/model.safetensorsAdded+3
run-10/checkpoint-1581/optimizer.ptAdded+3
run-10/checkpoint-1581/rng_state.pthAdded+3
run-10/checkpoint-1581/scheduler.ptAdded+3
run-10/checkpoint-1581/special_tokens_map.jsonAdded+7
run-10/checkpoint-1581/tokenizer.jsonAdded
run-10/checkpoint-1581/tokenizer_config.jsonAdded+57
run-10/checkpoint-1581/trainer_state.jsonAdded+69
run-10/checkpoint-1581/training_args.binAdded+3
run-10/checkpoint-1581/vocab.txtAdded
run-11/checkpoint-527/config.jsonAdded+34
run-11/checkpoint-527/model.safetensorsAdded+3
run-11/checkpoint-527/optimizer.ptAdded+3
run-11/checkpoint-527/rng_state.pthAdded+3
run-11/checkpoint-527/scheduler.ptAdded+3
run-11/checkpoint-527/special_tokens_map.jsonAdded+7
run-11/checkpoint-527/tokenizer.jsonAdded
run-11/checkpoint-527/tokenizer_config.jsonAdded+57
run-11/checkpoint-527/trainer_state.jsonAdded+39
run-11/checkpoint-527/training_args.binAdded+3
run-11/checkpoint-527/vocab.txtAdded
training_args.bin+1-1