Text Classification
Transformers
TensorBoard
Safetensors
bert
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run Silicon23/BERTForDetectingDepression-Twitter2015 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/Silicon23/BERTForDetectingDepression-Twitter2015. 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/Silicon23/BERTForDetectingDepression-Twitter2015 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 Silicon23/BERTForDetectingDepression-Twitter2015 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Silicon23/BERTForDetectingDepression-Twitter2015 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Silicon23/BERTForDetectingDepression-Twitter2015")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Silicon23/BERTForDetectingDepression-Twitter2015") model = AutoModelForSequenceClassification.from_pretrained("Silicon23/BERTForDetectingDepression-Twitter2015", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse filesFiles changed (19)
- config.json+2-2
- model.safetensors+2-2
- run-0/checkpoint-46/config.jsonAdded+27
- run-0/checkpoint-46/model.safetensorsAdded+3
- run-0/checkpoint-46/optimizer.ptAdded+3
- run-0/checkpoint-46/rng_state.pthAdded+3
- run-0/checkpoint-46/scheduler.ptAdded+3
- run-0/checkpoint-46/special_tokens_map.jsonAdded+7
- run-0/checkpoint-46/tokenizer.jsonAdded
- run-0/checkpoint-46/tokenizer_config.jsonAdded+55
- run-0/checkpoint-46/trainer_state.jsonAdded+47
- run-0/checkpoint-46/training_args.binAdded+3
- run-0/checkpoint-46/vocab.txtAdded
- runs/Aug02_03-09-56_8953887c6028/events.out.tfevents.1722568202.8953887c6028.1235.0Added+3
- special_tokens_map.json+5-35
- tokenizer.json
- tokenizer_config.json+1-5
- training_args.bin+1-1
- vocab.txt
1234517 unmodified lines2324252627{"_name_or_path": "AIMH/mental-bert-base-cased","architectures": ["BertForSequenceClassification"],17 unmodified lines"transformers_version": "4.42.4","type_vocab_size": 2,"use_cache": true,"vocab_size": 28996}1234517 unmodified lines2324252627{"_name_or_path": "google-bert/bert-base-uncased","architectures": ["BertForSequenceClassification"],17 unmodified lines"transformers_version": "4.42.4","type_vocab_size": 2,"use_cache": true,"vocab_size": 30522}
123version https://git-lfs.github.com/spec/v1oid sha256:a6f36a5f874a82759f6b89266e4e3baa1c4e16a019f7f09b71e4840345ab0dddsize 433270768123version https://git-lfs.github.com/spec/v1oid sha256:f0950bccb6e8f42ff8aaf183690786f4f587f3e867be81f34f2e747546f1f694size 437958648
123456789101112131415161718192021222324252627{ "_name_or_path": "google-bert/bert-base-uncased", "architectures": [ "BertForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "gradient_checkpointing": false, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.42.4", "type_vocab_size": 2, "use_cache": true, "vocab_size": 30522}123version https://git-lfs.github.com/spec/v1oid sha256:f0950bccb6e8f42ff8aaf183690786f4f587f3e867be81f34f2e747546f1f694size 437958648123version https://git-lfs.github.com/spec/v1oid sha256:abdfe7110253070f7f5e1984dd1a49bcd292c1ab5c7747baac37fd4bae796626size 876038394123version https://git-lfs.github.com/spec/v1oid sha256:43d1512b16d57db34ec8742a43cd02405bf9c7d441cb567d5929d8779b74313csize 14308123version https://git-lfs.github.com/spec/v1oid sha256:ce398d910df73998dec0494872cf759b8cfcd41008fb50d6308aa505b6a2e2fasize 10641234567{ "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": "BertTokenizer", "unk_token": "[UNK]"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ "best_metric": 0.6187845303867403, "best_model_checkpoint": "BERTForDetectingDepression-Twitter2015/run-0/checkpoint-46", "epoch": 1.0, "eval_steps": 500, "global_step": 46, "is_hyper_param_search": true, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 1.0, "eval_accuracy": 0.6187845303867403, "eval_loss": 0.677045464515686, "eval_runtime": 1.5174, "eval_samples_per_second": 1073.531, "eval_steps_per_second": 67.219, "step": 46 } ], "logging_steps": 500, "max_steps": 138, "num_input_tokens_seen": 0, "num_train_epochs": 3, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": false }, "attributes": {} } }, "total_flos": 0, "train_batch_size": 32, "trial_name": null, "trial_params": { "learning_rate": 2.2663564697926915e-06, "num_train_epochs": 3, "per_device_train_batch_size": 32, "seed": 14 }}123version https://git-lfs.github.com/spec/v1oid sha256:837929207f0b87e3e725511aaedbea183a5274d57f3b1b522598d3b04a5f07f3size 5176123version https://git-lfs.github.com/spec/v1oid sha256:6ef3ec9fa9cc2c9c714f94e2673fe1a3e55a4b9e6069e09dc44a5b0409760475size 555812345678910111213141516171819202122232425262728293031323334353637{"cls_token": {"content": "[CLS]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},"mask_token": {"content": "[MASK]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},"pad_token": {"content": "[PAD]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},"sep_token": {"content": "[SEP]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},"unk_token": {"content": "[UNK]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false}}1234567{"cls_token": "[CLS]","mask_token": "[MASK]","pad_token": "[PAD]","sep_token": "[SEP]","unk_token": "[UNK]"}
42 unmodified lines434445464748495051525354555657585942 unmodified lines},"clean_up_tokenization_spaces": true,"cls_token": "[CLS]","do_lower_case": false,"mask_token": "[MASK]","max_length": 512,"model_max_length": 512,"pad_token": "[PAD]","sep_token": "[SEP]","stride": 0,"strip_accents": null,"tokenize_chinese_chars": true,"tokenizer_class": "BertTokenizer","truncation_side": "right","truncation_strategy": "longest_first","unk_token": "[UNK]"}42 unmodified lines4344454647484950515253545542 unmodified lines},"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": "BertTokenizer","unk_token": "[UNK]"}
123version https://git-lfs.github.com/spec/v1oid sha256:99e974703738cd1f415a4f4efc92c7381dd4a4a9a0bb16c4bf1c81a64e05f6b4size 5176123version https://git-lfs.github.com/spec/v1oid sha256:837929207f0b87e3e725511aaedbea183a5274d57f3b1b522598d3b04a5f07f3size 5176
config.json+2-2
model.safetensors+2-2
run-0/checkpoint-46/config.jsonAdded+27
run-0/checkpoint-46/model.safetensorsAdded+3
run-0/checkpoint-46/optimizer.ptAdded+3
run-0/checkpoint-46/rng_state.pthAdded+3
run-0/checkpoint-46/scheduler.ptAdded+3
run-0/checkpoint-46/special_tokens_map.jsonAdded+7
run-0/checkpoint-46/tokenizer.jsonAdded
run-0/checkpoint-46/tokenizer_config.jsonAdded+55
run-0/checkpoint-46/trainer_state.jsonAdded+47
run-0/checkpoint-46/training_args.binAdded+3
run-0/checkpoint-46/vocab.txtAdded
runs/Aug02_03-09-56_8953887c6028/events.out.tfevents.1722568202.8953887c6028.1235.0Added+3
special_tokens_map.json+5-35
tokenizer.json
tokenizer_config.json+1-5
training_args.bin+1-1
vocab.txt