Skip to content
#

rejection-sampling

Here are 19 public repositories matching this topic...

Speculative decoding runtime with rejection sampling, adaptive gamma strategy, and provable correctness guarantees. Achieves 1.41x speedup on CPU with Qwen2-0.5B/1.5B pair. Draft model generates candidates, target model verifies in single forward pass. 31/31 tests passing.

  • Updated Jul 29, 2026
  • Python

A Python implementation of Bayesian Networks from scratch, featuring exact inference (Variable Elimination) and approximate inference algorithms (Rejection Sampling, Gibbs Sampling, and Likelihood Weighting).

  • Updated Oct 30, 2025
  • Python

Add this topic to your repo

To associate your repository with the rejection-sampling topic, visit your repo's landing page and select "manage topics."

Learn more