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
I Am Using Pipeline From Decorators. In The Pipeline, There Is A Training Step That Returns A Model (I Want This Model To Also Be Uploaded As An Artifact On Clearml). But This Results In The Following Error:

I am using pipeline from decorators. In the pipeline, there is a training step that returns a model (I want this model to also be uploaded as an artifact on clearml). But this results in the following error:
Traceback (most recent call last):
File "/tmp/tmpl17srkeg.py", line 237, in <module>
task.upload_artifact(
File ".../.local/lib/python3.10/site-packages/clearml/task.py", line 1982, in upload_artifact
raise exception_to_raise
File ".../.local/lib/python3.10/site-packages/clearml/task.py", line 1963, in upload_artifact
if self._artifacts_manager.upload_artifact(
File ".../.local/lib/python3.10/site-packages/clearml/binding/artifacts.py", line 744, in upload_artifact
pickle.dump(artifact_object, f)
AttributeError: Can't pickle local object 'main_clf_training.<locals>.lstm_embedding_model'

Note: This occurs only when using pipelines

  
  
Posted one year ago
Votes Newest

Answers 2


Hi DilapidatedCow43
I'm assuming the returned object cannot be pickled (which is ClearML's way of serializing it)
You can upload it as a model with
` uploaded_model_url = Task.current_task().update_output_model(model_path="/path/to/local/model")

...
return uploaded_model_url `wdyt?

  
  
Posted one year ago

Hi DilapidatedCow43 , which ClearML SDK version are you using?

  
  
Posted one year ago
515 Views
2 Answers
one year ago
one year ago
Tags
Similar posts