Run this model with HF Jobs
Run karths/binary_classification_train_code 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_code. 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_code 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_code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use karths/binary_classification_train_code with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="karths/binary_classification_train_code")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("karths/binary_classification_train_code") model = AutoModelForSequenceClassification.from_pretrained("karths/binary_classification_train_code", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add ONNX export for CPU inference (no GPU required)
Browse filesFiles changed (3)
- model.onnx+2-2
- tokenizer.json+2-2
- tokenizer_config.json+24-24
12323version https://git-lfs.github.com/spec/v1oid sha256:3300bfba7f48ffd8bfaaac52f13b8026fb6ee1347e0a8cb4edfe9f2507ef2f49size 928671oid sha256:ca15ab86929dd3ca03b625e142a8554531f390778bc2ed678fae182661fbf101size 3310550141 unmodified line2345567891011111213141 unmodified line "version": "1.0", "truncation": { "direction": "Right", "max_length": 512, "max_length": 128, "strategy": "LongestFirst", "stride": 0 }, "padding": { "strategy": { "Fixed": 512 "Fixed": 128 }, "direction": "Right", "pad_to_multiple_of": null,123456789101112131415161718192021222324123456789101112131415161718192021222324{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": "<s>", "clean_up_tokenization_spaces": false, "cls_token": "<s>", "eos_token": "</s>", "errors": "replace", "is_local": false, "mask_token": "<mask>", "max_length": 512, "model_max_length": 512, "pad_to_multiple_of": null, "pad_token": "<pad>", "pad_token_type_id": 0, "padding_side": "right", "sep_token": "</s>", "stride": 0, "tokenizer_class": "RobertaTokenizer", "trim_offsets": true, "truncation_side": "right", "truncation_strategy": "longest_first", "unk_token": "<unk>"}{
"add_prefix_space": false,
"backend": "tokenizers",
"bos_token": "<s>",
"clean_up_tokenization_spaces": false,
"cls_token": "<s>",
"eos_token": "</s>",
"errors": "replace",
"is_local": false,
"mask_token": "<mask>",
"max_length": 512,
"model_max_length": 512,
"pad_to_multiple_of": null,
"pad_token": "<pad>",
"pad_token_type_id": 0,
"padding_side": "right",
"sep_token": "</s>",
"stride": 0,
"tokenizer_class": "RobertaTokenizer",
"trim_offsets": true,
"truncation_side": "right",
"truncation_strategy": "longest_first",
"unk_token": "<unk>"
}model.onnx+2-2
tokenizer.json+2-2
tokenizer_config.json+24-24