MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / permute

Method permute

tokenizer/convert/convert.py:621–622  ·  view source on GitHub ↗
(self, n_head: int, n_head_kv: int)

Source from the content-addressed store, hash-verified

619 return UnquantizedTensor(self.ndarray[r * n_part : r * n_part + r, ...])
620
621 def permute(self, n_head: int, n_head_kv: int) -> UnquantizedTensor:
622 return UnquantizedTensor(permute(self.ndarray, n_head, n_head_kv))
623
624
625def load_unquantized(lazy_tensor: LazyTensor, expected_dtype: Any = None, convert: bool = False) -> NDArray:

Callers

nothing calls this directly

Calls 2

UnquantizedTensorClass · 0.85
permuteFunction · 0.85

Tested by

no test coverage detected