Repository navigation
feat(windows): expand Qwen and Gemma checkpoint support for OOB Huggingface uncensored models - #831
Open
trcwebdesign wants to merge 19 commits into
Open
trcwebdesign wants to merge 19 commits into
trcwebdesign wants to merge 19 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> # Conflicts: # python/freetoken/kernel/gguf.py # python/freetoken/layers/gguf.py # python/freetoken/models/gguf/dequant.py # python/freetoken/moe/fused_q4_0.py # tests/moe/test_cpu_moe_q4_0.py
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ME and getting a huge performance gain 2times faster as before on Blackwell
# Conflicts: # python/freetoken/models/gguf/tokenizer.py
…es and preserves the companion mmproj vision configuration.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR contains a broad set of changes focused on improving Windows support for large Qwen and Gemma models in FreeToken, covering:
NVFP4 and GGUF checkpoint loading
MoE execution and offloading
Improved checkpoint compatibility
Additional groundwork for direct Hugging Face model support
I acknowledge that this exceeds the preferred "one change per PR" contribution guideline and combines multiple areas of work that would normally be submitted separately.
The reason for opening it in this form is that these changes were developed in a private fork over an extended period.
Rather than leaving the work isolated, I wanted to make it available to the project maintainers and community.
Even if the PR is ultimately split or only parts are accepted, I believe several of the changes may be useful as a reference
or as a basis for future support of out-of-the-box Hugging Face models loading (see below).
These specific uncensored model builds and the Windows launch workflows documented here are supported by this fork, maybe not by the upstream/origin FreeToken repository. Upstream does not include all of this fork's checkpoint compatibility fixes and Windows-specific features, so do not expect these models to run there with the commands or configuration shown here.
gemma-4-26B-A4B-it-abliterated-Q4_0-GGUFgemma-4-26B-A4B-it-ultra-uncensored-heretic-BF16-nvfp4-with-metadatagemma-4-26B-A4B-it-ultra-uncensored-heretic-GGUFGemma-4-26B-A4B-it-Uncensored-EXPERTS-NVFP4Gemma-4-26B-A4B-it-Uncensored-FP8Gemma-4-26B-A4B-it-Uncensored-TRC-nvfp4Ornith-1.5-35B-A3B-FULL-OBLITERATED-NVFP4Ornith-1.5-35B-A3B-uncensored-NVFP4Qwen3.6-Fallen-Fabulist-35B-A3B-hereticQwen3.6-Fallen-Fabulist-35B-A3B-heretic-GGUFQwen3.8-Flash-Next-ABLITERATED-NVFP4Qwen3.8-Flash-Next-Uncensored-FP8Qwen3.8-Flash-Next-Uncensored-NVFP4supergemma4-e4b-abliterated-i1-GGUFWhat changed
Performance notes
Up to 100 tokens/s on some Blackwell/model combinations and about 10 tokens/s for Qwen3.8-Flash-Next NVFP4 in the reported setup. Throughput depends on hardware, checkpoint, context length, and serving configuration.
Please include the tested GPU, CPU, driver, exact checkpoint ID, exact command, and comparable
mainversus branch results before presenting these figures as benchmark results.Review notes
The branch includes two archived site-library ZIPs. Please confirm they are intended upstream deliverables; otherwise remove them from the PR before submission.