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
123version https://git-lfs.github.com/spec/v1oid sha256:3300bfba7f48ffd8bfaaac52f13b8026fb6ee1347e0a8cb4edfe9f2507ef2f49size 928671123version https://git-lfs.github.com/spec/v1oid sha256:ca15ab86929dd3ca03b625e142a8554531f390778bc2ed678fae182661fbf101size 331055014
1 unmodified line2345678910111213141 unmodified line"version": "1.0","truncation": {"direction": "Right","max_length": 512,"strategy": "LongestFirst","stride": 0},"padding": {"strategy": {"Fixed": 512},"direction": "Right","pad_to_multiple_of": null,1 unmodified line2345678910111213141 unmodified line"version": "1.0","truncation": {"direction": "Right","max_length": 128,"strategy": "LongestFirst","stride": 0},"padding": {"strategy": {"Fixed": 128},"direction": "Right","pad_to_multiple_of": null,
123456789101112131415161718192021222324{"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>"}123456789101112131415161718192021222324{"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