ItsMehRawrXD's picture
Upload README.md with huggingface_hub
6ac4647 verified
|
Raw History Blame Contribute Delete
2.6 kB
---
license: mit
library_name: gguf
base_model: zai-org/GLM-4.7-Flash
tags:
- gguf
- gguf-v3
- deepseek2
- moe
- reap
- pruned
- 30b
---
# GLM-4.7-Flash (REAP-pruned, GGUF)
REAP-pruned / reserialized build of **GLM-4.7-Flash** (`Zai org_GLM 4.7 Flash`, ~30B
MoE) exported to **GGUF v3**. The model uses the `deepseek2` (DeepSeek-V2-style MoE)
architecture.
## Files
| File | Format | Size | Tensors |
|------|--------|------|---------|
| `GLM-4.7-Flash.reap.gguf` | GGUF v3 | ~15.7 GB (16,820,690,400 bytes) | 844 |
## Provenance
- **Base model:** `zai-org/GLM-4.7-Flash`
- **Source transformer (sha256):** `5d3c029259a97def543dd99555583cc0eeee067c34fd5713730ac518792eb6a8`
- **Tool:** REAP prune / reserialize pipeline
- **Exported:** GGUF v3, `general.architecture = deepseek2`
## Usage
Load with any GGUF v3-compatible runtime (e.g. llama.cpp):
```bash
llama-cli -m GLM-4.7-Flash.reap.gguf -p "Hello" -n 128
```
## Benchmarks (original vs REAP)
Controlled comparison against the original `zai-org/GLM-4.7-Flash` (Q4_K_M GGUF).
**Measured**, not estimated. llama.cpp `b12721`, Vulkan backend, AMD Radeon AI PRO
R9700 (32 GB), Ryzen 9 9950X3D, 16 threads, flash attention on, 3–10 reps.
| Metric | Original | REAP | Result |
|---|---|---|---|
| Model size | 18.12 GB | 16.82 GB | **−7.2%** |
| Prefill, empty ctx (512 tok) | 430 t/s | **1100 t/s** | **2.56× faster** |
| Prefill, 4K depth | 574 t/s | 420 t/s | 0.73× (attention-bound) |
| Decode, fully-resident | ~147 t/s | ~139 t/s | parity |
| Decode, host-spill | ~11.5 t/s | ~11.5 t/s | parity |
| Perplexity (wikitext-2 val) | **4.598** | 4.978 | +8.3% |
**Key findings**
- **~2.5× faster empty-context prefill** and **7.2% smaller** than the original.
- **+8.3% perplexity** (4.598 → 4.978) — a modest quality cost for the size reduction.
- **Decode throughput is bimodal on this system** (~140 t/s fully-resident vs ~11 t/s
host-spill). The mode is determined by GPU memory residency, **not** by the model:
both original and REAP exhibit both modes. No model-attributable decode speedup is
claimed. The actionable optimization is to eliminate intermittent host-memory spill
(≈12× decode: 11 → 140 t/s) — a runtime/driver fix, not a model property.
Perplexity is a retention signal, not a capability proof. Validate outputs against the
base model for your workload. Full report and raw per-rep data:
`benchmarks/glm-4.7-flash-reap-20261125/` in the RawrXD repository.
## Notes
This is an experimental REAP-pruned build. Validate outputs against the base model
for your workload before production use.