distributions
Exposes distributions for use with sample, observe, and intervene methods in LLaMPPL models.
Currently supported distributions:
Bernoulli(p: float) -> boolGeometric(p: float) -> intLogCategorical(logits: array) -> intTokenCategorical(lm: llamppl.llms.CachedCausalLM, logits: array) -> llamppl.llms.TokenTransformer(lm: llamppl.llms.CachedCausalLM) -> llamppl.llms.TokenLMContext(lm: llamppl.llms.CachedCausalLM, prompt: list[int]).next_token() -> llamppl.llms.TokenLMContext(lm: llamppl.llms.CachedCausalLM, prompt: list[int]).mask_dist(mask: set[int]) -> bool