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
Hello! Im Using A Clearml Serving Module And When I Try To Test It I Get This Error {"Detail":"Error [<Class 'Valueerror'>] Processing Request: Error: Failed Loading Preprocess Code For 'Py_Code_Transformer_Model': No Module Named 'Transformers'\N\Ntrac

Hello!

Im using a clearml serving module and when i try to test it i get this error

{"detail":"Error [<class 'ValueError'>] processing request: Error: Failed loading preprocess code for 'py_code_transformer_model': No module named 'transformers'\n\nTraceback (most recent call last):\n File "/root/clearml/clearml_serving/serving/preprocess_service.py", line 51, in init\n self._instantiate_custom_preprocess_cls(task)\n File "/root/clearml/clearml_serving/serving/preprocess_service.py", line 81, in _instantiate_custom_preprocess_cls\n spec.loader.exec_module(_preprocess)\n File "<frozen importlib._bootstrap_external>", line 940, in exec_module\n File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed\n File "/root/.clearml/cache/storage_manager/global/1d18e4bdb21fe8036a0aa878c460e72b.preprocess.py", line 3, in <module>\n from transformers import AutoTokenizer, PreTrainedTokenizer, TensorType\n File "/usr/local/lib/python3.11/site-packages/clearml/binding/import_bind.py", line 54, in __patched_import3\n mod = builtins.org_import(\n ^^^^^^^^^^^^^^^^^^^^^^^^\nModuleNotFoundError: No module named 'transformers'\n"}

When i try to post request the endpoint, even though from the triton-gpu container i an see that the packeges are getting dowloaded as intended.

Does anyone know how to solve this?

  
  
Posted 10 days ago
Votes Newest

Answers 3


From what i could find, since the serving endpoint is not treated as a independent enviroment, the packages are being instaled into a 3.8.10 version of python. And the endpoint is trying to get them from another version that does not contain the packages. But i cannot change the version of either i dont understand why...

  
  
Posted 9 days ago

Hi BraveGrasshopper38 ! Consider setting CLEARML_EXTRA_PYTHON_PACKAGES to the right packages if you haven't already. Reference: None

  
  
Posted 9 days ago

hi thanks for the reply!

I have setted it and its dowloading (i checked on the container logs) but when i try to POST i get that error

  
  
Posted 9 days ago
64 Views
3 Answers
10 days ago
9 days ago
Tags
Similar posts