Run this model with HF Jobs
Run karths/binary_classification_train_secu 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/karths/binary_classification_train_secu. 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/karths/binary_classification_train_secu 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 karths/binary_classification_train_secu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use karths/binary_classification_train_secu with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="karths/binary_classification_train_secu")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("karths/binary_classification_train_secu") model = AutoModelForSequenceClassification.from_pretrained("karths/binary_classification_train_secu", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse filesFiles changed (28)
- .gitattributes+4
- checkpoint-29290/config.jsonAdded+28
- checkpoint-29290/model.safetensorsAdded+3
- checkpoint-29290/optimizer.ptAdded+3
- checkpoint-29290/rng_state.pthAdded+3
- checkpoint-29290/scheduler.ptAdded+3
- checkpoint-29290/trainer_state.jsonAdded+367
- checkpoint-29290/training_args.binAdded+3
- classification_report.jsonAdded+1
- config.jsonAdded+28
- confusion_matrix.pngAdded
- detailed_confusion_matrix.pngAdded
- fold_results.jsonAdded+67
- metrics.jsonAdded+1
- metrics_all_fold.jsonAdded+44
- metrics_ci_bounds.jsonAdded+26
- metrics_mean.jsonAdded+8
- metrics_std.jsonAdded+8
- metrics_visualisation.pngAdded
- model.safetensorsAdded+3
- precision_recall_curve.pngAdded
- reduced_main_data.csvAdded+3
- roc_curve.pngAdded
- test_data_for_future_evaluation.csvAdded+3
- test_top_repo_data.csvAdded+3
- top_repo_data.csvAdded+3
- tracker_carbon_statistics.jsonAdded+33
- training_args.binAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353637383932 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textreduced_main_data.csv filter=lfs diff=lfs merge=lfs -texttest_data_for_future_evaluation.csv filter=lfs diff=lfs merge=lfs -texttest_top_repo_data.csv filter=lfs diff=lfs merge=lfs -texttop_repo_data.csv filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728{ "_name_or_path": "distilroberta-base", "architectures": [ "RobertaForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "roberta", "num_attention_heads": 12, "num_hidden_layers": 6, "pad_token_id": 1, "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.35.0", "type_vocab_size": 1, "use_cache": true, "vocab_size": 50265}123version https://git-lfs.github.com/spec/v1oid sha256:a204cb2ed2d838286975c12d7daff1cc3562a5dc95d8d4c6917a2fd61c670315size 328492280123version https://git-lfs.github.com/spec/v1oid sha256:b43ec79986d89b91c30c3e07657a8f516a0fd29e5ac8312f6aa92334c87e6357size 657047610123version https://git-lfs.github.com/spec/v1oid sha256:daf092c631eddba8393f1695b7fe64784aee19e1fc1e6b615904a935f648a667size 14244123version https://git-lfs.github.com/spec/v1oid sha256:b309840e94d9a97eda39ba112e4756b420477de1ffd3126674ea7369222044fasize 1064123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367{ "best_metric": null, "best_model_checkpoint": null, "epoch": 5.0, "eval_steps": 500, "global_step": 29290, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.09, "learning_rate": 4.9800000000000004e-05, "loss": 0.0133, "step": 500 }, { "epoch": 0.17, "learning_rate": 4.996339134609366e-05, "loss": 0.0228, "step": 1000 }, { "epoch": 0.26, "learning_rate": 4.985249132519566e-05, "loss": 0.0218, "step": 1500 }, { "epoch": 0.34, "learning_rate": 4.966762760626733e-05, "loss": 0.0226, "step": 2000 }, { "epoch": 0.43, "learning_rate": 4.9409939710148224e-05, "loss": 0.0242, "step": 2500 }, { "epoch": 0.51, "learning_rate": 4.9079161983362835e-05, "loss": 0.0263, "step": 3000 }, { "epoch": 0.6, "learning_rate": 4.867672207018106e-05, "loss": 0.029, "step": 3500 }, { "epoch": 0.68, "learning_rate": 4.8203817675244414e-05, "loss": 0.0297, "step": 4000 }, { "epoch": 0.77, "learning_rate": 4.76618562131017e-05, "loss": 0.029, "step": 4500 }, { "epoch": 0.85, "learning_rate": 4.7055020252691094e-05, "loss": 0.0306, "step": 5000 }, { "epoch": 0.94, "learning_rate": 4.6380242832979805e-05, "loss": 0.0313, "step": 5500 }, { "epoch": 1.02, "learning_rate": 4.5641835501722764e-05, "loss": 0.0259, "step": 6000 }, { "epoch": 1.11, "learning_rate": 4.484199583887917e-05, "loss": 0.0195, "step": 6500 }, { "epoch": 1.19, "learning_rate": 4.398310425366118e-05, "loss": 0.0225, "step": 7000 }, { "epoch": 1.28, "learning_rate": 4.306771690017899e-05, "loss": 0.0187, "step": 7500 }, { "epoch": 1.37, "learning_rate": 4.2100548160331335e-05, "loss": 0.0244, "step": 8000 }, { "epoch": 1.45, "learning_rate": 4.1080600968516616e-05, "loss": 0.0216, "step": 8500 }, { "epoch": 1.54, "learning_rate": 4.001279617165866e-05, "loss": 0.0247, "step": 9000 }, { "epoch": 1.62, "learning_rate": 3.890257905202517e-05, "loss": 0.025, "step": 9500 }, { "epoch": 1.71, "learning_rate": 3.774880507376146e-05, "loss": 0.0245, "step": 10000 }, { "epoch": 1.79, "learning_rate": 3.655708927484144e-05, "loss": 0.0312, "step": 10500 }, { "epoch": 1.88, "learning_rate": 3.5330978330177316e-05, "loss": 0.0252, "step": 11000 }, { "epoch": 1.96, "learning_rate": 3.407412127834942e-05, "loss": 0.0255, "step": 11500 }, { "epoch": 2.05, "learning_rate": 3.2790258661673314e-05, "loss": 0.0213, "step": 12000 }, { "epoch": 2.13, "learning_rate": 3.148321139394187e-05, "loss": 0.0235, "step": 12500 }, { "epoch": 2.22, "learning_rate": 3.0156869388973275e-05, "loss": 0.0227, "step": 13000 }, { "epoch": 2.3, "learning_rate": 2.8815179983807373e-05, "loss": 0.0201, "step": 13500 }, { "epoch": 2.39, "learning_rate": 2.746213619100438e-05, "loss": 0.0177, "step": 14000 }, { "epoch": 2.48, "learning_rate": 2.6101764815008288e-05, "loss": 0.021, "step": 14500 }, { "epoch": 2.56, "learning_rate": 2.4740842343999416e-05, "loss": 0.0199, "step": 15000 }, { "epoch": 2.65, "learning_rate": 2.3377965787034856e-05, "loss": 0.0193, "step": 15500 }, { "epoch": 2.73, "learning_rate": 2.2019916579053264e-05, "loss": 0.0194, "step": 16000 }, { "epoch": 2.82, "learning_rate": 2.0670736421154722e-05, "loss": 0.0217, "step": 16500 }, { "epoch": 2.9, "learning_rate": 1.9337097701276256e-05, "loss": 0.0195, "step": 17000 }, { "epoch": 2.99, "learning_rate": 1.8017625555614108e-05, "loss": 0.0192, "step": 17500 }, { "epoch": 3.07, "learning_rate": 1.6718933710332394e-05, "loss": 0.0167, "step": 18000 }, { "epoch": 3.16, "learning_rate": 1.544488721260973e-05, "loss": 0.0137, "step": 18500 }, { "epoch": 3.24, "learning_rate": 1.420173812196476e-05, "loss": 0.0139, "step": 19000 }, { "epoch": 3.33, "learning_rate": 1.2990597437888902e-05, "loss": 0.0139, "step": 19500 }, { "epoch": 3.41, "learning_rate": 1.1812737544610991e-05, "loss": 0.0127, "step": 20000 }, { "epoch": 3.5, "learning_rate": 1.0674124368506597e-05, "loss": 0.0138, "step": 20500 }, { "epoch": 3.58, "learning_rate": 9.578146545347833e-06, "loss": 0.0137, "step": 21000 }, { "epoch": 3.67, "learning_rate": 8.528065823492207e-06, "loss": 0.0139, "step": 21500 }, { "epoch": 3.76, "learning_rate": 7.527007356567281e-06, "loss": 0.0142, "step": 22000 }, { "epoch": 3.84, "learning_rate": 6.577950402675978e-06, "loss": 0.0113, "step": 22500 }, { "epoch": 3.93, "learning_rate": 5.683719457802727e-06, "loss": 0.0129, "step": 23000 }, { "epoch": 4.01, "learning_rate": 4.846975849808403e-06, "loss": 0.012, "step": 23500 }, { "epoch": 4.1, "learning_rate": 4.070209818031235e-06, "loss": 0.0091, "step": 24000 }, { "epoch": 4.18, "learning_rate": 3.355733102065542e-06, "loss": 0.0091, "step": 24500 }, { "epoch": 4.27, "learning_rate": 2.7056720617751495e-06, "loss": 0.0107, "step": 25000 }, { "epoch": 4.35, "learning_rate": 2.121961349016713e-06, "loss": 0.0125, "step": 25500 }, { "epoch": 4.44, "learning_rate": 1.6063381499069525e-06, "loss": 0.011, "step": 26000 }, { "epoch": 4.52, "learning_rate": 1.160337014769089e-06, "loss": 0.0093, "step": 26500 }, { "epoch": 4.61, "learning_rate": 7.852852911454378e-07, "loss": 0.0127, "step": 27000 }, { "epoch": 4.69, "learning_rate": 4.822991734677207e-07, "loss": 0.0101, "step": 27500 }, { "epoch": 4.78, "learning_rate": 2.52667105948437e-07, "loss": 0.0083, "step": 28000 }, { "epoch": 4.87, "learning_rate": 9.615235819493418e-08, "loss": 0.0098, "step": 28500 }, { "epoch": 4.95, "learning_rate": 1.3754150416017686e-08, "loss": 0.0105, "step": 29000 } ], "logging_steps": 500, "max_steps": 29290, "num_train_epochs": 5, "save_steps": 500, "total_flos": 2.4830219073675264e+17, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:4b261a4947ad4823a58993453644bce56836de5ccfaededf844a110674b1b4c0size 46641{"0": {"precision": 0.9978501947595837, "recall": 0.9968953344958108, "f1-score": 0.9973725360877381, "support": 47026}, "1": {"precision": 0.9968763371844245, "recall": 0.9978370275190063, "f1-score": 0.9973564510087226, "support": 46695}, "accuracy": 0.9973645180909294, "macro avg": {"precision": 0.9973632659720041, "recall": 0.9973661810074086, "f1-score": 0.9973644935482304, "support": 93721}, "weighted avg": {"precision": 0.9973649856872087, "recall": 0.9973645180909294, "f1-score": 0.997364521952543, "support": 93721}}12345678910111213141516171819202122232425262728{ "_name_or_path": "distilroberta-base", "architectures": [ "RobertaForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "roberta", "num_attention_heads": 12, "num_hidden_layers": 6, "pad_token_id": 1, "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.35.0", "type_vocab_size": 1, "use_cache": true, "vocab_size": 50265}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ "0": { "eval_loss": 0.10374469310045242, "eval_precision": 0.9737656975744022, "eval_recall": 0.9697826319734447, "eval_acc": 0.9719276157145601, "eval_mcc": 0.9438615567759816, "eval_f1": 0.9717700833699932, "eval_auc": 0.9948976180440235, "eval_runtime": 173.3657, "eval_samples_per_second": 540.603, "eval_steps_per_second": 8.45, "epoch": 5.0 }, "1": { "eval_loss": 0.05847053602337837, "eval_precision": 0.9871676573464089, "eval_recall": 0.9851804261698255, "eval_acc": 0.9862358891188835, "eval_mcc": 0.972473193758921, "eval_f1": 0.9861730406448295, "eval_auc": 0.9984220523046687, "eval_runtime": 180.9885, "eval_samples_per_second": 517.834, "eval_steps_per_second": 8.094, "epoch": 5.0 }, "2": { "eval_loss": 0.02428630366921425, "eval_precision": 0.9940236483591809, "eval_recall": 0.9937894849555627, "eval_acc": 0.993928853417554, "eval_mcc": 0.9878575715851258, "eval_f1": 0.9939065528652052, "eval_auc": 0.9996634077928405, "eval_runtime": 186.261, "eval_samples_per_second": 503.176, "eval_steps_per_second": 7.865, "epoch": 5.0 }, "3": { "eval_loss": 0.012984414584934711, "eval_precision": 0.9968293414456489, "eval_recall": 0.9964664310954063, "eval_acc": 0.9966603358869849, "eval_mcc": 0.9933206447384996, "eval_f1": 0.9966478532338041, "eval_auc": 0.9998719749526687, "eval_runtime": 187.6405, "eval_samples_per_second": 499.476, "eval_steps_per_second": 7.807, "epoch": 5.0 }, "4": { "eval_loss": 0.009990902617573738, "eval_precision": 0.9968763371844245, "eval_recall": 0.9978370275190063, "eval_acc": 0.9973645180909294, "eval_mcc": 0.9947294469751415, "eval_f1": 0.9973564510087226, "eval_auc": 0.9998922058125905, "eval_runtime": 195.4371, "eval_samples_per_second": 479.546, "eval_steps_per_second": 7.496, "epoch": 5.0 }}1{"precision": 0.9968763371844245, "recall": 0.9978370275190063, "acc": 0.9973645180909294, "mcc": 0.9947294469751415, "f1": 0.9973564510087226, "auc": 0.9998922058125905}1234567891011121314151617181920212223242526272829303132333435363738394041424344{ "precision": [ 0.9737656975744022, 0.9871676573464089, 0.9940236483591809, 0.9968293414456489, 0.9968763371844245 ], "recall": [ 0.9697826319734447, 0.9851804261698255, 0.9937894849555627, 0.9964664310954063, 0.9978370275190063 ], "f1": [ 0.9717700833699932, 0.9861730406448295, 0.9939065528652052, 0.9966478532338041, 0.9973564510087226 ], "auc": [ 0.9948976180440235, 0.9984220523046687, 0.9996634077928405, 0.9998719749526687, 0.9998922058125905 ], "acc": [ 0.9719276157145601, 0.9862358891188835, 0.993928853417554, 0.9966603358869849, 0.9973645180909294 ], "mcc": [ 0.9438615567759816, 0.972473193758921, 0.9878575715851258, 0.9933206447384996, 0.9947294469751415 ]}1234567891011121314151617181920212223242526{ "precision": { "ci_lower": 0.9776091208738689, "ci_upper": 1.0018559518901575 }, "recall": { "ci_lower": 0.9741854321729754, "ci_upper": 1.0030369685123228 }, "f1": { "ci_lower": 0.9758973258616614, "ci_upper": 1.0024442665873603 }, "auc": { "ci_lower": 0.995904891520998, "ci_upper": 1.0011940120417187 }, "acc": { "ci_lower": 0.9760273448793234, "ci_upper": 1.0024195400122415 }, "mcc": { "ci_lower": 0.9520595333408934, "ci_upper": 1.0048374321925746 }}12345678{ "precision": 0.9897325363820132, "recall": 0.988611200342649, "f1": 0.9891707962245109, "auc": 0.9985494517813583, "acc": 0.9892234424457824, "mcc": 0.978448482766734}12345678{ "precision": 0.009763845553774957, "recall": 0.011618093292986256, "f1": 0.010690066219243916, "auc": 0.002129851766811341, "acc": 0.010627752423803014, "mcc": 0.021252890849711107}123version https://git-lfs.github.com/spec/v1oid sha256:a204cb2ed2d838286975c12d7daff1cc3562a5dc95d8d4c6917a2fd61c670315size 328492280123version https://git-lfs.github.com/spec/v1oid sha256:8a5340dde3e3f20944d5a65939df6a598e43a0fc378b0c8f9ac76d93f275d796size 3236710468123version https://git-lfs.github.com/spec/v1oid sha256:52f67bd0e9dcb89dc9803e313f55a34a6fa2737785c3933f64b5cf21ea93d719size 579690582123version https://git-lfs.github.com/spec/v1oid sha256:a9df1deca86bedc499abb972ea6ede37c1c40a82bc1ae9b2eab94e230390ceccsize 22462047123version https://git-lfs.github.com/spec/v1oid sha256:7bd1ee4018c549461ff593acefdea2a07c6835ff6b714d78fb6c94207a6f638bsize 18014368123456789101112131415161718192021222324252627282930313233{ "cloud_provider": "", "cloud_region": "", "codecarbon_version": "2.3.4", "country_iso_code": "NOR", "country_name": "Norway", "cpu_count": 192, "cpu_energy": 0.5928995956559636, "cpu_model": "AMD EPYC 7642 48-Core Processor", "cpu_power": 2.3570913778813933, "duration": 60875.40584397316, "emissions": 0.6472121861747567, "emissions_rate": 1.063175147995884e-05, "energy_consumed": 23.49227536024525, "gpu_count": 4, "gpu_energy": 16.513770876561686, "gpu_model": "4 x NVIDIA GeForce RTX 3090", "gpu_power": 1015.409561017435, "latitude": 59.9016, "longitude": 10.7343, "on_cloud": "N", "os": "Linux-4.18.0-513.18.1.el8_9.x86_64-x86_64-with-glibc2.28", "project_name": "codecarbon", "pue": 1.0, "python_version": "3.10.8", "ram_energy": 6.385604888027602, "ram_power": 377.6938190460205, "ram_total_size": 1007.1835174560547, "region": "oslo county", "run_id": "c6ff6c1f-7db3-4081-a900-5a53d49ff1f0", "timestamp": "2024-04-05T12:33:13", "tracking_mode": "machine"}123version https://git-lfs.github.com/spec/v1oid sha256:4b261a4947ad4823a58993453644bce56836de5ccfaededf844a110674b1b4c0size 4664.gitattributes+4
checkpoint-29290/config.jsonAdded+28
checkpoint-29290/model.safetensorsAdded+3
checkpoint-29290/optimizer.ptAdded+3
checkpoint-29290/rng_state.pthAdded+3
checkpoint-29290/scheduler.ptAdded+3
checkpoint-29290/trainer_state.jsonAdded+367
checkpoint-29290/training_args.binAdded+3
classification_report.jsonAdded+1
config.jsonAdded+28
confusion_matrix.pngAdded

detailed_confusion_matrix.pngAdded

fold_results.jsonAdded+67
metrics.jsonAdded+1
metrics_all_fold.jsonAdded+44
metrics_ci_bounds.jsonAdded+26
metrics_mean.jsonAdded+8
metrics_std.jsonAdded+8
metrics_visualisation.pngAdded

model.safetensorsAdded+3
precision_recall_curve.pngAdded

reduced_main_data.csvAdded+3
roc_curve.pngAdded

test_data_for_future_evaluation.csvAdded+3
test_top_repo_data.csvAdded+3
top_repo_data.csvAdded+3
tracker_carbon_statistics.jsonAdded+33
training_args.binAdded+3