Fix Dory vocabulary resizing, loop validation, and last-loop static caching (#50982)
* add fixes to Dory
Co-authored-by: Codex
Signed-off-by: Shantanu Acharya <shantanua@nvidia.com>
* Revert static caching change and update the vocab resizing for dory
Co-authored-by: Codex
Signed-off-by: Shantanu Acharya <shantanua@nvidia.com>
---------
Signed-off-by: Shantanu Acharya <shantanua@nvidia.com>