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

Method print_summary

utils/quantize_embeddings.py:370–391  ·  view source on GitHub ↗

Print quantization summary

(self, total_duration)

Source from the content-addressed store, hash-verified

368 print(f"❌ Failed to save results: {e}")
369
370 def print_summary(self, total_duration):
371 """Print quantization summary"""
372 print(f"\n\n{'='*80}")
373 print(f"📊 QUANTIZATION AND BENCHMARK SUMMARY")
374 print(f"{'='*80}\n")
375
376 successful = len(self.results)
377 total = len(self.results)
378
379 print(f"✅ Completed: {successful} benchmarks")
380 print(f"⏱️ Total duration: {total_duration/60:.2f} minutes\n")
381
382 if self.results:
383 if self.csv_output and self.csv_output.exists():
384 print(f"📁 Results saved to: {self.csv_output}")
385 else:
386 csv_files = list(self.stats_dir.glob("embedding_benchmark*.csv"))
387 if csv_files:
388 latest_csv = max(csv_files, key=lambda p: p.stat().st_mtime)
389 print(f"📁 Results saved to: {latest_csv}")
390
391 print(f"\n{'='*80}\n")
392
393
394def main():

Callers 1

run_all_quantizationsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected