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
Is This The Write Way To Add A Tag To An Output Model Artifact Of A Task? Torch.Save(Model, '

Is this the write way to add a tag to an output model artifact of a task?

torch.save(model, ' http://best.pt ')
output_model = task.models['output'][-1]
output_model.tags=['deployed']

  
  
Posted 2 years ago
Votes Newest

Answers 19


Doesn't matter how many times I run this code, it'll always give this same output. The tag gets appended to the list but isn't saved. Unless there's something else I'm supposed to do as well.

  
  
Posted 2 years ago

I wasn't able to reproduce it on my side. Can you try the following?
In clearml/examples/reporting/mode_config.py
Under line 45:
OutputModel().update_weights('my_best_model.bin')
Add the following:
output_model = task.models['output'][-1]
output_model.tags=['deployed']

And check in the UI if you get a tag on the model

  
  
Posted 2 years ago

Interesting. I'll try to reproduce and see if it occurs to me as well 🙂

  
  
Posted 2 years ago

Looks decent, give it a try and update us it's working 🙂

  
  
Posted 2 years ago

Please try like this model.tags=['Test'] and not with append

  
  
Posted 2 years ago

I basically had to set the tag manually in the UI

  
  
Posted 2 years ago

It works this way. Thank you.

  
  
Posted 2 years ago

Yeah exact same usage.

  
  
Posted 2 years ago

yeah.

  
  
Posted 2 years ago

I'm using clearml installed via pip in a conda env. Do I find this file inside the environment directory?

  
  
Posted 2 years ago

adding tags this way to a Dataset object works fine. This issue only occured when doing this to a model.

  
  
Posted 2 years ago

I'm on windows rn, and I work with clearml on ubuntu. I think it's 1.1.5rc4

  
  
Posted 2 years ago

were you able to reproduce it CostlyOstrich36 ?

  
  
Posted 2 years ago

Which version of clearml are you using?

  
  
Posted 2 years ago

Let me give it a try.

  
  
Posted 2 years ago

CostlyOstrich36

  
  
Posted 2 years ago

Exact same usage?

  
  
Posted 2 years ago

VexedCat68 , just making sure, when talking about tags for models, you mean the tags viewable in the 'models' tab in UI, correct?

  
  
Posted 2 years ago

So I had an issue that it didn't add the tags for some reason. There was no error, just that there were no tags on the model.

  
  
Posted 2 years ago
1K Views
19 Answers
2 years ago
one year ago
Tags