selector
selector
¶
Inspect production SSCA weights at every fork in the fourfold-capacity wager.
AnalyzeScratchSelector(spec: ExecutionSpec, base: Optional[Node] = None)
¶
Bases: AnalyzeScratchbubbles
Capture selector probabilities, independently of the transformer attention.
measure_selector(weights: np.ndarray, query_positions: np.ndarray, source_positions: np.ndarray, source_scores: np.ndarray, token_ids: list[int], token_text: list[str], top_k: int) -> dict[str, Any]
staticmethod
¶
Keep key-stream probabilities and pool their mass by original token.