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

Parquet upload fails #104

Open
platypii opened this issue Dec 9, 2024 · 0 comments
Open

Parquet upload fails #104

platypii opened this issue Dec 9, 2024 · 0 comments

Comments

@platypii
Copy link

platypii commented Dec 9, 2024

I generated a parquet file by using the tokenize_data.py script in the together-python repo to generate a parquet file with tokenized data. I followed the steps here https://docs.together.ai/docs/fine-tuning-data-preparation#tokenized-data

python tokenize_data.py --tokenizer openai-community/gpt2 --out-filename dataset.parquet

I then tried to upload this dataset to together:

import { upload } from 'together-ai/lib/upload'
await upload('dataset.parquet')
"failed to read parquet file dataset.parquet"

With a bit of added logging in together-typescript I found the more specific error message:

invalid parquet version

Which is coming from inside the parquetjs library which is woefully unmaintained in 5+ years and does not support the majority of modern parquet files. #102 also ran into a parquet parsing issue. Might be worth using a different parquet library.

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