Overview
Add classification head support for ModernBERT-base-32k. Phase 1 integrated the base model successfully, but classification requires either fine-tuning or a fine-tuned classifier model.
Related: Issue vllm-project#995, POC Document: docs/issue-995-modernbert-32k-poc.md
Depends on: Issue #3 (Phase 1 - Base Model Integration)
Current Status
- ✅ Base model loads successfully (Phase 1 complete)
- ✅ Model processes sequences up to 32K tokens (base model forward pass)
- ❌ Classification head missing (model is base MLM, not classifier)
Problem
The llm-semantic-router/modernbert-base-32k model is a base MLM model (ModernBertForMaskedLM) without classifier weights. To use it for classification tasks (PII detection, intent classification, jailbreak detection), we need:
- A fine-tuned classifier model, OR
- Fine-tune the base model with a classification head, OR
- Create a new classification head and train it
Tasks
Deliverables
- Classification head support implemented
- Classification inference works on sample sequences
- Test results documented (accuracy, latency, memory usage)
- Approach documented (fine-tune vs. find model vs. create head)
Acceptance Criteria
Overview
Add classification head support for ModernBERT-base-32k. Phase 1 integrated the base model successfully, but classification requires either fine-tuning or a fine-tuned classifier model.
Related: Issue vllm-project#995, POC Document:
docs/issue-995-modernbert-32k-poc.mdDepends on: Issue #3 (Phase 1 - Base Model Integration)
Current Status
Problem
The
llm-semantic-router/modernbert-base-32kmodel is a base MLM model (ModernBertForMaskedLM) without classifier weights. To use it for classification tasks (PII detection, intent classification, jailbreak detection), we need:Tasks
Deliverables
Acceptance Criteria