mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-09-13 05:43:44 +00:00
fix(config): make tokenizer optional and include a troubleshooting doc (#1998)
* docs: add troubleshooting * fix: pass HF token to setup script and prevent to download tokenizer when it is empty * fix: improve log and disable specific tokenizer by default * chore: change HF_TOKEN environment to be aligned with default config * ifx: mypy
This commit is contained in:
@@ -35,10 +35,10 @@ class LLMComponent:
|
||||
)
|
||||
except Exception as e:
|
||||
logger.warning(
|
||||
"Failed to download tokenizer %s. Falling back to "
|
||||
"default tokenizer.",
|
||||
settings.llm.tokenizer,
|
||||
e,
|
||||
f"Failed to download tokenizer {settings.llm.tokenizer}: {e!s}"
|
||||
f"Please follow the instructions in the documentation to download it if needed: "
|
||||
f"https://docs.privategpt.dev/installation/getting-started/troubleshooting#tokenizer-setup."
|
||||
f"Falling back to default tokenizer."
|
||||
)
|
||||
|
||||
logger.info("Initializing the LLM in mode=%s", llm_mode)
|
||||
|
Reference in New Issue
Block a user