langchain/libs/partners/huggingface/langchain_huggingface
Ella Charlaix c401254770
huggingface: Add ipex support to HuggingFaceEmbeddings (#29386)
ONNX and OpenVINO models are available by specifying the `backend`
argument (the model is loaded using `optimum`
https://github.com/huggingface/optimum)

```python
from langchain_huggingface import HuggingFaceEmbeddings

embedding = HuggingFaceEmbeddings(
    model_name=model_id,
    model_kwargs={"backend": "onnx"},
)
```

With this PR we also enable the IPEX backend 



```python
from langchain_huggingface import HuggingFaceEmbeddings

embedding = HuggingFaceEmbeddings(
    model_name=model_id,
    model_kwargs={"backend": "ipex"},
)
```
2025-02-07 15:21:09 -08:00
..
chat_models required tool_choice added for ChatHuggingFace (#28851) 2024-12-20 12:06:04 -05:00
embeddings huggingface: Add ipex support to HuggingFaceEmbeddings (#29386) 2025-02-07 15:21:09 -08:00
llms partners: Fixed the procedure of initializing pad_token_id (#29500) 2025-02-03 21:40:33 -05:00
tests huggingface: init package (#21097) 2024-05-13 20:53:15 +00:00
utils huggingface: Add IPEX models support (#29179) 2025-01-22 00:16:44 +00:00
__init__.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
py.typed huggingface: init package (#21097) 2024-05-13 20:53:15 +00:00