Commit 326eb75
Fix T5 tests: use generation_config for generation parameters (#42419)
* pass the generation parameters to generate()
* fix use_task_specific_params to separate model.config and model.generation_config params
* fix style
* some fixes
* remove redundant check
* update expectation for llama_7b_bf16 on rocm
* Update tests/models/llama/test_modeling_llama.py
Co-authored-by: Rémi Ouazan <83456801+remi-or@users.noreply.github.com>
---------
Co-authored-by: Rémi Ouazan <83456801+remi-or@users.noreply.github.com>1 parent ec3f555 commit 326eb75
File tree
2 files changed
+14
-6
lines changed- tests/models
- llama
- t5
2 files changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
932 | 933 | | |
933 | 934 | | |
934 | 935 | | |
935 | | - | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
936 | 947 | | |
937 | 948 | | |
938 | 949 | | |
| |||
1032 | 1043 | | |
1033 | 1044 | | |
1034 | 1045 | | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | 1046 | | |
1039 | 1047 | | |
1040 | 1048 | | |
1041 | 1049 | | |
1042 | | - | |
| 1050 | + | |
1043 | 1051 | | |
1044 | 1052 | | |
1045 | 1053 | | |
| |||
0 commit comments