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

Method permute

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

Source from the content-addressed store, hash-verified

581 def astype(self, data_type: DataType) -> Tensor: ...
582 @abstractmethod
583 def permute(self, n_head: int, n_head_kv: int) -> Tensor: ...
584 @abstractmethod
585 def permute_part(self, n_part: int, n_head: int, n_head_kv: int) -> UnquantizedTensor: ...
586 @abstractmethod

Callers 5

forwardMethod · 0.45
_load_from_state_dictMethod · 0.45
forwardMethod · 0.45
_load_from_state_dictMethod · 0.45
loadFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected