transformers
3f40ebf6 - Allow custom args in `custom_generate` Callables and unify generation args structure (#40586)

Commit
128 days ago
Allow custom args in `custom_generate` Callables and unify generation args structure (#40586) * Squashed commit of the following: commit beb2b5f7a04ea9e12876696db66f3589fbae10c5 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 16:03:25 2025 +0200 also standardize _get_stopping_criteria commit 15c25663fa991e0a215a7f3cdcf13a9d3a989faa Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 15:48:38 2025 +0200 watch super.generate() usages commit 67dd845be2202d191a54b2872f1cb3f71b74b7d6 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 14:44:32 2025 +0200 ops commit 4655dfa28fd59d5dc083a41d8396de042d99858c Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 14:41:36 2025 +0200 wrong merge commit 46478143994e7b27d51c972a7881e0fea3cb6e3c Merge: a72c2c4b2f 8564e210ca Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 14:36:15 2025 +0200 Merge branch 'main' of github.com:huggingface/transformers into fix-custom-gen-from-function2 commit a72c2c4b2f9c0e09fe6ec7992d4d02bfa279da2a Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 14:04:59 2025 +0200 ops5 commit e72f91411b961979bb3d271810f57905cee5b577 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 12:06:19 2025 +0200 ops4 commit 12ca97b1078a42167143e0243036f6ef87d5fdac Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 11:58:59 2025 +0200 ops3 commit 8cac6c60a318dd381793d4bf1ef3775823f3c95b Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 11:43:03 2025 +0200 ops2 commit 4681a7d5dc6c8b96a515d9d79f06380c096b9a9f Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 11:40:51 2025 +0200 ops commit 0d72aa6cbd99a5933c5a95a39bea9088ee21e50f Merge: e0d47e980e 5bb6186b8e Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 11:37:28 2025 +0200 Merge branch 'remove-constrained-bs' into fix-custom-gen-from-function2 commit 5bb6186b8efbd5fdb8e3464a22f958343b9c450c Merge: 44973dac7d b0db5a02f3 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 11:36:30 2025 +0200 Merge branch 'main' into remove-constrained-bs commit 44973dac7df4b4e2111c71f5fac918be21f3de52 Merge: 1ddab4bee1 893d89e5e6 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 11:29:48 2025 +0200 Merge commit '893d89e5e6fac7279fe4292bfa3b027172287162' into remove-constrained-bs commit e0d47e980e26d32b028c2b402ccb71262637a7a7 Merge: 88128e4563 1ddab4bee1 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 10:52:50 2025 +0200 Merge branch 'remove-constrained-bs' into fix-custom-gen-from-function2 commit 88128e4563c0be583728e1d3c639bc93143c4029 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Mon Sep 1 10:44:38 2025 +0200 fix custom generate args, refactor gen mode args commit 1ddab4bee159f6c20722e7ff5cd41d5041fab0aa Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Sun Aug 31 21:03:53 2025 +0200 fix commit 6095fdda677ef7fbeb06c05f4f914a11b45257b4 Merge: 4a8b6d2ce1 04addbc9ec Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Thu Aug 28 17:49:16 2025 +0200 Merge branch 'remove-constrained-bs' of github.com:manueldeprada/transformers into remove-constrained-bs commit 4a8b6d2ce18b3a8b52c5261fea427e2416f65187 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Thu Aug 28 17:48:25 2025 +0200 restore and deprecate beam obkects commit 04addbc9ec62dd4f59d15128e8cd9499e2cda3bb Merge: e800c7841e becab2c601 Author: Manuel de Prada Corral <6536835+manueldeprada@users.noreply.github.com> Date: Thu Aug 28 14:38:29 2025 +0200 Merge branch 'main' into remove-constrained-bs commit e800c7841e5c46ce5698fc9be309d0808f85d23c Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Thu Aug 28 14:38:10 2025 +0200 tests gone after green commit 33971d21ac40aef76a7e1122f4a98ef28beadbe8 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Thu Aug 28 14:07:11 2025 +0200 tests green, changed handling of deprecated methods commit ab303835c184d0a87789da7aed7d8de5ba85d867 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Thu Aug 28 12:58:01 2025 +0200 tests fix commit ec74274ca52a6aa0b5f300374fda838609680506 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Thu Aug 28 12:32:05 2025 +0200 ops commit 0fb19004ccd285dcad485fce0865b355ce5493e0 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Thu Aug 28 11:45:16 2025 +0200 whoops commit c946bea5e45aea021c8878c57fcabc2a13f06fe5 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Thu Aug 28 11:35:36 2025 +0200 testing... commit 924c0dec6d9ea6b4890644fe7f711dc778f820bb Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Thu Aug 28 11:22:46 2025 +0200 sweeep ready for tests commit b05aa771d3994b07cd460cda74b274c9e4f315e6 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Thu Aug 28 11:13:01 2025 +0200 restore and deprecate constraints commit 9c7962d10efa7178b69d3c99e69663756e1cd979 Merge: fceeb383f9 c17bf304d5 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Wed Aug 27 20:44:21 2025 +0200 Merge branch 'remove-group-bs' into remove-constrained-bs commit c17bf304d5cf33af7f34f9f6057915d5f5821dae Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Wed Aug 27 17:00:50 2025 +0200 fix test commit d579aeec6706b77fcc24c1f6806cd7277d7db56e Merge: 822efd8c3c ed5dd2999c Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Wed Aug 27 16:04:31 2025 +0200 Merge branch 'main' of github.com:huggingface/transformers into remove-group-bs commit 822efd8c3cf475d079e64293aa06e4ab59740fd7 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Wed Aug 27 15:59:51 2025 +0200 aaand remove tests after all green!! commit 62cb274a4acb9f24201902242f1b0dc4e46daac1 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Wed Aug 27 11:48:19 2025 +0200 fix commit c89c892e7b24a7d71831f2b35264456005030925 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Wed Aug 27 11:45:20 2025 +0200 testing that hub works the same commit fceeb383f99e4a836679d67b1d2a8520152eaf49 Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Tue Aug 26 20:06:59 2025 +0200 draft commit 6a9b384078f3798587ba865ac7ddfefc9a79e41c Merge: 8af3af13ab 58cebc848b Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Tue Aug 26 15:00:05 2025 +0200 Merge branch 'main' of github.com:huggingface/transformers into remove-group-bs commit 8af3af13abb85ca60e795d0390832f398a56c34f Author: Manuel de Prada Corral <manueldeprada@gmail.com> Date: Tue Aug 26 11:55:45 2025 +0200 Squashed commit remove-constrastive-search * ops * fix * ops * review * fix * fix dia * review
Author
Parents
Loading