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
I'M Wondering If I'Ve Run Into A Bug, Or Am Not Understanding Something Correctly. In A

I'm wondering if I've run into a bug, or am not understanding something correctly. In a pre_execute_callback in a pipeline step, I am calling model.get_local_copy() on a clearml.Model . The docs say this:

Retrieve a valid link to the model file(s). If the model URL is a file system link, it will be returned directly. If the model URL is points to a remote location (http/s3/gs etc.), it will download the file(s) and return the temporary location of the downloaded model.

In this case, the model is a file system link. Printing out model.url right before the call to model.get_local_copy() is giving me file:///home/c.miles/<rest_of_path/model.tckpt (and indeed that file exists). However, the call to model.get_local_copy(raise_on_error=True) returns a ValueError:
Could not retrieve a local copy of model weights <hash>, failed downloading file:///home/c.miles/<rest_of_path>/model.tckptBut, this is just a file system link, why is it not being returned directly?

Posted one year ago
Votes Newest


Hi SteadySeagull18 ! The docs are correct.
How do you run the pipeline controller? Is it remotely, locally, locally with an agent? If you run os.path.exists(model.url[len("file://"):]) does it return True ?
Can you provide a minimal example that could help us reproduce the issue?
Thank you

Posted one year ago