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
format- GGUF file parsing and metadata extraction using Candleformat::load_gguf_metadata_sync- Synchronous GGUF metadata loadingformat::load_gguf_metadata_with_full_content_sync- Extended metadata loading with full tokenizer contentformat::readable_value_for_key- Human-readable value formatting
gui- Graphical user interface components built with eguigui::GgufApp- Main application struct implementingeframe::Appgui::apply_inspector_theme- Inspector Gadget theme applicationgui::export_csv,gui::export_yaml,gui::export_markdown- Multi-format export functionsgui::load_gguf_metadata_async- Asynchronous file loading with progress tracking
localization- Internationalization system with multi-language supportlocalization::LocalizationManager- Central localization coordinatorlocalization::Language- Supported language enumerationlocalization::SystemLocaleDetector- Automatic locale detection
§Architecture
Inspector GGUF follows a modular architecture with clear separation of concerns:
- Core Parsing: The
formatmodule handles all GGUF file operations using thecandleframework - User Interface: The
guimodule provides immediate-mode GUI components withgui::GgufAppas the central coordinator - Internationalization: The
localizationmodule manages translations throughlocalization::LocalizationManagerand locale detection vialocalization::SystemLocaleDetector
§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.