'Merge partial pickle files to get back my original pickled model

I have pickled a RF model on my machine and its size is of 360Mb, Now I want to upload it to GitHub but I cannot do it by file upload nor by the terminal, I tried git lfs too but it didn't work neither !!

Finally, I have split the pickle file into 15 parts, uploaded all of them to Github in a separate folder, But now, I would like to know how can I merge them to get the complete model on streamlit ?! What should I do to have the complete model in streamlit ? and is there a way to merge the files on GitHub ?

Thanks



Solution 1:[1]

Thanks to @Exciter's comment, the problem is solved by compressing the model.

360Mb is a lot for a RF model. you can try compressing the model when you pickle it. That need some more time, but the filesize decreases. how did you split your pickle files. You need to concat them the same way as you splitted them.

I used lzma and it went from 360Mb to 32Mb. I then used the terminal to push.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jeremy Caney