Run this model with HF Jobs
Run karths/binary_classification_train_port 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_port. 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_port 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_port with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use karths/binary_classification_train_port with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="karths/binary_classification_train_port")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("karths/binary_classification_train_port") model = AutoModelForSequenceClassification.from_pretrained("karths/binary_classification_train_port", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse filesFiles changed (28)
- .gitattributes+1
- checkpoint-145/config.jsonAdded+28
- checkpoint-145/model.safetensorsAdded+3
- checkpoint-145/optimizer.ptAdded+3
- checkpoint-145/rng_state.pthAdded+3
- checkpoint-145/scheduler.ptAdded+3
- checkpoint-145/trainer_state.jsonAdded+18
- checkpoint-145/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
- test_top_repo_data.csvAdded
- top_repo_data.csvAdded
- 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 lines3334353632 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 -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:9091e9a2e831c5a567bd2c39fbf95f859fe6be61081cf3164b33afdc6beb5b69size 328492280123version https://git-lfs.github.com/spec/v1oid sha256:46572d7bd8d7ef33b73df79399062f5dc3b17ff40faef0087e294565b88b31d8size 657047610123version https://git-lfs.github.com/spec/v1oid sha256:c133f261b740a5016289c13ca4c56abd79727bc7888d0ee6d1bf796f308e6a9dsize 14244123version https://git-lfs.github.com/spec/v1oid sha256:28e3b29e119a88aab50c7920b39a3080b5b4ee492a269b932d9f840cb0029e6esize 1064123456789101112131415161718{ "best_metric": null, "best_model_checkpoint": null, "epoch": 4.915254237288136, "eval_steps": 500, "global_step": 145, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [], "logging_steps": 500, "max_steps": 145, "num_train_epochs": 5, "save_steps": 500, "total_flos": 1218170198040576.0, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:b808ba13205e1570b64421c040c8af0091331fdbcea9ac38211c5dfe852e4018size 46641{"0": {"precision": 0.9676113360323887, "recall": 1.0, "f1-score": 0.9835390946502057, "support": 239}, "1": {"precision": 1.0, "recall": 0.9647577092511013, "f1-score": 0.9820627802690582, "support": 227}, "accuracy": 0.9828326180257511, "macro avg": {"precision": 0.9838056680161944, "recall": 0.9823788546255506, "f1-score": 0.982800937459632, "support": 466}, "weighted avg": {"precision": 0.9833886465917187, "recall": 0.9828326180257511, "f1-score": 0.9828199457993034, "support": 466}}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.4202532470226288, "eval_precision": 0.7871485943775101, "eval_recall": 0.8596491228070176, "eval_acc": 0.8179871520342612, "eval_mcc": 0.6391245110001711, "eval_f1": 0.8218029350104822, "eval_auc": 0.8901398370402995, "eval_runtime": 5.3092, "eval_samples_per_second": 87.96, "eval_steps_per_second": 1.507, "epoch": 4.92 }, "1": { "eval_loss": 0.3538523018360138, "eval_precision": 0.8642533936651584, "eval_recall": 0.8377192982456141, "eval_acc": 0.8565310492505354, "eval_mcc": 0.7130211100149336, "eval_f1": 0.8507795100222718, "eval_auc": 0.9265121485722674, "eval_runtime": 6.1422, "eval_samples_per_second": 76.031, "eval_steps_per_second": 1.302, "epoch": 4.92 }, "2": { "eval_loss": 0.26959216594696045, "eval_precision": 0.9074074074074074, "eval_recall": 0.8634361233480177, "eval_acc": 0.8907922912205567, "eval_mcc": 0.7819998041322208, "eval_f1": 0.8848758465011287, "eval_auc": 0.9638582966226138, "eval_runtime": 5.5603, "eval_samples_per_second": 83.989, "eval_steps_per_second": 1.439, "epoch": 4.92 }, "3": { "eval_loss": 0.38139936327934265, "eval_precision": 0.9940119760479041, "eval_recall": 0.7312775330396476, "eval_acc": 0.8669527896995708, "eval_mcc": 0.7578936551219534, "eval_f1": 0.8426395939086294, "eval_auc": 0.9926824323078908, "eval_runtime": 5.5301, "eval_samples_per_second": 84.265, "eval_steps_per_second": 1.447, "epoch": 4.92 }, "4": { "eval_loss": 0.05678117647767067, "eval_precision": 1.0, "eval_recall": 0.9647577092511013, "eval_acc": 0.9828326180257511, "eval_mcc": 0.9661834691175403, "eval_f1": 0.9820627802690582, "eval_auc": 0.9997788140747977, "eval_runtime": 5.3607, "eval_samples_per_second": 86.928, "eval_steps_per_second": 1.492, "epoch": 4.92 }}1{"precision": 1.0, "recall": 0.9647577092511013, "acc": 0.9828326180257511, "mcc": 0.9661834691175403, "f1": 0.9820627802690582, "auc": 0.9997788140747977}1234567891011121314151617181920212223242526272829303132333435363738394041424344{ "precision": [ 0.7871485943775101, 0.8642533936651584, 0.9074074074074074, 0.9940119760479041, 1.0 ], "recall": [ 0.8596491228070176, 0.8377192982456141, 0.8634361233480177, 0.7312775330396476, 0.9647577092511013 ], "f1": [ 0.8218029350104822, 0.8507795100222718, 0.8848758465011287, 0.8426395939086294, 0.9820627802690582 ], "auc": [ 0.8901398370402995, 0.9265121485722674, 0.9638582966226138, 0.9926824323078908, 0.9997788140747977 ], "acc": [ 0.8179871520342612, 0.8565310492505354, 0.8907922912205567, 0.8669527896995708, 0.9828326180257511 ], "mcc": [ 0.6391245110001711, 0.7130211100149336, 0.7819998041322208, 0.7578936551219534, 0.9661834691175403 ]}1234567891011121314151617181920212223242526{ "precision": { "ci_lower": 0.798903602315817, "ci_upper": 1.0222249462833752 }, "recall": { "ci_lower": 0.748079254794442, "ci_upper": 0.954656659882117 }, "f1": { "ci_lower": 0.797869352681142, "ci_upper": 0.9549949136034861 }, "auc": { "ci_lower": 0.8972852477535815, "ci_upper": 1.011903363693566 }, "acc": { "ci_lower": 0.806447516232663, "ci_upper": 0.959590843859607 }, "mcc": { "ci_lower": 0.620666160734259, "ci_upper": 0.9226228590204688 }}12345678{ "precision": 0.9105642742995961, "recall": 0.8513679573382795, "f1": 0.876432133142314, "auc": 0.9545943057235737, "acc": 0.883019180046135, "mcc": 0.7716445098773639}12345678{ "precision": 0.08992825123810563, "recall": 0.08318571102428549, "f1": 0.06327217393338591, "auc": 0.04615504520779968, "acc": 0.061668586609777844, "mcc": 0.12159356263974426}123version https://git-lfs.github.com/spec/v1oid sha256:9091e9a2e831c5a567bd2c39fbf95f859fe6be61081cf3164b33afdc6beb5b69size 328492280123version https://git-lfs.github.com/spec/v1oid sha256:9d6807840031695fe02c74bb294ee539571c0fed47a6b7b5b7602fc088280f45size 10906685123456789101112131415161718192021222324252627282930313233{ "cloud_provider": "", "cloud_region": "", "codecarbon_version": "2.3.4", "country_iso_code": "NOR", "country_name": "Norway", "cpu_count": 192, "cpu_energy": 0.026486354157121927, "cpu_model": "AMD EPYC 7642 48-Core Processor", "cpu_power": 247.62820179209263, "duration": 384.16738986968994, "emissions": 0.00521471125517818, "emissions_rate": 1.3574060143280295e-05, "energy_consumed": 0.18928171525147658, "gpu_count": 4, "gpu_energy": 0.12267480980644052, "gpu_model": "4 x NVIDIA GeForce RTX 3090", "gpu_power": 1149.7044282830957, "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": 0.04012055128791413, "ram_power": 377.6938090324402, "ram_total_size": 1007.1834907531738, "region": "oslo county", "run_id": "73ac059f-225e-48d8-a773-0854fc1c74c2", "timestamp": "2024-04-02T15:58:25", "tracking_mode": "machine"}123version https://git-lfs.github.com/spec/v1oid sha256:b808ba13205e1570b64421c040c8af0091331fdbcea9ac38211c5dfe852e4018size 4664.gitattributes+1
checkpoint-145/config.jsonAdded+28
checkpoint-145/model.safetensorsAdded+3
checkpoint-145/optimizer.ptAdded+3
checkpoint-145/rng_state.pthAdded+3
checkpoint-145/scheduler.ptAdded+3
checkpoint-145/trainer_state.jsonAdded+18
checkpoint-145/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
test_top_repo_data.csvAdded
top_repo_data.csvAdded
tracker_carbon_statistics.jsonAdded+33
training_args.binAdded+3