transformers
chore(typing): Add type checking to `src/transformers/quantizers`
#44412
Merged

chore(typing): Add type checking to `src/transformers/quantizers` #44412

tarekziade merged 43 commits into main from tarekziade-typing-quantizers
tarekziade
tarekziade tarekziade force pushed from 7f3d268c to 80499115 15 days ago
tarekziade tarekziade changed the title chore(typing): Add type checking to `src/transformers/generation` chore(typing): Add type checking to `src/transformers/quantizers` 15 days ago
tarekziade
tarekziade tarekziade assigned tarekziade tarekziade 15 days ago
tarekziade tarekziade force pushed from 80499115 to 87ac38b0 14 days ago
tarekziade tarekziade force pushed from 87ac38b0 to ea212202 13 days ago
tarekziade
tarekziade commented on 2026-03-05
tarekziade tarekziade requested a review from vasqu vasqu 13 days ago
vasqu
vasqu commented on 2026-03-06
tarekziade tarekziade force pushed from 087b3ccd to 2139b1e6 12 days ago
tarekziade tarekziade force pushed from 5714a089 to b202c773 12 days ago
tarekziade tarekziade requested a review from vasqu vasqu 12 days ago
tarekziade tarekziade force pushed from dbe048c3 to ee5781d6 10 days ago
HuggingFaceDocBuilderDev
vasqu
vasqu approved these changes on 2026-03-09
tarekziade tarekziade force pushed from 9cbadfa0 to 7e6c53f4 9 days ago
tarekziade
github-actions
github-actions
tarekziade
vasqu
vasqu commented on 2026-03-10
tarekziade
github-actions
github-actions
tarekziade
github-actions
tarekziade
github-actions
github-actions
github-actions
tarekziade tarekziade force pushed from dacbfde5 to e8d63cc3 8 days ago
tarekziade
github-actions
SunMarc
SunMarc
SunMarc approved these changes on 2026-03-10
tarekziade
tarekziade chore(typing): add `ty` type checking for src/transformers/generation
6b3d450c
tarekziade extend make file
78eb16e8
tarekziade chore(typing): further reduce ty diagnostics (36→18), replace assert …
c0f9ac9c
tarekziade more tweaking
f80e4079
tarekziade fix get word size
52b10676
tarekziade date
ab2bd374
tarekziade cast value
afd50484
tarekziade @zucchini-nlp reviews
32aa9e6c
tarekziade model_kwargs cannot be None, fix type annotations
1cf87929
tarekziade removed redundancy
ae423792
tarekziade bypass type checking to reduce code complexity
46ba6171
tarekziade de-vectorize
c501fb3f
tarekziade unified _typing
07e44ed4
tarekziade explain why we pollute inheritance with a protocol
0d44bffd
tarekziade do not import torch for type checking, it breaks on CI logging usage
f9f6e280
tarekziade Add check_types.py to wrap ty type checking
3414063b
tarekziade improved ty usage
0fc155f2
tarekziade chore(typing): Add type checking to src/transformers/quantizers
ad00556a
tarekziade fix merge error
10361eda
tarekziade reworked the typing using previous PR best practices
c86b5c64
tarekziade format and torch.neuron fix
18592a01
tarekziade revert bad upstream merge
32d18468
tarekziade narrow isinstance
4f9f2c7e
tarekziade cleaner const, also 1.23.99 vs 1.24.0
19cdf6dc
tarekziade clean up old cast
ae569bcc
tarekziade removing leftover
78b0b015
tarekziade lets just use setattr
3288c138
tarekziade tweaked one more optimum version
f75067c2
tarekziade setattr again
c8f41de0
tarekziade more setattr/getattr patyterns
d40101d6
tarekziade more cleanups
9d5dd5ea
tarekziade fmt
756794f1
tarekziade cleanups from rebase abd ty 0.20.0
7e3cb429
tarekziade fix ignores
d044b383
tarekziade const for torchao version
1c9bd9fc
tarekziade simplify call
d7e87d57
tarekziade use is_torch_greater_or_equal
a0213d83
tarekziade use type guard
c4dd7b41
tarekziade remove the getattr() pattenr
f5f9cc2b
tarekziade reworked the approach
a0b2785f
tarekziade Update src/transformers/quantizers/quantizer_sinq.py
30c3100c
tarekziade Update src/transformers/quantizers/quantizer_quanto.py
d29ec940
tarekziade tarekziade force pushed from ce0ca963 to d29ec940 8 days ago
tarekziade
tarekziade class is there we can use it
331b3687
github-actions
tarekziade
github-actions
github-actions
github-actions
tarekziade tarekziade merged 8464284d into main 8 days ago
tarekziade tarekziade deleted the tarekziade-typing-quantizers branch 8 days ago

Login to write a write a comment.

Login via GitHub

Assignees
Labels
Milestone