MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / rrt

Method rrt

src/fused_mm_sampling/core.py:718–721  ·  view source on GitHub ↗

Return R @ Rᵀ, which should be close to the identity matrix.

(self)

Source from the content-addressed store, hash-verified

716 Sampling using low-dimensional random projections (Johnson-Lindenstrauss lemma).
717 """
718 if not self.prepared:
719 raise ValueError("Sampler not prepared. Call .prepare() first.")
720 logits_p = self.compute_logits(hidden_states)
721 probs = (logits_p / temperature).softmax(dim=1)
722 samples = _fast_multinomial(probs, num_samples)
723 return samples
724

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected