Allow passing HF access token to download tokenizer. Fallback to default tokenizer.

This commit is contained in:
imartinez 2024-04-19 15:38:25 +02:00
parent 347be643f7
commit 49ef729abc
3 changed files with 22 additions and 6 deletions

View file

@ -151,6 +151,10 @@ class HuggingFaceSettings(BaseModel):
embedding_hf_model_name: str = Field(
description="Name of the HuggingFace model to use for embeddings"
)
access_token: str = Field(
None,
description="Huggingface access token, required to download some models",
)
class EmbeddingSettings(BaseModel):