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
addming manual batch process
Browse files64 unmodified lines6566676869707172737475767778798081828364 unmodified lines]import torch# Run inference on the listfor text in examples:inputs = tokenizer(text, return_tensors="pt")with torch.no_grad():outputs = model(**inputs)logits = outputs.logits# Get prediction and map to human-readable labelpredicted_class_id = logits.argmax().item()label = model.config.id2label[predicted_class_id]print(f"[{label}] -> {text}")```### Intended Use64 unmodified lines656667686970717273747576777879808164 unmodified lines]import torch# Manual Batch Processinginputs = tokenizer(examples, padding=True, return_tensors="pt")with torch.no_grad():logits = model(**inputs).logits# Manual Label Mappingpredictions = torch.argmax(logits, dim=-1)for text, pred in zip(examples, predictions):label = model.config.id2label[pred.item()]print(f"Result: {label} | Text: {text}")```### Intended Use
README.md+11-13