Files
langchain/libs/partners/huggingface
langchain-oss-model-profiles[bot]andmdrxy 877ad8c7bf chore(model-profiles): refresh model profile data (#40747)
Automated refresh of model profile data for all in-monorepo partner
integrations via `langchain-profiles refresh`.

🤖 Generated by the [`refresh_model_profiles`
workflow](https://github.com/langchain-ai/langchain/blob/master/.github/workflows/refresh_model_profiles.yml).

## Summary of changes

**9 added · 2 removed · 5 changed** across 3 provider(s).

<details>
<summary>huggingface</summary>

**➕ 1 added**
- `tencent/Hy4-preview` — 1,000,000 ctx, 64,000 out, reasoning, tools

</details>

<details>
<summary>openrouter</summary>

**➕ 6 added**
- `nex-agi/nex-n2.5-mini` — 262,144 ctx, 235,929 out, text+image in,
reasoning
- `nex-agi/nex-n2.5-pro` — 262,144 ctx, 235,929 out, text+image in,
reasoning, tools
- `x-ai/grok-4.7` — 500,000 ctx, 450,000 out, text+image+pdf in,
reasoning, tools
- `xiaomi/mimo-v2.6-flash` — 1,048,576 ctx, 131,072 out,
text+image+audio+video in, reasoning, tools
- `xiaomi/mimo-v2.6-pro` — 1,048,576 ctx, 131,072 out,
text+image+audio+video in, reasoning, tools
- `xiaomi/mimo-v2.6-pro-ultraspeed` — 1,048,576 ctx, 131,072 out,
text+image+audio+video in, reasoning, tools

**➖ 2 removed**
- `anthropic/claude-opus-4`
- `kwaipilot/kat-coder-pro-v2`

**✏️ 5 changed**
- `anthropic/claude-sonnet-4`: max input tokens 1,000,000 → 200,000
- `deepseek/deepseek-v4-pro-0813`: max output tokens 384,000 → 943,718
- `meta-llama/llama-3.1-70b-instruct`: max output tokens 8,192 → 16,384
- `qwen/qwen3-next-80b-a3b-thinking`: max output tokens 32,768 → 235,929
- `z-ai/glm-5.3-flash`: max output tokens 131,072 → 943,718

</details>

<details>
<summary>xai</summary>

**➕ 2 added**
- `grok-4.7` — 500,000 ctx, 500,000 out, text+image+pdf in, reasoning,
tools
- `grok-imagine-image-quality` — 16,000 ctx, text+image+pdf in

</details>

Co-authored-by: mdrxy <61371264+mdrxy@users.noreply.github.com>
2026-09-22 10:22:17 -04:00
..
2024-05-13 20:53:15 +00:00
2024-05-13 20:53:15 +00:00
2026-06-12 14:54:25 -04:00

langchain-huggingface

PyPI - Version PyPI - License PyPI - Downloads Twitter

Looking for the JS/TS version? Check out LangChain.js.

Quick Install

uv add langchain-huggingface

Note: The base install does not include sentence-transformers or transformers. If you plan to use HuggingFaceEmbeddings or HuggingFacePipeline for local inference, install the [full] extra which includes sentence-transformers>=5.2.0 and transformers>=5.0.0:

uv add "langchain-huggingface[full]"

Migrating from langchain-community? Note that langchain-community accepted sentence-transformers>=2.2.0, but langchain-huggingface[full] requires >=5.2.0. If your project pins an older version, upgrade it:

uv add "sentence-transformers>=5.2.0"

🤔 What is this?

This package contains the LangChain integrations for Hugging Face related classes.

📖 Documentation

For full documentation, see the API reference. For conceptual guides, tutorials, and examples on using these classes, see the LangChain Docs.

📕 Releases & Versioning

See our Releases and Versioning policies.

💁 Contributing

As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.

For detailed information on how to contribute, see the Contributing Guide.

Resources

  • LangChain Academy — comprehensive, free courses on LangChain libraries and products, made by the LangChain team
  • Code of Conduct — community guidelines and standards