Skip to content

fix: route explicit hub gguf filenames to the remote parser - #50

Open
rupayon123 wants to merge 1 commit into
pipe1os:mainfrom
rupayon123:contribution/explicit-remote-gguf-routing-20260909
Open

fix: route explicit hub gguf filenames to the remote parser#50
rupayon123 wants to merge 1 commit into
pipe1os:mainfrom
rupayon123:contribution/explicit-remote-gguf-routing-20260909

Conversation

@rupayon123

Copy link
Copy Markdown
Contributor

Summary

A specific Hub filename such as org/model/weights.gguf is supported by the remote parser and recommended by the quantization table, but the CLI treats it as a local path and raises FileNotFoundError before reaching the remote parser.

Route non-existing, non-local-prefixed paths with an owner/repository/file structure and a .gguf suffix to the existing remote parser. Existing files and explicit ./, ../, /, or ~ local prefixes retain local handling.

Type of Change

  • Bug fix

How Has This Been Tested?

Two explicit remote-path tests failed before the fix; they now pass along with three local-prefix regressions. Full suite: 69 passed on Python 3.11. ruff check tests/test_remote_gguf_routing.py and git diff --check pass. Tests mock the remote parser; no weights are downloaded.

Checklist

  • Conventional commit with How to test instructions.
  • Regression tests and existing suite pass.
  • Existing local files still take precedence.

Prepared with AI assistance and tested locally.

How to test: python -m pytest -q (69 passed); two explicit Hub filename cases failed before the fix.
@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 1c24a6bc-d3a0-4619-9b87-40e62110cb89


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.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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