gpustack/gguf-parser-go

Review/Check GGUF files and estimate the memory usage and maximum tokens per second.

What it solves

GGUF Parser allows you to inspect GGUF model files and estimate their hardware requirements without needing to download the entire file or run the model. It helps users quickly determine if a model will fit in their system's memory and how it might perform.

How it works

The tool uses chunked reading to parse metadata directly from local files or remote URLs (including HuggingFace, ModelScope, and Ollama). By reading only the necessary parts of the file, it avoids full downloads. It then calculates memory usage (RAM/VRAM) and estimates performance metrics like tokens per second based on your specific hardware configuration.

Who it’s for

This tool is designed for developers and AI engineers who work with GGUF-formatted models and need a fast, efficient way to verify model compatibility and resource allocation before deployment.

Highlights

  • No Full Download Required: Uses chunked reading to inspect remote files without downloading the entire model.
  • Accurate Memory Estimation: Predicts memory usage with high precision, typically deviating by only about 100MiB.
  • Performance Forecasting: Estimates maximum tokens per second based on provided device metrics.
  • Versatile Compatibility: Supports various model types including Embedding, Reranking, and Decision models, as well as specialized architectures like MLA and SWA.
  • Efficient Performance: Written in Go for fast, lightweight execution.

Related

  • Project
  • Dispatch
  • Dispatch
  • Project
  • Project