mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #90] Issue: Lack of GLM Model Support in Heretic #44
Labels
No labels
bug
enhancement
enhancement
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
p-e-w/heretic#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Roforum on GitHub (Dec 18, 2025).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/90
Issue: Lack of GLM Model Support in Heretic
Description
Currently, Heretic does not provide native support for the GLM model family. Users attempting to run GLM-based models encounter compatibility issues, primarily due to version requirements and model-specific configurations.
Observations
After testing, we confirmed that GLM models fail to run correctly out-of-the-box with Heretic. This limitation restricts users from leveraging GLM’s full capabilities within the Heretic ecosystem.
Proposed Solution
We have developed a working solution that enables Heretic to support the GLM model. The modified version of the model, GLM-4.6V-Flash-Heretic, has been tested and is fully functional:
GLM-4.6V-Flash-Heretic on Hugging Face
This customization is a personal modification and is not part of the official Heretic release. For users interested in implementing this enhancement, the code and full author details, along with guidance on dynamic auto-registration, can be found here:
Heretic LLM Universal Support for New Models
Benefits
We hope this can serve as a reference for adding official support or providing guidance for community-driven customizations.
@Lissanro commented on GitHub (Dec 19, 2025):
For reference, here is the link to patches that the OP describes on github: https://github.com/p-e-w/heretic/compare/master...Roforum:heretic:master - since you already setup the github fork with the patches, my suggestion would be to send them as pull request for review, this may help maintainers to check them and consider for inclusion (you may need to cleanup your fork first, like perhaps create a separate clean branch where you put only necessary changes without README edits).
@Vinay-Umrethe commented on GitHub (Dec 19, 2025):
I guess you accidently removed the entire 4-bit quant feature that was merged just few days ago.
@Roforum commented on GitHub (Dec 19, 2025):
Thanks for the explanation and the suggestion. I’m still not very familiar with how GitHub workflows work, and I didn’t realize there was a sort of “protocol” to follow when contributing changes.
I’ll try to do what you suggested: clean up my fork, create a separate branch with only the necessary changes, and submit them as a pull request for review. I’ll do my best to improve and follow the proper process.
Thanks again for the guidance.
I think so, I will check and update.
@accemlcc commented on GitHub (Dec 19, 2025):
Just a heads up regarding the review process: The maintainer usually requires proof of functionality (console logs showing successful ablation steps + KLD/Refusal metrics) based on the current codebase. Since your patch removes the newly merged LoRA core, you will likely be asked to refactor your GLM support to work on top of the new LoRA architecture before this can be considered.
Actually, more importantly: Given the heavy reliance on opaque remote_code execution and custom kernels required by the GLM family, I am personally not comfortable actively maintaining or vouching for support for this architecture due to security considerations.
@p-e-w commented on GitHub (Dec 20, 2025):
I'm having a difficult time understanding what exactly the patch consists of, since the forum post is hard to read and the diff above is mostly unrelated changes.
But if, as appears to be the case, it's basically an improvement to
AutoModelForCausalLM, making it work with more models automatically, then this should be submitted to Transformers, not here.@p-e-w commented on GitHub (Mar 16, 2026):
VL model support has been implemented and Heretic now uses the latest version of Transformers.