feat(classifier): add Hybrid-BERT label mapping shim for krishnas4415/log-anomaly-detection-models #41
Labels
No labels
compliance
demo
deployment
docs
enhancement
parser
patterns
performance
security
ux
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/turnstone#41
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The backup Stage 2 classifier (
krishnas4415/log-anomaly-detection-modelsHybrid-BERT, MIT) has been investigated. Labels confirmed from the config.Label mapping (confirmed)
Problem: non-standard checkpoint format
This model is a raw PyTorch checkpoint (
pytorch_model.pt), not a standard HF model.AutoModelForSequenceClassification.from_pretrained()andpipeline()both fail because:model_typein rootconfig.json— models are buried in subdirectories (models/Hybrid-BERT-Log-Anomaly-Detection/)pytorch_model.ptis a raw save, notpytorch_model.binwith tied HF architectureTo use it: load
bert-base-uncasedwith a custom 7-class head, then load the.ptweights manually viatorch.load(). The template feature part is unknown risk.Recommendation
Search for a better-packaged log severity classifier on HF Hub before investing in custom loading code for this one. Candidates to evaluate:
malduwez/LogBERT-v1— was mentioned in early spec drafts; verify it still existsERROR/WARN/INFO/CRITICALor anomaly-type labels on LogHub databyviz/bylastic_classification_logsfurther on Turnstone's own log corpus (using Avocet) may be more practical than loading this modelCurrent status
byviz/bylastic_classification_logsis active as Stage 2 primary. Thekrishnas4415model is not usable without significant custom integration work.