Skip to content

feat: enable offline mode for local embedding by default#3

Merged
XuPeng-SH merged 1 commit intomatrixorigin:mainfrom
aptend:feat/offline-embedding-mode
Mar 12, 2026
Merged

feat: enable offline mode for local embedding by default#3
XuPeng-SH merged 1 commit intomatrixorigin:mainfrom
aptend:feat/offline-embedding-mode

Conversation

@aptend
Copy link
Contributor

@aptend aptend commented Mar 12, 2026

What type of PR is this?

  • feat (new feature)
  • fix (bug fix)
  • docs (documentation)
  • style (formatting, no code change)
  • refactor (code change that neither fixes a bug nor adds a feature)
  • perf (performance improvement)
  • test (adding or updating tests)
  • chore (maintenance, tooling)
  • build / ci (build or CI changes)

Which issue(s) this PR fixes

Fixes #

What this PR does / why we need it

  • Add HF_HUB_OFFLINE=1 and TRANSFORMERS_OFFLINE=1 to MCP config env
  • Prevents unnecessary network checks on every MCP server startup
  • Add _HF_ENDPOINT placeholder for users in regions with slow HuggingFace access
  • Users can uncomment and rename to HF_ENDPOINT to use mirrors like hf-mirror.com

- Add HF_HUB_OFFLINE=1 and TRANSFORMERS_OFFLINE=1 to MCP config env
- Prevents unnecessary network checks on every MCP server startup
- Add _HF_ENDPOINT placeholder for users in regions with slow HuggingFace access
- Users can uncomment and rename to HF_ENDPOINT to use mirrors like hf-mirror.com
@aptend aptend requested a review from XuPeng-SH March 12, 2026 07:22
@XuPeng-SH XuPeng-SH merged commit d446a13 into matrixorigin:main Mar 12, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants