transformers/tests/models
Mario Michael Krell bde41d69b4
Correctly drop tokens in SwitchTransformer (#37123)
Previously, the identity function was used for dropped tokens
with a weight from the expert that was not applied to the hidden states.
This was misleading, because dropping means, the expert weight is zero.
Instead of trying to fix the weight, we take an easier approach by initializing with zeros.

Fixes issue https://github.com/huggingface/transformers/issues/37017
2025-04-10 16:58:57 +02:00
..
albert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
align Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
altclip 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
aria [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
audio_spectrogram_transformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
auto Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
autoformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
aya_vision [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
bamba Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
bark Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
bart Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
barthez Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
bartpho Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
beit Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
bert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
bert_generation Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
bert_japanese Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
bertweet Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
big_bird Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
bigbird_pegasus Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
biogpt Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
bit Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
blenderbot Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
blenderbot_small Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
blip 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
blip_2 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
bloom Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
bridgetower 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
bros Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
byt5 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
camembert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
canine Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
chameleon 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
chinese_clip 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
clap Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
clip 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
clipseg Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
clvp Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
code_llama Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
codegen Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
cohere Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
cohere2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
colpali 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
conditional_detr Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
convbert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
convnext Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
convnextv2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
cpm Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
cpmant Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
ctrl Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
cvt Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
dab_detr Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
dac Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
data2vec Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
dbrx Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
deberta Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
deberta_v2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
decision_transformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
deepseek_v3 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
deformable_detr Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
deit Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
depth_anything Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
depth_pro Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
detr Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
diffllama Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
dinat Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
dinov2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
dinov2_with_registers Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
distilbert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
dit Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
donut Add image classifier donut & update loss calculation for all swins (#37224) 2025-04-10 15:00:42 +02:00
dpr Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
dpt Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
efficientnet Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
electra Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
emu3 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
encodec Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
encoder_decoder Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
ernie Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
esm Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
falcon Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
falcon_mamba Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
fastspeech2_conformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
flaubert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
flava Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
fnet Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
focalnet Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
fsmt Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
funnel Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
fuyu 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
gemma Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
gemma2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
gemma3 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
git 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
glm Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
glm4 Add glm4 (#37388) 2025-04-09 14:02:04 +02:00
glpn Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
got_ocr2 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
gpt_bigcode Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
gpt_neo Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
gpt_neox Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
gpt_neox_japanese Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
gpt_sw3 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
gpt2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
gptj Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
granite Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
granitemoe Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
granitemoeshared Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
grounding_dino 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
groupvit Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
helium Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
herbert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
hiera Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
hubert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
ibert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
idefics 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
idefics2 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
idefics3 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
ijepa Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
imagegpt Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
informer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
instructblip 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
instructblipvideo 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
jamba Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
jetmoe Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
kosmos2 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
layoutlm Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
layoutlmv2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
layoutlmv3 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
layoutxlm 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
led Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
levit Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
lilt Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
llama Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
llama4 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
llava [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
llava_next [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
llava_next_video [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
llava_onevision [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
longformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
longt5 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
luke Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
lxmert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
m2m_100 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mamba Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mamba2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
marian Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
markuplm Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mask2former Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
maskformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mbart Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mbart50 Use lru_cache for tokenization tests (#36818) 2025-03-28 15:09:35 +01:00
megatron_bert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
megatron_gpt2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mgp_str Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mimi Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mistral Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mistral3 [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
mixtral Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mllama 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
mluke Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mobilebert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mobilenet_v1 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mobilenet_v2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mobilevit Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mobilevitv2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
modernbert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
moonshine Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
moshi Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mpnet Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mpt Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mra Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
mt5 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
musicgen Allow rocm systems to run these tests (#37278) 2025-04-10 13:33:01 +02:00
musicgen_melody Allow rocm systems to run these tests (#37278) 2025-04-10 13:33:01 +02:00
mvp Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
myt5 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
nemotron Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
nllb Use lru_cache for tokenization tests (#36818) 2025-03-28 15:09:35 +01:00
nllb_moe Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
nougat Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
nystromformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
olmo Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
olmo2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
olmoe Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
omdet_turbo 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
oneformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
openai Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
opt Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
owlv2 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
owlvit Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
paligemma 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
paligemma2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
patchtsmixer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
patchtst Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
pegasus Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
pegasus_x Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
perceiver Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
persimmon Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
phi Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
phi3 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
phi4_multimodal Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
phimoe Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
phobert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
pix2struct 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
pixtral [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
plbart Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
poolformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
pop2piano 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
prompt_depth_anything Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
prophetnet Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
pvt Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
pvt_v2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
qwen2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
qwen2_5_vl [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
qwen2_audio [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
qwen2_moe Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
qwen2_vl [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
qwen3 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
qwen3_moe Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
rag Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
recurrent_gemma Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
reformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
regnet Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
rembert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
resnet Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
roberta Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
roberta_prelayernorm Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
roc_bert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
roformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
rt_detr Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
rt_detr_v2 chore: fix typos in the tests directory (#36813) 2025-03-21 10:20:05 +01:00
rwkv Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
sam 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
seamless_m4t Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
seamless_m4t_v2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
segformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
seggpt Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
sew Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
sew_d Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
shieldgemma2 [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
siglip Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
siglip2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
smolvlm [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
speech_encoder_decoder Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
speech_to_text 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
speecht5 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
splinter Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
squeezebert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
stablelm Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
starcoder2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
superglue Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
superpoint Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
swiftformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
swin Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
swin2sr Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
swinv2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
switch_transformers Correctly drop tokens in SwitchTransformer (#37123) 2025-04-10 16:58:57 +02:00
t5 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
table_transformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
tapas Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
textnet Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
time_series_transformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
timesformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
timm_backbone Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
timm_wrapper Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
trocr 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
tvp Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
udop 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
umt5 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
unispeech Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
unispeech_sat Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
univnet chore: fix typos in the tests directory (#36813) 2025-03-21 10:20:05 +01:00
upernet Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
video_llava Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
videomae Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
vilt Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
vipllava [chat-template] Unify tests and clean up 🧼 (#37275) 2025-04-10 14:42:32 +02:00
vision_encoder_decoder Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
vision_text_dual_encoder 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
visual_bert Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
vit Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
vit_mae Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
vit_msn Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
vitdet Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
vitmatte Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
vitpose Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
vitpose_backbone Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
vits Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
vivit Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
wav2vec2 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
wav2vec2_bert 🚨 🚨 Setup -> setupclass conversion (#37282) 2025-04-08 17:15:37 +01:00
wav2vec2_conformer Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
wav2vec2_phoneme Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
wav2vec2_with_lm use torch.testing.assertclose instead to get more details about error in cis (#35659) 2025-01-24 16:55:28 +01:00
wavlm Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
whisper Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
x_clip Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
xglm Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
xlm Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
xlm_roberta Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
xlm_roberta_xl Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
xlnet Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
xmod Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
yolos Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
yoso Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
zamba Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
zamba2 Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
zoedepth Use Python 3.9 syntax in tests (#37343) 2025-04-08 14:12:08 +02:00
__init__.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00