mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #62] Magistral support #30
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#30
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 @matrix07012 on GitHub (Dec 2, 2025).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/62
Would it be possible to support Magistral-Small-2509?
Unrecognized configuration class <class 'transformers.models.mistral3.configuration_mistral3.Mistral3Config@Vinay-Umrethe commented on GitHub (Dec 2, 2025):
Looking at the model's card the one you are using
mistralai/Magistral-Small-2509seems to be a normaltext-generationmodel and should have worked, but didn't as it doesn't have atransformersORtext-generationpipeline set in it's readme.md which actually is not the cause for error. It suggest it won't work with normal transformers you have.DO THIS:
IF THAT DOESN'T WORK I THINK YOU WOULD HAVE TO MANUALLY CHANGE THESE LINES AFTER THIS INSTALLATION.
where ever your
heretic-llmpackage is installed like insite-packageschange
AutoModelForCausalLMtoMistral3ForConditionalGenerationas this seems to be a little different architecture.src/model.pyAND
@Vinay-Umrethe commented on GitHub (Dec 2, 2025):
it's also a vision model too, so not sure if it would work with these configs.
I can suggest you, if this still doesn't work you can change
AutoModelForCausalLMTOAutoModelForImageTextToTextand useOpenGVLab/InternVL3_5-30B-A3B-HFModel Which is nearly the same as the other model you are trying on.I have tried it's smaller variants and they work great even on CPU inference tests.
SO might fit into your requirments it's a good model.
@matrix07012 commented on GitHub (Dec 2, 2025):
That sadly didn't work,
but thanks for the tip. I wasn't aware of InternVL.
@Vinay-Umrethe commented on GitHub (Dec 2, 2025):
ok, the problem can be due to it's tokenizer, and the model is not so supported by transformers.
So you can re-install normal transformers latest one, and change to
AutoModelForImageTextToTextand use InternVL3.5 Series Models which are supported by transformers and are fast.@p-e-w commented on GitHub (Oct 12, 2026):
This almost certainly works now as Transformers has been updated many times since.