mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-24 03:59:23 +01:00
Separate the `generate` function, no longer use the implementation in the transformers library to avoid error due to transformers version upgrades. Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/12340643