Merge pull request #436 from eltociear/patch-1
Browse files- 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
|
| 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)
|