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 2
Browse filesFiles changed (13)
- logs/events.out.tfevents.1699956253.45c71320b2c6.349.43+2-2
- model.safetensors+1-1
- run-42/checkpoint-1054/config.jsonAdded+34
- run-42/checkpoint-1054/model.safetensorsAdded+3
- run-42/checkpoint-1054/optimizer.ptAdded+3
- run-42/checkpoint-1054/rng_state.pthAdded+3
- run-42/checkpoint-1054/scheduler.ptAdded+3
- run-42/checkpoint-1054/special_tokens_map.jsonAdded+7
- run-42/checkpoint-1054/tokenizer.jsonAdded
- run-42/checkpoint-1054/tokenizer_config.jsonAdded+57
- run-42/checkpoint-1054/trainer_state.jsonAdded+54
- run-42/checkpoint-1054/training_args.binAdded+3
- run-42/checkpoint-1054/vocab.txtAdded
123version https://git-lfs.github.com/spec/v1oid sha256:84965e4d34faa0799b2e63630dc06f5c5bf5403dc82ac6dedb6221007a5e2741size 4774123version https://git-lfs.github.com/spec/v1oid sha256:e1f0ddb44870e4dea41b7a846799e0ece81dba54fd3d0c5fe09bd48064176715size 5608
123version https://git-lfs.github.com/spec/v1oid sha256:89e49489b824dd7b6cf9511d9a2348007f84161cdcb1245df2ce6ce441d3e515size 17549312123version https://git-lfs.github.com/spec/v1oid sha256:f40c79042ce1476bd6f8d9efad102eea6921a0a932b7d316c08ece992a668d5esize 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:f40c79042ce1476bd6f8d9efad102eea6921a0a932b7d316c08ece992a668d5esize 17549312123version https://git-lfs.github.com/spec/v1oid sha256:939c127aebb645f03f20a777f00cdd6006b722f063d15427f6f67ccd89524b51size 35123898123version https://git-lfs.github.com/spec/v1oid sha256:57fdff683e14337980bac7da3d561a7fdab384be06942739a4198db7026ad4c6size 14308123version https://git-lfs.github.com/spec/v1oid sha256:16773587453ea0a1d634e509d1dda8360ff6f4c68034751e69a26381621b5f1fsize 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]"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ "best_metric": 0.8279816513761468, "best_model_checkpoint": "tiny-bert-sst2-distilled/run-42/checkpoint-1054", "epoch": 2.0, "eval_steps": 500, "global_step": 1054, "is_hyper_param_search": true, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 1.0, "learning_rate": 0.00015339832857912288, "loss": 1.1679, "step": 527 }, { "epoch": 1.0, "eval_accuracy": 0.8188073394495413, "eval_loss": 1.2245765924453735, "eval_runtime": 0.8637, "eval_samples_per_second": 1009.581, "eval_steps_per_second": 8.104, "step": 527 }, { "epoch": 2.0, "learning_rate": 0.0, "loss": 0.5682, "step": 1054 }, { "epoch": 2.0, "eval_accuracy": 0.8279816513761468, "eval_loss": 1.2906067371368408, "eval_runtime": 0.9254, "eval_samples_per_second": 942.296, "eval_steps_per_second": 7.564, "step": 1054 } ], "logging_steps": 500, "max_steps": 1054, "num_train_epochs": 2, "save_steps": 500, "total_flos": 16194449161860.0, "trial_name": null, "trial_params": { "alpha": 0.511517089038918, "learning_rate": 0.00030679665715824576, "num_train_epochs": 2, "temperature": 26 }}123version https://git-lfs.github.com/spec/v1oid sha256:7eb16158636be361a55821f08ad06a61c87754d010d0103c07bcd03f5bdb2cc6size 4664logs/events.out.tfevents.1699956253.45c71320b2c6.349.43+2-2
model.safetensors+1-1
run-42/checkpoint-1054/config.jsonAdded+34
run-42/checkpoint-1054/model.safetensorsAdded+3
run-42/checkpoint-1054/optimizer.ptAdded+3
run-42/checkpoint-1054/rng_state.pthAdded+3
run-42/checkpoint-1054/scheduler.ptAdded+3
run-42/checkpoint-1054/special_tokens_map.jsonAdded+7
run-42/checkpoint-1054/tokenizer.jsonAdded
run-42/checkpoint-1054/tokenizer_config.jsonAdded+57
run-42/checkpoint-1054/trainer_state.jsonAdded+54
run-42/checkpoint-1054/training_args.binAdded+3
run-42/checkpoint-1054/vocab.txtAdded