R
Railway10mo ago
oToMaTiX

seems like an issue with uploading large file via cli or git lf

I have a model file of 0.5 gb, how to upload it to the container?
Solution:
Create an endpoint in your code to upload the model file or pull the file from a cloud storage bucket (google drive if it’s a one time upload)
Jump to solution
11 Replies
Percy
Percy10mo ago
Project ID: d3345802-41e9-4f63-82c9-63d7f0fcf52a
oToMaTiX
oToMaTiX10mo ago
Project id d3345802-41e9-4f63-82c9-63d7f0fcf52a
Brody
Brody10mo ago
railway doesnt support git lfs, and railway up can only upload a max 50mb payload, you would want to store the model in a storage bucket and download in at build or runtime
oToMaTiX
oToMaTiX10mo ago
Wow, thank. I've never done that. Is there a guide line on how to set it up?
Brody
Brody10mo ago
not really railway specific so theres no railway guides on downloading files from s3. if this model file never changes you could store it in a volume and load the model from the volume https://docs.railway.app/reference/volumes
oToMaTiX
oToMaTiX10mo ago
It is not the valume from docker, it is something different, correct?
Brody
Brody10mo ago
please read the docs page i linked
oToMaTiX
oToMaTiX10mo ago
i attacher the valume, but struggle to understand how to upload something to it, how to put there what i need?
Solution
Adam
Adam10mo ago
Create an endpoint in your code to upload the model file or pull the file from a cloud storage bucket (google drive if it’s a one time upload)
Adam
Adam10mo ago
There is no native volume editor. All edits have to be done through your code
oToMaTiX
oToMaTiX10mo ago
oh, that is complicated. but i get it. thank you
Want results from more Discord servers?
Add your server