Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable sparse prediction threshold #7

Merged
merged 4 commits into from
Dec 18, 2023
Merged

Conversation

hodlen
Copy link
Collaborator

@hodlen hodlen commented Dec 16, 2023

Sometimes MLP predictors have a relatively low recall and introduce noticeable false negatives. By setting a lower sparse prediction threshold, we can mitigate that at inference time by predicting more neutrons around the middle as positive.

We implement this along with MLP predictor distribution as a config entry, so we can set an optimal threshold for each set of MLP predictors. It can also be manually configured by env var LLAMA_SPARSE_PRED_THRESHOLD.

@hodlen hodlen changed the title Improve GPU index usability Adaptive sparse prediction threshold Dec 18, 2023
@hodlen hodlen changed the title Adaptive sparse prediction threshold Configurable sparse prediction threshold Dec 18, 2023
@hodlen hodlen merged commit 603c771 into main Dec 18, 2023
19 of 36 checks passed
@hodlen hodlen deleted the user-friendly-gpu-idx branch December 19, 2023 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant