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

Method __init__

utils/tune_gemm_config.py:19–25  ·  view source on GitHub ↗
(self, config_path, model_path, threads=16)

Source from the content-addressed store, hash-verified

17
18class GemmTuner:
19 def __init__(self, config_path, model_path, threads=16):
20 self.config_path = Path(config_path)
21 self.model_path = model_path
22 self.threads = threads
23 self.backup_path = self.config_path.parent / f"gemm-config.h.backup_{datetime.now().strftime('%Y%m%d_%H%M%S')}"
24 self.build_dir = Path("../build")
25 self.results = []
26
27 def backup_config(self):
28 """Backup current configuration file"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected