salesforce / GeDi

GeDi: Generative Discriminator Guided Sequence Generation
https://arxiv.org/abs/2009.06367
BSD 3-Clause "New" or "Revised" License
208 stars 47 forks source link

Transformers compatibility issue #19

Closed alokkrsahu closed 12 months ago

alokkrsahu commented 1 year ago

Can we not run the GeDI on current transformers version 4.30.0?

I tried running run_generation.sh file but getting error from transformer.file_utils?

Can anyone suggest how to fix this code, or redirect me to any new version of the code, or new technique, please?

Any help would be appreciated!!

Thanks in advance!

Thanks and regards, Alok

gWeiXP commented 12 months ago

Transformers version 2.8.0 is OK, any version > 3 will not run successfully. (A lot of other models, version 3 only works, get angry)

alokkrsahu commented 12 months ago

Thank you for your response 🙏