From 9960506cbee4642a75beda7753cdf23a4f493784 Mon Sep 17 00:00:00 2001 From: Motoki Wu Date: Wed, 8 Feb 2023 10:48:46 -0800 Subject: [PATCH] Fix multiple `eos_token_id`s in model.generate(...) (#21461) * add tests with multiple eos_token_ids * make math.prod instead of sum * make fixup * fix long and also use np.prod since math.prod does not exist