GGUF inspection and tensor-level LLM memory placement planning
moon run src/cmd/llmcalc --target native -- inspect /path/to/model.gguf --jsonmoon run src/cmd/llmcalc --target native -- plan /path/to/model.gguf \
--vram 16GiB --ram 64GiB --context 8K --json| Verification | Recorded result |
|---|---|
| MoonBit native tests, warnings denied | 100/100 passed |
| Existing manual-calculator CLI verification | 42/42 cases, 44 real processes |
| GGUF CLI verification | 43/43 cases, 73 real processes |
| Validation-tool guards and allocation/log checks, no GPU used | 25/25 passed |
| Real GGUF versus pinned official reader | Historical: 2 tiny models, 105 matched descriptors; extension: Qwen2.5 and Qwen3.5, 611 matched original-file descriptors plus split checks |
| Actual sparse-file inspection | 4,294,967,460 logical bytes; 109 bytes read; no tensor payload read |
| CPU backend loading comparison | Historical tiny models: 4/4 runs. Added Qwen2.5 single/split: 4/4 runs. Model and allocated KV predictions within backend log rounding intervals |
| CUDA backend comparison, WSL2 RTX 5060 Ti | 7/7 cases; per-layer model/KV placement matched and allocation oracle fell within printed buffer intervals |
moon run src/cmd/llmcalc --target native -- \
--params 27B --quant Q4_K_M --vram 16GiB --ram 64GiB --context 8K --jsonmoon check --target native --deny-warn
moon test --target native --deny-warn
moon fmt --check
moon build --target native --release --deny-warn
python3 scripts/verify_cli.py _build/native/release/build/cmd/llmcalc/llmcalc.exe
python3 scripts/verify_gguf.py _build/native/release/build/cmd/llmcalc/llmcalc.exe
python3 scripts/verify_gpu_tools.pyInstall
Download zipGGUF inspection and tensor-level LLM memory placement planning