lemonade-sdk 8.1.5__py3-none-any.whl → 8.1.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of lemonade-sdk might be problematic. Click here for more details.

@@ -346,7 +346,11 @@ def install_llamacpp(backend):
346
346
 
347
347
  # Identify and set HIP ID
348
348
  if backend == "rocm":
349
- hip_id = identify_hip_id()
349
+ try:
350
+ hip_id = identify_hip_id()
351
+ except Exception as e: # pylint: disable=broad-exception-caught
352
+ hip_id = 0
353
+ logging.warning(f"Error identifying HIP ID: {e}. Falling back to 0.")
350
354
  env_file_path = os.path.join(llama_server_exe_dir, ".env")
351
355
  set_key(env_file_path, "HIP_VISIBLE_DEVICES", str(hip_id))
352
356