Skip to content

chore(models): mirror all aggregate models to dedicated HF repos - #832

Merged
fernandotonon merged 1 commit into
masterfrom
chore/hf-model-mirrors-round2
Jul 10, 2026
Merged

chore(models): mirror all aggregate models to dedicated HF repos#832
fernandotonon merged 1 commit into
masterfrom
chore/hf-model-mirrors-round2

Conversation

@fernandotonon

@fernandotonon fernandotonon commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Follow-up to the HF hosting split: every file in the aggregate fernandotonon/QtMeshEditor-models repo now has a dedicated mirror repo with its own model card and license — this round adds QtMeshEditor-realesrgan-onnx (BSD-3), QtMeshEditor-u2net-onnx (Apache-2.0), QtMeshEditor-smolvlm-gguf (Apache-2.0), and mirrors motion-library.json into the existing QtMeshEditor-t2m repo.

scripts/sync-hf-model-repos.sh gains a repo map covering the -gguf suffix and the t2m special case; THIRD_PARTY_AI_MODELS.md links the new mirrors. Docs/script only — no app code.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation

    • Expanded the third-party AI model attribution list with additional ONNX and GGUF model mirrors, including Real-ESRGAN, U²-Net, and SmolVLM.
  • Maintenance

    • Improved synchronization of hosted AI model repositories, supporting additional model types and dedicated mirror destinations.

Round 2: QtMeshEditor-{realesrgan-onnx,u2net-onnx,smolvlm-gguf}, and
motion-library.json into the existing t2m repo — every file in the
aggregate repo now has a dedicated mirror with its own card + license.
Sync script gains a repo map (covers -gguf and the t2m special case).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR expands third-party model attribution links and updates the Hugging Face synchronization script with explicit repository mappings and additional model file groups.

Changes

Model mirror synchronization

Layer / File(s) Summary
Mirror inventory and target mappings
THIRD_PARTY_AI_MODELS.md, scripts/sync-hf-model-repos.sh
The supported mirror list now includes additional ONNX, GGUF, and motion artifacts, while script mappings define their repository targets and source files.
Explicit synchronization target selection
scripts/sync-hf-model-repos.sh
sync_one uploads each model to the repository selected from the REPOS mapping instead of deriving a uniform repository name.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly reflects the main change: mirroring aggregate models into dedicated Hugging Face repositories.
Description check ✅ Passed The description covers the summary and technical changes, though it does not follow the template's headings or bullets.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/hf-model-mirrors-round2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@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: 5c255d98a7

ℹ️ 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".


sync_one() {
local model=$1 repo="$OWNER/QtMeshEditor-$1-onnx"
local model=$1 repo="$OWNER/${REPOS[$model]}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Split the local assignments before indexing REPOS

With set -u, Bash expands the right-hand sides of this local command before model=$1 is in scope, so ${REPOS[$model]} reads an unset model variable and every sync_one invocation exits immediately with model: unbound variable. Split this into separate assignments before looking up REPOS[$model] so the mirror sync can run at all.

Useful? React with 👍 / 👎.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@scripts/sync-hf-model-repos.sh`:
- Line 59: Split the combined declaration in the model-processing function:
first declare and assign local model from $1, then separately declare repo using
$OWNER and ${REPOS[$model]}. This ensures model is initialized before the array
lookup and avoids SC2318 and incorrect repository paths.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f23da279-87e9-420f-9baa-3d21de37fc6c

📥 Commits

Reviewing files that changed from the base of the PR and between 3b18e97 and 5c255d9.

📒 Files selected for processing (2)
  • THIRD_PARTY_AI_MODELS.md
  • scripts/sync-hf-model-repos.sh


sync_one() {
local model=$1 repo="$OWNER/QtMeshEditor-$1-onnx"
local model=$1 repo="$OWNER/${REPOS[$model]}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Split local declaration to avoid SC2318 — model may not be assigned when repo is evaluated.

In local model=$1 repo="$OWNER/${REPOS[$model]}", bash may evaluate ${REPOS[$model]} before model has taken effect (pre-5.0 behavior). With set -u, this yields an empty repo path ("fernandotonon/"), causing the upload to fail. ShellCheck flags this as SC2318.

🔧 Proposed fix
 sync_one() {
-  local model=$1 repo="$OWNER/${REPOS[$model]}"
+  local model=$1
+  local repo="$OWNER/${REPOS[$model]}"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
local model=$1 repo="$OWNER/${REPOS[$model]}"
local model=$1
local repo="$OWNER/${REPOS[$model]}"
🧰 Tools
🪛 Shellcheck (0.11.0)

[warning] 59-59: This assignment is used again in this 'local', but won't have taken effect. Use two 'local's.

(SC2318)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@scripts/sync-hf-model-repos.sh` at line 59, Split the combined declaration in
the model-processing function: first declare and assign local model from $1,
then separately declare repo using $OWNER and ${REPOS[$model]}. This ensures
model is initialized before the array lookup and avoids SC2318 and incorrect
repository paths.

Source: Linters/SAST tools

@sonarqubecloud

Copy link
Copy Markdown

@fernandotonon
fernandotonon merged commit e6b7c59 into master Jul 10, 2026
21 checks passed
@fernandotonon
fernandotonon deleted the chore/hf-model-mirrors-round2 branch July 10, 2026 20:49
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.

1 participant