Skip to content

Commit 2fd6e9f

Browse files
Preparing for version 0.5 and checking CI (#310)
1 parent 7cec62e commit 2fd6e9f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

optimum_benchmark/backends/pytorch/backend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,9 @@ def forward(self, inputs: Dict[str, Any], kwargs: Dict[str, Any]) -> OrderedDict
436436

437437
@torch.inference_mode()
438438
def prefill(self, inputs: Dict[str, Any], kwargs: Dict[str, Any]) -> OrderedDict:
439-
assert (
440-
kwargs.get("max_new_tokens") == kwargs.get("min_new_tokens") == 1
441-
), "For prefilling, max_new_tokens and min_new_tokens must be equal to 1"
439+
assert kwargs.get("max_new_tokens") == kwargs.get("min_new_tokens") == 1, (
440+
"For prefilling, max_new_tokens and min_new_tokens must be equal to 1"
441+
)
442442
return self.pretrained_model.generate(**inputs, **kwargs)
443443

444444
@torch.inference_mode()

optimum_benchmark/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "0.5.0.dev0"
15+
__version__ = "0.5.0"

0 commit comments

Comments
 (0)