Downloads · 30 days
3
2% of all-time downloads
elleryfamilia/broshky
broshky is a text classification model from elleryfamilia. Use it when you need a label for a piece of text. The card lists the license as mit.
A fast binary classifier that distinguishes shell commands from natural language queries.
Downloads · 30 days
3
2% of all-time downloads
All-time downloads
174
Public
Parameters
22.7M
183 MB on disk
Likes
0
Public
Click a slice to open those files.
.data90.9 MB · 49%
From the Hugging Face model README
A fast binary classifier that distinguishes shell commands from natural language queries.
| Metric | Value |
|---|---|
| Accuracy | 100% |
| F1 Score | 1.0 |
| Latency | ~3ms |
| Model Size | 0.8MB (ONNX) |
import onnxruntime as ort
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("elleryfamilia/broshky")
session = ort.InferenceSession("onnx/model.onnx")
text = "ls -la"
inputs = tokenizer(text, return_tensors="np", padding=True, truncation=True, max_length=128)
outputs = session.run(None, {
"input_ids": inputs["input_ids"],
"attention_mask": inputs["attention_mask"]
})
# outputs[0] contains logits: [natural_language_score, command_score]
from transformers import pipeline
classifier = pipeline("text-classification", model="elleryfamilia/broshky")
result = classifier("git commit -m 'fix bug'")
# [{'label': 'command', 'score': 0.99}]
0 / natural_language: Natural language queries (e.g., "how do I list files?")1 / command: Shell commands (e.g., "ls -la", "git status")sentence-transformers/all-MiniLM-L6-v2MIT