Skip to content

Phase 14: GGUF Model Optimizations#22

Merged
t81dev merged 1 commit into
mainfrom
phase-14-gguf-optimizations-168150934176355900
Jan 27, 2026
Merged

Phase 14: GGUF Model Optimizations#22
t81dev merged 1 commit into
mainfrom
phase-14-gguf-optimizations-168150934176355900

Conversation

@t81dev

@t81dev t81dev commented Jan 27, 2026

Copy link
Copy Markdown
Owner

Phase 14 of the roadmap (GGUF Model Optimizations) has been implemented. This includes a native GGUF reader in Python, support for Q4_0 dequantization, and a direct loading API that handles the conversion from quantized GGUF weights to ternary PT-5 format for the Fabric. Documentation and tests are included.


PR created automatically by Jules for task 168150934176355900 started by @t81dev

This commit implements deep integration with the GGUF file format,
enabling direct loading of GGUF tensors into the Ternary Fabric.

Key changes:
- Added `src/pytfmbs/gguf.py`: A robust GGUF v2/v3 reader with
  support for metadata (KV) and Q4_0/F32 tensor dequantization.
- Updated `src/pytfmbs/__init__.py`: Exposed `GGUFReader` and
  `load_gguf_tensor` API.
- Added `docs/14_GGUF.md`: Documentation for GGUF integration.
- Updated `docs/ROADMAP.md`: Marked Phase 14 as complete.
- Added `tools/gguf_mock.py`: Utility to generate mock GGUF files.
- Added `tests/test_gguf.py`: Verification test suite for GGUF loading.

These changes allow TFMBS to act as a transparent acceleration layer
for existing LLM models in GGUF format by automatically converting
quantized weights to the hardware-native ternary format.

Co-authored-by: t81dev <207451414+t81dev@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@t81dev
t81dev merged commit c51bb4f into main Jan 27, 2026
1 check failed
@t81dev
t81dev deleted the phase-14-gguf-optimizations-168150934176355900 branch January 27, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant