Uploading a large trained model
Hello! I am building a streamlit space that assess journal entries based upon Stoic virtues. I trained and saved my model to my desktop repositiry, but it is big 268 MB and compressed Brotli 37MB. It is too large to push from my desktop repository using the Github Desktop App to my space. The space won’t function without the trained model. Will signing up for the PRO (9 dollar a month) plan on Hugging Face allow me to upload my large trained model?
2024-01-24T21:30:21Z
Hi@pjsturtevant,Yes, you can upload models to Hugging Face; at present, hosting the models is free of charge.huggingface.coUploading modelsWe’re on a journey to advance and democratize artificial intelligence through open source and open science.
2024-01-24T22:10:47Z
Thanks for the reply! My issue is the size of the trained model. It is 268 MB. When I try to push it from the repository, I get an error message that it is too large. I was wondering if opting into the Pro plan would allow me to push a trained model of that size to the space.
2024-01-24T23:06:10Z
The file size is not the limitation; there’s likely another underlying issue.For instance, multiple ~9GB and ~5GB files on this model repohuggingface.comistralai/Mistral-7B-Instruct-v0.1 at mainWe’re on a journey to advance and democratize artificial intelligence through open source and open science.
2024-01-24T23:39:02Z
Thank you for that angle. I will investigate that tomorrow.
2024-01-25T12:42:13Z
Here is the message that I am getting:Screen Shot 2024-01-25 at 7.37.36 AM.png1374×1002 106 KB
2024-05-15T13:55:17Z
im not sure if your problem is solved but you can use git lfs for larger filesdo this in your local huggingface repogit lfs install
git lfs track "Name of you model.tf"
git add .
git commit -m "your message here"