Deployment Platform: Render ✅

I don’t have a linux machine locally lol. That’s why I use :slight_smile:
Anyway, I think I’m giving up on this and will go read up on how to deploy on AWS.
Thanks for the help though!

@LessW2020 I’m not sure if you’re on windows or not, but you can install a linux CLI. Lifesaver! I think you’ll run into the same issue there, so running may not be your best option :wink: I think it has to due with the file itself in your drive. You said it would load if you did a load_learner?

correct - if I load and predict using the file on salamander it works as expected.
what I can’t tell is if render is able to pull the file successfully from google drive. When I try to check it manually I get a “no preview available” and download button but thats via browser so not sure if render gets that same screen or a wget or similar just pulls directly.
That’s what I meant about making any changes to to put some debugging on it but then have to remake the entire instance…
I have a windows machine so I’ll check installing linux but the other thing I can do is put the pkl file in an S3 bucket and see if render can load from there.
Thanks for the help!

1 Like

First things to check (I’ve seen):

  • Did you check the sharing settings to with a link?
  • When you tested it on salamander, were you using version 1.0.60? Or the dev version you are using?

Otherwise best of luck :slight_smile:

1 Like

Hi LessW2020

I normally check my google download model by by just putting my link in the browser? if it is working okay the file downloads like any other file…

It is my understanding that if you have a windows machine, anaconda and docker desktop you can create a virtual environment and with docker a unix environment.

I use this stack (I have a mac) for all my models before deploying them anywhere as doesn’t show all the errors that a docker container does.

Cheers mrfabulous1 :smiley::smiley:

Hi hope your having a marvelous day!

Possible actions

  1. Investigate this link New guide for easy web app deployment

  2. build a simple teddy bear classifier on salamander and save pip_list at the same time as the model. deploy on desktop then render. (Prove all software is working).

  3. Make sure the model file is not bigger than is allowed on

  4. If you don’t mind hosting any one of the following, the notebook, the model file with pip list saved into a text file at the same time as the model is saved, or your app on git, I’ll have a look at it, as I think if you go through this thread almost everyone has successfully deployed their first model on render although they don’t stay up long due to cost :smiley::smiley:

Cheers mrfabulous1 :smiley::smiley:

1 Like

I think the issue is google is putting up a ‘viewer’ even though I’ve checked all the ‘sharing’ options I could find.
This is what I get when manually viewing the link - it hits the file then flips to this ‘preview not available’ screen.

The pickle load I realized this morning is likely it’s pulling html and hence the ‘key error’ on < where < looks to me like the opening bracket for html.

Thanks but what is the ‘model size limit’? I searched the docs and there is nothing listed. My pkl for weights is 116MB.

Hi LessW2020 that model size is fine, the basic render app account is I think limited to 500mb total.

Looking at your previous image, having built close to 80 classifiers now this definitely isn’t something that I have seen when downloading.

can you save your pickle file to your hard drive and open it with a browser.

Fierfox looks like this

Chrome like this.

Aslo if the amount of free space on is not exceeded you can copy our model to the drive and change the setting in and access it directly.

Cheers mrfabulous1 :smiley::smiley:

Uploadinig directly would be a huge help. I can’t make google drive not display the ‘no preview’ and am pretty sure that is what is blocking the download and thus pickle fails b/c it’s loading html and not a file.

I can download/view the pkl file fine on my hard drive so no issue there.

When I go into the render interface I don’t see any option to upload things? Do I have to put it in my github and then it pulls or how to do this? That should be the fix to get this running.

Most likely not. It’s no preview due to it just doesn’t know what to do with that type of file extension. What are the sharing settings on the file itself?

re: sharing - I have it set as “anyone with the link can access, no sign in required”.

1 Like

Hi LessW2020
Whats the link?

Cheers mrfabulous1 :smiley::smiley:

Hi LessW2020

Here is an old classifier that classifies English pound notes £5, £10, £20

Does it open correctly?

cheers mrfabulous1 :smiley::smiley:

HIi @mrfabulous1 - yes that opens as expected (direct to drive).
However, even when I changed my google drive to a ‘download link’ via, that then generates a "this file is larger than 100MB and google cannot virus check’ error.

Thus, I’m uploading the pkl file to an AWS bucket now and will try that. If you can advise how to upload direclty that would avoid all this interim ‘load here, download but get html there’ issue :slight_smile:

Hi LessW2020
To use use the file directly
save the pkl file in the app directory in the repository and edit the file as below.

export_file_url = ‘’
export_file_name = ‘dog_breed_34.pkl’

Cheers mrfabuous1 :smiley::smiley:

1 Like

Unfortunately can’t upload if lareger than 25MB:
“Yowza, that’s a big file. Try again with a file smaller than 25MB.”

I’ve put it on AWS S3 so let me try to pull from that.
for reference:
which does start a normal download as expected.

Too bad :cry::sob::cry::sob:
cheers mrfabulous1 :smiley::smiley:

Hi LessW2020

I think Dropbox allows bigger files!

Cheers mrfabulous1 :smiley::smiley:

I can wget the weights with no issue from aws on my server.
However, using the same URL within still yields the pickle error.
Note I tested wget to the google drive link and you just get a ‘view’ object which internally is as expected Html with first char = < : (the message boards are trying to read the html so I use * below where it’s really <
*!DOCTYPE html> … blah blah