MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / __init__

Method __init__

codegeex/megatron/data/indexed_dataset.py:153–157  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

151 _HDR_MAGIC = b"TNTIDX\x00\x00"
152
153 def __init__(self, path):
154 super().__init__()
155 self.path = path
156 self.data_file = None
157 self.read_index(path)
158
159 def read_index(self, path):
160 with open(index_file_path(path), "rb") as f:

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

read_indexMethod · 0.95

Tested by

no test coverage detected