CoolFace
Apppublic

LorenzoNava/deberta-cwe-training

sourceHugging Facemitupdated 10mo agoView on Hugging Face
0likes
App README

πŸ€– DeBERTa CWE Classification - Fine-Tuning Interface

Production-grade Gradio interface for training DeBERTa models on CVE→CWE classification task with real-time monitoring.

Features

  • β€”πŸ“Š Real-time Training Monitoring - Live progress updates, metrics streaming
  • β€”πŸ“ˆ Interactive Dashboard - Visualize loss, accuracy, F1 score, learning rate
  • β€”βš™οΈ Hyperparameter Configuration - Full control over training parameters
  • β€”πŸ’Ύ Model Export - Automatic export to local directory
  • β€”πŸŽ― Optimal Settings - Pre-configured with best hyperparameters (10 epochs, batch 16)
  • β€”πŸ”₯ GPU Acceleration - Automatic CUDA/MPS/CPU detection
  • —⏸️ Training Control - Early stopping, checkpoint management
  • β€”πŸ“ Live Logs - Real-time training logs streaming

Dataset

Name: stasvinokur/cve-and-cwe-dataset-1999-2025 Size: ~300K CVE-CWE pairs from 1999-2025 Task: Single-label classification (CVE description β†’ CWE-ID)

Optimal Hyperparameters

  • β€”Epochs: 10 (for best quality)
  • β€”Batch Size: 16 (effective: 64 with gradient accumulation)
  • β€”Learning Rate: 2e-5 with cosine schedule
  • β€”Warmup Ratio: 0.1
  • β€”Gradient Accumulation: 4 steps
  • β€”Early Stopping: 5 patience

Usage

  1. 1.Select model architecture (Base recommended)
  2. 2.Configure hyperparameters (or use defaults)
  3. 3.Click "πŸš€ Start Training"
  4. 4.Monitor real-time progress in dashboard
  5. 5.Model exports automatically to local directory

Output

Trained model saved within Space to: ./models/deberta-cwe-final/

To use locally: Download files from Space's "Files" tab and copy to your local CWE MCP directory.

Hardware

This Space requires GPU for efficient training. Configured with A10G Large for optimal performance.

Training Time Estimates:

  • β€”DeBERTa-Base on A10G: ~2-3 hours
  • β€”DeBERTa-Large on A10G: ~6-8 hours

Developed By

Berghem - Smart Information Security Licensed under MIT

Force rebuild at Tue Nov 18 08:20:41 -03 2025