-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OverflowError: Python int too large to convert to C long #95
Comments
So, I'm out of my depth here. But this looks like it is expecting a C long, but |
This was added with #67 That change will not affect the model/dataset construction at all. What OS are you using? I see |
@minimaxir Windows 10 build 19042 64-bit with Python 3.8.7 64-bit. Edit: And it still fails when I plug |
I have this issue also, Windows 10 20H2 (19042.804), using Python 3.9.2, the change in TokenDataset.py also fixed it for me and allows me to import and generate for what it's worth I also see |
So this is apparently a complicated quirk. From that, it seems |
when importing the model:
from aitextgen import aitextgen
i got the error:
solved by changing
csv.field_size_limit(sys.maxsize)
in TokenDataset.py
by :
Does this change affect the model?
The text was updated successfully, but these errors were encountered: