Thanks to visit codestin.com
Credit goes to github.com

Skip to content

probes.base: balance IntentProbe pruning across intents#1838

Merged
jmartin-tech merged 2 commits into
NVIDIA:feature/technique_intentfrom
patriciapampanelli:feature/intentprobe-balanced-pruning
Jun 26, 2026
Merged

probes.base: balance IntentProbe pruning across intents#1838
jmartin-tech merged 2 commits into
NVIDIA:feature/technique_intentfrom
patriciapampanelli:feature/intentprobe-balanced-pruning

Conversation

@patriciapampanelli

Copy link
Copy Markdown
Collaborator

Summary

IntentProbe ignored soft_probe_prompt_cap. This adds a balanced IntentProbe._prune_data override that honors the cap and spreads prompts evenly (within 1) across intents: cap // n per intent plus the remainder to the first intents, sampled per intent, deleting in reverse to keep prompts/prompt_intents aligned.

Resolves #1835

@patriciapampanelli patriciapampanelli moved this from In Progress to In Review in garak / Context Aware Scanning Jun 4, 2026
@patriciapampanelli patriciapampanelli changed the title probes.base: balance IntentProbe pruning across intents (#1835) probes.base: balance IntentProbe pruning across intents Jun 4, 2026
Comment thread garak/probes/base.py Outdated
@jmartin-tech jmartin-tech merged commit 4ebd13d into NVIDIA:feature/technique_intent Jun 26, 2026
16 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in garak / Context Aware Scanning Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants