Text Classification
Transformers
Safetensors
modernbert
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run P0u4a/ModernBERT-bash-classifier 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/P0u4a/ModernBERT-bash-classifier. 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/P0u4a/ModernBERT-bash-classifier 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 P0u4a/ModernBERT-bash-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use P0u4a/ModernBERT-bash-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="P0u4a/ModernBERT-bash-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("P0u4a/ModernBERT-bash-classifier") model = AutoModelForSequenceClassification.from_pretrained("P0u4a/ModernBERT-bash-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update limitations
Browse files42 unmodified lines434445464748495042 unmodified lines## Intended uses & limitations- Auto-classifying bash commands as safe or unsafe inside of coding agent harnesses, so safe commands can run without user approval and unsafe commands require explicit approval.-## Training procedure42 unmodified lines43444546474849505142 unmodified lines## Intended uses & limitationsThe model is intended to be used for auto-classifying bash commands as safe or unsafe inside of coding agent harnesses, so safe commands can run without user approval and unsafe commands require explicit approval.Due to the small training set, the model may not generalize well to unknown CLIs or bash commands that invoke code directly like a Python block with heredocs.## Training procedure
README.md+3-2