transformers
[`Mxfp4`] Add a way to save with a quantization method
#40176
Merged

[`Mxfp4`] Add a way to save with a quantization method #40176

ArthurZucker merged 36 commits into main from save-post-quantize
ArthurZucker
ArthurZucker add a test
bc656531
ArthurZucker tempdir
ff5b81a4
ArthurZucker
github-actions
ArthurZucker fix import issue[
86a7d473
ArthurZucker wow I am tired
d1f1533d
HuggingFaceDocBuilderDev
ArthurZucker properly init
05a379ca
ArthurZucker i am not super familiar with quantizer api :|
4c69662e
ArthurZucker set to TRUE fro now
a325d2d7
ArthurZucker full support
d9e8845e
ArthurZucker push current changes
8b019870
ArthurZucker will clean this later but the imports are a shitshow here
5d9a0040
winglian
winglian commented on 2025-08-16
winglian
winglian commented on 2025-08-16
ArthurZucker this correctly saves the block and scales but forward seems broken
75616fa3
ArthurZucker quanitze was not correct
069d1ad8
ArthurZucker fix storage
ed0049c7
ArthurZucker why were bias even included
825f3d02
ArthurZucker finally!
f9cc70e6
ArthurZucker
github-actions
ArthurZucker style
d42f27ab
ArthurZucker fix style
5570c5fa
ArthurZucker remove print
f0c14523
ArthurZucker lazy import
cf167895
ArthurZucker up
bb84ae10
ArthurZucker not sure what happens this works now?
8ef69e23
ArthurZucker holy molly it was not so far
131b9028
ArthurZucker okay this seems to work!
988cdd92
ArthurZucker workings!!!
fd040090
ArthurZucker allow save_pretrained to create PR
85e982cd
ArthurZucker
github-actions
ArthurZucker
ArthurZucker commented on 2025-08-18
ArthurZucker Apply suggestions from code review
59f75816
ArthurZucker fixup
e0839c9c
ArthurZucker add deqyabtze fakse as wek
b05218a3
SunMarc
SunMarc commented on 2025-08-19
SunMarc working new
c250b05f
SunMarc fix
a5aadbe4
SunMarc
github-actions
ArthurZucker
ArthurZucker commented on 2025-08-21
SunMarc rm swizzle and unswizzle during saving
9b575d8e
SunMarc rm print
a8fa97e3
ArthurZucker
ArthurZucker commented on 2025-08-21
ArthurZucker Update src/transformers/modeling_utils.py
a698e179
SunMarc
SunMarc approved these changes on 2025-08-21
SunMarc
github-actions
SunMarc Merge remote-tracking branch 'upstream/main' into save-post-quantize
ff1a1a0b
SunMarc fix
54be1a15
github-actions
SunMarc style
dfc9ef3d
ArthurZucker ArthurZucker merged 6bf6f849 into main 300 days ago
ArthurZucker ArthurZucker deleted the save-post-quantize branch 300 days ago
ArthurZucker ArthurZucker added Quantization

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone