Crate inspector_gguf

Crate inspector_gguf 

Source
Expand description

§Inspector GGUF

A powerful GGUF file inspection tool with both graphical and command-line interfaces. Inspector GGUF provides comprehensive analysis of GGUF (GPT-Generated Unified Format) model files used in machine learning and AI development.

§Features

  • Deep GGUF Analysis: Comprehensive metadata extraction and display
  • Modern GUI: Intuitive interface with drag-and-drop support built with egui
  • Export Capabilities: Multiple formats (CSV, YAML, Markdown, HTML, PDF)
  • Tokenizer Support: Chat templates, token analysis, binary data handling
  • Internationalization: Multi-language support (English, Russian, Portuguese Brazilian)
  • Performance Profiling: Built-in puffin profiler integration
  • Auto-updates: Automatic update checking from GitHub releases

§Quick Start

§As a Library

use inspector_gguf::format::load_gguf_metadata_sync;
use std::path::Path;

// Load GGUF metadata from a file
let path = Path::new("model.gguf");
let metadata = load_gguf_metadata_sync(path)?;

// Access metadata information
println!("Loaded {} metadata entries", metadata.len());

§GUI Application

use inspector_gguf::gui::app::GgufApp;
use eframe::NativeOptions;

let options = NativeOptions::default();
eframe::run_native(
    "Inspector GGUF",
    options,
    Box::new(|_cc| Ok(Box::new(GgufApp::default()))),
)

§Module Organization

§Architecture

Inspector GGUF follows a modular architecture with clear separation of concerns:

§Error Handling

All public APIs use structured error types that implement std::error::Error. Error handling follows Rust best practices with detailed error messages and proper error propagation.

§Performance

Inspector GGUF is designed for efficient handling of large GGUF files:

  • Streaming file parsing to minimize memory usage
  • Async operations for non-blocking file loading
  • Built-in profiling support with puffin integration
  • Optimized data structures for metadata storage

§Platform Support

  • Windows: Native support with proper resource embedding
  • macOS: Full compatibility with native file dialogs
  • Linux: Complete support with system integration

For more information, see the GitHub repository.

Modules§

format
GGUF file format parsing and metadata extraction.
gui
GUI module system for Inspector GGUF application.
localization
Internationalization and localization system for Inspector GGUF.