MojoLlama
Archived Mojo/MAX quantizer and serving research repository (read-only history)
Brought by drakestapleton
MojoLlama / inspect2.py
| 1 | #!/usr/bin/env python3 |
| 2 | import gguf |
| 3 | import numpy as np |
| 4 | |
| 5 | reader = gguf.GGUFReader('/tmp/models/qwen3.6-35b-a3b-q4_k_m.gguf') |
| 6 | |
| 7 | # Find ALL ssm-related tensors |
| 8 | count = 0 |
| 9 | for t in reader.tensors: |
| 10 | name = t.name |
| 11 | if 'ssm' in name.lower() or 'attn_' in name.lower(): |
| 12 | print(f'{name}: shape={list(t.shape)} type={t.tensor_type}') |
| 13 | count += 1 |
| 14 | if count > 50: |
| 15 | break |