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
Unanswered
Hi Guys, Been Using Clearml-Serving For Several Years Now And Recently Upgraded To The New Version Of The App Server And Clearml-Serving. However, When Deploying Models I'M Now Getting The Following Error:

Hi Guys,

been using clearml-serving for several years now and recently upgraded to the new version of the app server and clearml-serving. However, when deploying models I'm now getting the following error:

HTTP/2 500 
date: Mon, 19 May 2025 22:27:39 GMT
content-type: application/json
content-length: 112
server: uvicorn

{"detail":"Error  [<class 'AttributeError'>] processing request: 'NoneType' object has no attribute 'base_url'"}

It looks like the helper doesn't have any base_url when trying to get the model inside the pod

Instance [1cc3d1c58ae84e31b2a0fb0d78f556ad, pid=81]: New configuration updated
2025-05-19 17:27:39
[1cc3d1c58ae84e31b2a0fb0d78f556ad] Exception [<class 'AttributeError'>] 'NoneType' object has no attribute 'base_url' while processing request: {'CORE034': 6.82, 'CORE010': 21.0, 'BAL012': 288.94, 'BAL005': 168.69, 'BAL010': 288.94, 'BAL002': 128.18, 'CORE019': 2.5, 'CORE021': 2.54, 'CORE009': 73.0, 'BAL007': 204.66, 'INC002': 2272.09, 'CORE031': 364.0, 'BAL009': 179.56, 'CORE024': 440.36, 'CORE035': 2.63, 'CSM011': -9999.0, 'CORE001': 443.0, 'INC017': 729.97}
Traceback (most recent call last):
  File "/root/clearml/clearml_serving/serving/main.py", line 237, in serve_model
    return_value = await processor.process_request(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/clearml/clearml_serving/serving/model_request_processor.py", line 243, in process_request
    processor = processor_cls(model_endpoint=ep, task=self._task)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/clearml/clearml_serving/serving/preprocess_service.py", line 738, in __init__
    with open(self._get_local_model_file(), "rb") as ff:
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/clearml/clearml_serving/serving/preprocess_service.py", line 222, in _get_local_model_file
    return model_repo_object.get_local_copy()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/clearml/model.py", line 1421, in get_local_copy
    return self.get_weights(
           ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/clearml/model.py", line 403, in get_weights
    return self._get_base_model().download_model_weights(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/clearml/backend_interface/model.py", line 563, in download_model_weights
    local_download = StorageManager.get_local_copy(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/clearml/storage/manager.py", line 49, in get_local_copy
    cached_file = cache.get_local_copy(remote_url=remote_url, force_download=force_download)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/clearml/storage/cache.py", line 53, in get_local_copy
    if helper.base_url == "file://":
       ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'base_url'
  
  
Posted 3 months ago
Votes Newest

Answers