kddubey/cappr

Completion After Prompt Probability. Make your LLM make a choice

41
/ 100
Emerging

Computes conditional log-probabilities of completions given prompts, enabling classification tasks by ranking candidate answers. Supports both local models (via llama-cpp and Hugging Face transformers) and integrates prompt-prefix caching to optimize repeated computations across similar prompts. Provides batch processing, prior incorporation, and token-level probability aggregation for applications like DPO training and chain-of-thought answer extraction.

Used by 1 other package. No commits in the last 6 months. Available on PyPI.

Stale 6m
Maintenance 0 / 25
Adoption 10 / 25
Maturity 25 / 25
Community 6 / 25

How are scores calculated?

Stars

82

Forks

3

Language

Python

License

Apache-2.0

Last pushed

Nov 02, 2024

Commits (30d)

0

Dependencies

2

Reverse dependents

1

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/kddubey/cappr"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.