Skip to content

Implement ClassFox 2.1 domestic and offline downloads - #15

Merged
ouyangyipeng merged 2 commits into
mainfrom
feat/domestic-downloads
Oct 15, 2026
Merged

ouyangyipeng merged 2 commits into
mainfrom
feat/domestic-downloads

Conversation

@ouyangyipeng

@ouyangyipeng ouyangyipeng commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Users on domestic networks can fail to download models from Hugging Face and GitHub. ClassFox 2.1 adds a pinned, identical ModelScope Qwen source with fallback and automatic retry/resume, plus a native ZIP picker and authenticated offline import that checks known file sizes, SHA-256 and actual model loading before activation. Existing installed fingerprints stay compatible.

Installers now contain hash-verified Silero VAD and the platform llama.cpp archive. A reproducible script prepares attributed, portable model ZIPs and checksums. Baidu Netdisk links will be added after the verified release artifacts have been uploaded, as requested.

Validation: the final full backend suite passed all 199 tests after both review fixes (corrupt-prefix download recovery and incremental offline import progress). Three script tests, 22 frontend tests, type checks, lint/format, strict docs build and 10 real Edge browser scenarios passed. Both actual offline model ZIPs reached ready through real ASR/LLM probes with all external HTTP calls denied. One fresh whole-change review found the recovery regression; its new test failed before the fix and passed after.

Final CI run 38790182529 passed on Windows x64, macOS Intel and Apple Silicon, including native builds and frozen-backend verification. Documentation CI also passed. The final Apple Silicon DMG was additionally verified locally: DMG checksums, architecture, version, ad-hoc signature, packaged VAD/runtime hashes and bundled backend self-check all passed. No paid infrastructure or credentials are introduced. Model redistribution keeps full license and attribution notices; upstream SenseVoice commercial-license clarification remains open. Merge using Rebase and merge.

Plan: plan/02-v1-domestic-downloads.md

Root cause: Downloads depended on overseas endpoints without automatic
  recovery or an offline installation path.
Solution: Prefer a pinned identical ModelScope Qwen asset, retry and
  resume downloads, and validate native-selected offline ZIP packages.
  Bundle hash-checked VAD and platform runtimes in 2.1.0 installers.
Risks: Domestic availability varies by network; verify native packages
  on all supported platforms and preserve upstream model notices.
Dependency: ModelScope pinned Qwen asset and llama.cpp b10964 assets
Links: plan/02-v1-domestic-downloads.md
Copilot AI balanced review requested due to automatic review settings October 15, 2026 18:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T18:56:09.585657Z 2c2918c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2c2918ccdb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/user-guide/offline-models.md Outdated
Comment thread api-service/classfox/model_install.py Outdated
Root cause: Offline imports copied entire weights without publishing
  byte progress, and documentation advertised an unverified share.
Solution: Report copy progress on the event loop and describe the Baidu
  download entry as pending until upload and sharing are verified.
Risks: Thread-originated progress must remain on the event loop.
Dependency: 2c2918c
Links: #15
@ouyangyipeng
ouyangyipeng merged commit 02a1581 into main Oct 15, 2026
6 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