Skip to main content

Unofficial GGUF adapter extension for Google Model Explorer - visualize llama.cpp GGUF format models

Project description

GGUF Adapter for Model Explorer

Unofficial third-party extension. This project is not affiliated with or endorsed by the llama.cpp project, Georgi Gerganov, or Google. GGUF is the file format of the llama.cpp project.

Visualize GGUF format models in Google Model Explorer.

CI PyPI License Python

Installation

pip install model-explorer-gguf

This automatically installs ai-edge-model-explorer as a dependency.

Usage

Command Line

ggufvis path/to/model.gguf

Or directly via model-explorer:

model-explorer --extensions=model_explorer_gguf path/to/model.gguf

Python API

from model_explorer_gguf import GGUFAdapter

adapter = GGUFAdapter()
graph = adapter.convert("path/to/model.gguf")
# graph is a model_explorer Graph — render with model-explorer or inspect programmatically

Features

  • Full GGUF v1/v2/v3 spec support
  • Hierarchical tensor layout (embeddings, transformer blocks, output)
  • Rich metadata display (architecture, context length, layer count, quantization, etc.)
  • All quantization types recognized (F32, F16, Q4_0, Q8_0, K-quants, I-quants, etc.)
  • Works with any GGUF model (Llama, Mistral, Falcon, Gemma, Phi, etc.)

Supported Formats

Feature Status
GGUF v1, v2, v3
All metadata types (scalars, strings, arrays)
Tensor information (names, shapes, types, offsets)
Hierarchical graph layout
Multi-shard / split models

Development

git clone https://github.com/johnjg75dev/model-explorer-gguf.git
cd model-explorer-gguf
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[dev]"

Run tests with:

pytest

Report issues at https://github.com/johnjg75dev/model-explorer-gguf/issues

License

Apache 2.0 — see LICENSE.

Trademarks

GGUF and llama.cpp are trademarks of the llama.cpp project. This project is not endorsed by or affiliated with the llama.cpp project or its maintainers.

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

model_explorer_gguf-1.0.0.post1.dev0.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

model_explorer_gguf-1.0.0.post1.dev0-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file model_explorer_gguf-1.0.0.post1.dev0.tar.gz.

File metadata

File hashes

Hashes for model_explorer_gguf-1.0.0.post1.dev0.tar.gz
Algorithm Hash digest
SHA256 590655c9c9533d0e7214e320918287f9b34a3a55e9486255297bf61325c8634e
MD5 8bd3b20dbbec3106171e4b2c45bfefea
BLAKE2b-256 b5bf41e532ecdd06e2a1301c098dcb0b0321fb78c96c9c009b7c1fbf7aed1189

See more details on using hashes here.

File details

Details for the file model_explorer_gguf-1.0.0.post1.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for model_explorer_gguf-1.0.0.post1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 678fb35461d3fc30489cc72afea15248daa5aae7fa6d67cf76a3a121c180112b
MD5 bcc045b73eb17d2aea2d1a548ba3afe1
BLAKE2b-256 9742d67822ee31c957554337ce4f9225b531c938792782cef05e744b946e6bc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page