Text Classification
Transformers
Safetensors
English
deberta-v2
secret-detection
secrets
security
cybersecurity
devsecops
sast
code-security
code-analysis
supply-chain-security
pre-commit
ci-cd
github-actions
password-detection
api-key-detection
token-detection
credential-detection
secure-coding
deberta
deberta-v3
binary-classification
Eval Results (legacy)
text-embeddings-inference
Instructions to use hypn05/secrets-sentinel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hypn05/secrets-sentinel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="hypn05/secrets-sentinel")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("hypn05/secrets-sentinel") model = AutoModelForSequenceClassification.from_pretrained("hypn05/secrets-sentinel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Abbas Ali commited on
Delete readme.md
Browse files12345678910111213141516171819202122232425262728293031323334353637# DeBERTa Secret Detection Model
This model detects secrets in git diff lines.
## Model Details
- Base Model: microsoft/deberta-base- Task: Binary sequence classification- Labels: - LABEL_0: Normal - LABEL_1: Secret
## Training
- Loss: Weighted cross-entropy- Metric for best model: F1- BF16 training- Gradient checkpointing enabled
## Usage
```pythonfrom transformers import pipeline
classifier = pipeline( "text-classification", model="YOUR_USERNAME/secret-detector-deberta-base")
classifier("+ password='secret123'")```
### Intended Use
Production secret detection in git diffs.
readme.mdDeleted-37