Skip to content
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

If a token_string contains commas then the trailing crashes #53

Open
itsallmememe opened this issue Apr 23, 2024 · 0 comments
Open

If a token_string contains commas then the trailing crashes #53

itsallmememe opened this issue Apr 23, 2024 · 0 comments

Comments

@itsallmememe
Copy link

We're consistently getting crashes in the training script if we submit a comma in the token_string

Failing training model
https://replicate.com/p/e76k0ze9a9rgm0cf1cftefcr0m?input=form

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/cog/server/worker.py", line 217, in _predict
result = predict(**payload)
File "train.py", line 133, in train
n_tok = int(token.split(":")[1])
IndexError: list index out of range

Reproducible, crashes every time.

@itsallmememe itsallmememe changed the title If a token_string contains commas then the trailing crashes If a token_string contains commas then the trailing crashes Apr 23, 2024
@itsallmememe itsallmememe changed the title If a token_string contains commas then the trailing crashes If a token_string contains commas then the trailing crashes Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant