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 All, I Am Trying To Serve The Example Sklearn Model Using Clearml-Serving.

Hi all, I am trying to serve the example sklearn model using clearml-serving.

Step1: clearml-serving --id "09869d07cc4e489eb3d6f1aa7857be79" model add --engine sklearn --endpoint "test_model_sklearn2" --preprocess "preprocess.py" --name "Train scikit-learn model - sklearn-model" --project "Model Serving Examples"

Step 2: curl -X POST " None " -H "accept: application/json" -H "Content-Type: application/json" -d '{"x0": 1, "x1": 2}'

Unfortunately, the curl command returns below error.

{"detail":"Error processing request: Error: could not find preprocessing artifact 'py_code_test_model_sklearn2' on Task id=09869d07cc4e489eb3d6f1aa7857be79"}

Any suggestions?

  
  
Posted one year ago
Votes Newest

Answers 5


I see below error in the logs

  
  
Posted one year ago

Hi @<1523701087100473344:profile|SuccessfulKoala55> , I am using the default preprocessing code.

None

  
  
Posted one year ago

2023-07-14 15:49:43
2023-07-14 10:19:43,161 - clearml.storage - WARNING - Failed getting object size: ConnectionError('HTTPConnectionPool(host='127.0.0.1', port=8081): Max retries exceeded with url: /DevOps/Narendra%20Serving%20Example.09dec19229774111a35d84cb88abaed4/artifacts/py_code_test_model_sklearn2/preprocess.py (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa21c572210>: Failed to establish a new connection: [Errno 111] Connection refused'))')
2023-07-14 15:49:58
2023-07-14 10:19:58,171 - clearml.storage - ERROR - Could not download None , err: HTTPConnectionPool(host='127.0.0.1', port=8081): Max retries exceeded with url: /DevOps/Narendra%20Serving%20Example.09dec19229774111a35d84cb88abaed4/artifacts/py_code_test_model_sklearn2/preprocess.py (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa21c54ca10>: Failed to establish a new connection: [Errno 111] Connection refused'))

  
  
Posted one year ago

Hi @<1587977852635058176:profile|FloppyTurtle49> , what is the pre/post processing code you're using? This seems to be an error coming from it

  
  
Posted one year ago

How did you register the endpoint?

  
  
Posted one year ago