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

How to train the model using MIC_sampled? #20

Open
ElegantLin opened this issue Oct 26, 2023 · 1 comment
Open

How to train the model using MIC_sampled? #20

ElegantLin opened this issue Oct 26, 2023 · 1 comment

Comments

@ElegantLin
Copy link

Hi Haozhe,

Thanks for your great work. I have downloaded the MIC_sampled dataset. I found the image base64 code, which I assume is attached. So, I should be able to train it without any other external data. I also checked the training shell. I found there is train_file in https://github.com/HaozheZhao/MIC/blob/master/run_script/flickr/deep_speed_blip2_t5xl.sh#L27. I don't know how to generate this. Could you please tell us how to train the model with the MIC_sampled dataset?

Thanks!

@HaozheZhao
Copy link
Owner

Hello, the training file in the script is created using our MIC repo. This is a tool we employ to transform open-source datasets into our preferred MIC dataset, complete with our designed context schema.

You can explore the repository, particularly the data_preprocess_save_arrow.py script. We utilize this script to preprocess the dataset and store the data in arrow files, which can be loaded as the Dataset class from the Huggingface datasets. Integrating this into the Huggingface trainer codebase is a straightforward procedure.

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

2 participants