Views
No views yet
| Metric | FP16 (Baseline) | EOQ Q5 Compressed |
|---|---|---|
| Size | 59.9 GB | 30.4 GB |
| Compression | 1.0x | 2.0x |
| PPL (WikiText-2) | 37.71 | 41.12 |
| PPL delta | -- | +3.41 |
| Throughput (tok/s) | 3.2 | 3.2 (no degradation) |
1from huggingface_hub import snapshot_download
2import sys
3local = snapshot_download("caiovicentino1/GLM-4.7-Flash-Claude-Opus-4.5-High-Reasoning-Distill-EOQ-Q5-compressed")
4sys.path.insert(0, local)
5from eoq_loader import load_eoq_model
6model, tokenizer = load_eoq_model("caiovicentino1/GLM-4.7-Flash-Claude-Opus-4.5-High-Reasoning-Distill-EOQ-Q5-compressed")
7
8inputs = tokenizer("Hello!", return_tensors="pt").to(model.device)
9output = model.generate(**inputs, max_new_tokens=100)
10print(tokenizer.decode(output[0], skip_special_tokens=True))1import torch, json, torch.nn.functional as F
2from safetensors.torch import load_file
3from huggingface_hub import snapshot_download
4
5local = snapshot_download("caiovicentino1/GLM-4.7-Flash-Claude-Opus-4.5-High-Reasoning-Distill-EOQ-Q5-compressed")
6
7# Load metadata and compressed weights, then dequantize
8# See eoq_loader.py for full decompression logic