minimaxir / aitextgen

A robust Python tool for text-based AI training and generation using GPT-2.
https://docs.aitextgen.io
MIT License
1.84k stars 220 forks source link

ValueError: Unfeasable length constraints: the minimum length (50) is larger than the maximum length (32) #186

Closed breadbrowser closed 2 years ago

breadbrowser commented 2 years ago

2022-07-14 22:21:07.912961: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2022-07-14 22:21:07.916790: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. Traceback (most recent call last): File "idk.py", line 3, in ai2.generate() File "C:\Users\For36\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\aitextgen\aitextgen.py", line 360, in generate *kwargs, File "C:\Users\For36\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context return func(args, **kwargs) File "C:\Users\For36\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\transformers\generation_utils.py", line 1209, in generate f"Unfeasable length constraints: the minimum length ({min_length}) is larger than the maximum " ValueError: Unfeasable length constraints: the minimum length (50) is larger than the maximum length (32)