interplane.Get Omega
Read in your language

MojoLlama

Archived Mojo/MAX quantizer and serving research repository (read-only history)

Brought by drakestapleton

branch main Branches Tags History

MojoLlama / verify_phase4.py

32 lines · 824 bytes Raw Blame History
1#!/usr/bin/env python3
2"""Verify all modified modules load correctly."""
3import sys
4sys.path.insert(0, '/onedev-workspace/work/src')
5
6errors = []
7
8try:
9 from mojollama.quantizer import _read_gguf_metadata
10 print("✓ quantizer.py - _read_gguf_metadata")
11except Exception as e:
12 errors.append(f"quantizer.py: {e}")
13
14try:
15 from mojollama.model.inference import LLMInference
16 print("✓ inference.py - LLMInference")
17except Exception as e:
18 errors.append(f"inference.py: {e}")
19
20try:
21 from mojollama.server import MojoLlamaHandler
22 print("✓ server.py - MojoLlamaHandler")
23except Exception as e:
24 errors.append(f"server.py: {e}")
25
26if errors:
27 print(f"\n❌ {len(errors)} errors:")
28 for e in errors:
29 print(f" {e}")
30 sys.exit(1)
31else:
32 print("\n✅ All modules load successfully")