Downloads · 30 days
1
6% of all-time downloads
Canstralian/RabbitRedux
RabbitRedux is a machine learning model from Canstralian. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
The RabbitRedux Code Classification Model is a transformer-based AI designed for code classification in cybersecurity and software engineering contexts.
Downloads · 30 days
1
6% of all-time downloads
All-time downloads
17
Public
Repo size
—
Likes
6
Public
Click a slice to open those files.
.py11.9 KB · 42%
From the Hugging Face model README
The RabbitRedux Code Classification Model is a transformer-based AI designed for code classification in cybersecurity and software engineering contexts.
✅ Pre-trained on diverse datasets
✅ Fine-tuned for cybersecurity-focused classification
✅ Optimized for Python, JavaScript, and more
pip install transformers torch
from transformers import pipeline
# Load RabbitRedux
classifier = pipeline("text-classification", model="canstralian/RabbitRedux")
# Example classification
code_snippet = "def hello_world():\n print('Hello, world!')"
result = classifier(code_snippet)
print(result)
[
{"label": "Python Function", "score": 0.98}
]
• Developed by: canstralian
• Architecture: Transformer-based (Fine-tuned)
• Training Datasets:
- Canstralian/Wordlists
- Canstralian/CyberExploitDB
- Canstralian/pentesting_dataset
- Canstralian/ShellCommands
• Fine-tuned from:
- replit/replit-code-v1_5-3b
- WhiteRabbitNeo/Llama-3.1-WhiteRabbitNeo-2-8B
- WhiteRabbitNeo/Llama-3.1-WhiteRabbitNeo-2-70B
• License: MIT
| Metric | Value |
|---|---|
| Accuracy | 94.5% |
| F1 Score | 92.8% |
You can deploy this model as an API using Hugging Face Spaces.
docker build -t rabbitredux .
docker run -p 5000:5000 rabbitredux
If you want a scalable API:
pip install fastapi uvicorn
Then, create a FastAPI server:
from fastapi import FastAPI
from transformers import pipeline
app = FastAPI()
classifier = pipeline("text-classification", model="canstralian/RabbitRedux")
@app.post("/classify/")
def classify_code(data: dict):
return {"classification": classifier(data["code"])}
Run with:
uvicorn app:app --host 0.0.0.0 --port 8000
• GitHub: canstralian
• Hugging Face Model: RabbitRedux
• Replit Profile: canstralian
Licensed under the MIT License.