MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / permute

Method permute

convert-dense.py:479–480  ·  view source on GitHub ↗
(self, n_head: int, n_head_kv: int)

Source from the content-addressed store, hash-verified

477 return UnquantizedTensor(self.ndarray[r * n_part : r * n_part + r, ...])
478
479 def permute(self, n_head: int, n_head_kv: int) -> UnquantizedTensor:
480 return UnquantizedTensor(permute(self.ndarray, n_head, n_head_kv))
481
482
483def load_unquantized(lazy_tensor: LazyTensor, expected_dtype: Any = None, convert: bool = False) -> NDArray:

Callers

nothing calls this directly

Calls 2

UnquantizedTensorClass · 0.70
permuteFunction · 0.70

Tested by

no test coverage detected