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

Method do_item

tokenizer/convert/convert.py:1102–1105  ·  view source on GitHub ↗
(item: tuple[str, LazyTensor])

Source from the content-addressed store, hash-verified

1100
1101 @staticmethod
1102 def do_item(item: tuple[str, LazyTensor]) -> tuple[DataType, NDArray]:
1103 name, lazy_tensor = item
1104 tensor = lazy_tensor.load().to_ggml()
1105 return (lazy_tensor.data_type, tensor.ndarray)
1106
1107 @staticmethod
1108 def maybe_do_quantize(item: tuple[DataType, NDArray]) -> NDArray:

Callers

nothing calls this directly

Calls 2

to_ggmlMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected