Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I Have Problem With Retrieving Models From Storage I Have Following Code

Hi, I have problem with retrieving models from storage
I have following code

model = Model(model_id='my_model_id')
model.get_local_copy(force_download=True)

and it works, but it works single time only. When I download freshly uploaded model it works just fine, but when I remove local copy of a file and try to download it again it doesn't do anything. Have any of you had similar problem?

  
  
Posted one month ago
Votes Newest

Answers 14


To avoid spam I sent the code to the pastebin None
the code for model itself doesn't make much sense, but it's not about it

After running this code, I run the code from my 1st message with id copied from clearml app. I deleted it from local storage (stayed untouched on the clearml web app)

  
  
Posted one month ago

I am not sure if I have this file anywhere. I was not sure if I should create it on my own from scratch, or it will create automatically, so I didn't touch it yet. I set up all my stuff with environment variables, but all it has except API keys is

%env CLEARML_WEB_HOST=

%env CLEARML_API_HOST=

%env CLEARML_FILES_HOST=
  
  
Posted one month ago

you deleted the model from the same directory as you ran from the code but you didn't delete it from the cache folder?

  
  
Posted one month ago

I just did, but didn't help

  
  
Posted one month ago

the directory also haven't been recreated after I tried to download model again

  
  
Posted one month ago

by local storage you mean deleted it from the cache folder it was downloaded to?

  
  
Posted one month ago

I can try create it, but it will be in about 4-5h cause I got to go soon

  
  
Posted one month ago

yeah, it downloaded it to the same directory as code it was ran from

  
  
Posted one month ago

Hi @<1858319200146165760:profile|PoisedDeer30> , can you provide a standalone snippet that reproduces this behaviour?

Also do you have a log of this? From where did you delete it?

  
  
Posted one month ago

I was suspecting there is different directory where it could be stored, but find didn't find it so I assumed it's not there

  
  
Posted one month ago

Can you add your clearml.conf file here?

  
  
Posted one month ago

delete ~/.clearml/ and try again

  
  
Posted one month ago

obscure any secrets of course 🙂

  
  
Posted one month ago

I was looking for the model in ~/.cache and ~/.mlflow, but I couldn't find the model in any of those location. I also checked venv directory

  
  
Posted one month ago
363 Views
14 Answers
one month ago
one month ago
Tags
Similar posts