zrguo commited on
Commit
51012ad
·
unverified ·
2 Parent(s): fd445917a3f31e

Merge pull request #436 from eltociear/patch-1

Browse files
Files changed (1) hide show
  1. lightrag/llm.py +1 -1
lightrag/llm.py CHANGED
@@ -402,7 +402,7 @@ async def lmdeploy_model_if_cache(
402
  import lmdeploy
403
  from lmdeploy import version_info, GenerationConfig
404
  except Exception:
405
- raise ImportError("Please install lmdeploy before intialize lmdeploy backend.")
406
  kwargs.pop("hashing_kv", None)
407
  kwargs.pop("response_format", None)
408
  max_new_tokens = kwargs.pop("max_tokens", 512)
 
402
  import lmdeploy
403
  from lmdeploy import version_info, GenerationConfig
404
  except Exception:
405
+ raise ImportError("Please install lmdeploy before initialize lmdeploy backend.")
406
  kwargs.pop("hashing_kv", None)
407
  kwargs.pop("response_format", None)
408
  max_new_tokens = kwargs.pop("max_tokens", 512)