MCPcopy Index your code
hub / github.com/microsoft/BitNet / cleanup_temp_files

Method cleanup_temp_files

utils/test_perplexity.py:107–114  ·  view source on GitHub ↗

Clean up temporary files.

(self)

Source from the content-addressed store, hash-verified

105 return dataset_path
106
107 def cleanup_temp_files(self):
108 """Clean up temporary files."""
109 for temp_file in self.temp_files:
110 try:
111 os.unlink(temp_file)
112 except:
113 pass
114 self.temp_files = []
115
116 def run_perplexity_test(self, dataset_name, dataset_path, threads=16, ctx_size=512, model_override=None):
117 """Run perplexity test on a single dataset."""

Callers 1

run_all_testsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected