Pavel Iakubovskii
a1e389e637
Refactor return_dict logic to remove complicated if/else paths (#36794)
* SAM
* CLIP
* SigLIP
* GOT-OCR2 (depends on SAM)
* SigLIP2 (depends on SigLIP)
* trigger tests
* Fix SAM
* Fix missed indexing, use named attributes
* Llama
* Aria
* Bamba
* Update llama: missed outputs return type
* (fixup) Aria
* DiffLlama
* Emu3
* Gemma
* Gemma2
* Paligemma
* Fix paligemma
* Gemma3
* GLM
* Helium
* JetMoe
* Jamba
* Mistral
* Mistral
* Mixtral
* Nemotron
* Olmo
* Olmo2
* Persimmon
* Phi
* Phi3
* PhiMoe
* Qwen2
* Qwen2_moe
* StableLM
* Starcoder2
* Add return_dict decorator
* SAM
* Update decorator: compile, export, trace - friendly
* Llama (decorator)
* SAM (decorator)
* Add decorator `can_return_tuple`
* Llama
* Update to decorator
* Update CLIP
* Update decorator to store `_is_top_level_module` in self
* Update decorator to correctly handle compile/export
* Remove is_torchdynamo_compiling constraint, all work fine with self attribute assignment
* Typing
* GPT NeoX
* Fixup
* Fix attribute Granite
* Fix return type mixtral
* Update Gemma3
* Fix Cohere amd Cohere2
* Fixup
* Fix corner case for Phi4, when activation is shared
* (fix-copies) deepseekv3, phi4
* Fixup
* Apply to qwen3/qwen3_moe
* Fix
2025-03-31 16:23:37 +01:00
..
2025-01-24 16:55:28 +01:00
2025-03-05 15:04:06 -08:00
2025-03-21 10:20:05 +01:00
2024-09-19 19:28:04 +01:00
2024-03-19 14:43:02 +00:00
2025-03-12 09:08:12 +01:00
2025-03-31 11:02:49 +02:00
2025-03-31 17:18:43 +02:00
2025-03-19 18:29:40 +00:00
2025-03-27 14:55:50 +00:00
2025-03-25 16:00:11 +01:00
2025-03-31 11:53:02 +02:00
2025-03-31 09:50:49 +02:00
2025-03-25 17:25:39 +01:00
2025-03-31 10:55:47 +02:00
2025-03-28 15:09:35 +01:00
2025-03-27 14:55:50 +00:00
2025-03-31 16:23:37 +01:00
2023-12-20 18:33:17 +00:00
2025-03-20 15:15:01 +00:00
2023-06-15 07:30:24 -04:00
2025-03-14 12:15:32 +00:00
2025-02-21 18:38:41 +01:00
2025-03-31 17:18:43 +02:00
2025-03-05 15:04:06 -08:00
2025-03-17 17:45:57 +00:00
2024-10-31 15:48:11 -04:00
2025-03-27 14:46:11 +01:00
2023-09-05 10:12:25 +02:00
2025-03-28 15:09:35 +01:00
2025-03-17 16:09:46 +01:00