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.1.post1.dev1.tar.gz (22.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.1.post1.dev1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file model_explorer_gguf-1.0.1.post1.dev1.tar.gz.

File metadata

File hashes

Hashes for model_explorer_gguf-1.0.1.post1.dev1.tar.gz
Algorithm Hash digest
SHA256 221cab31a9de25e575c9763032ab0451157714467ad02982ba9aad566b6e3d6a
MD5 b34f4c5050723b0eb5a7a689b1f3b7d3
BLAKE2b-256 05226baf0d743aba80dcaae661b91c7ac924d2f873298e4ea1933581b445de0d

See more details on using hashes here.

File details

Details for the file model_explorer_gguf-1.0.1.post1.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for model_explorer_gguf-1.0.1.post1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 4644765092cd83261a5c97b37a0fb69e6a2c253a9549bbe6fcdb5d82f01967c4
MD5 7bfc5cc5b315cd2990206481c8510575
BLAKE2b-256 39a69d17b7f24747b94f77b24cd07d55003ea8f20e3fd1b18a95b2af84ba090d

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