MCPcopy Create free account
hub / github.com/microsoft/BitNet / convert_int8_to_int2

Function convert_int8_to_int2

gpu/convert_checkpoint.py:34–35  ·  view source on GitHub ↗
(weight)

Source from the content-addressed store, hash-verified

32 return new_weight
33
34 def convert_int8_to_int2(weight):
35 return convert_weight_int8_to_int2(weight)
36
37 merged_result = torch.load(input_path, map_location="cpu", mmap=True, weights_only=True)
38 int2_result = {}

Callers 1

convert_ts_checkpointFunction · 0.85

Calls 1

Tested by

no test coverage detected