interplane.Get Omega
Read in your language

interplane-mv

INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority.

Brought by drakestapleton

branch main Branches Tags History

interplane-mv / docs / upstream / odysseus-6474-pr.md

41 lines · 3758 bytes Raw Blame History Source

Upstream PR draft: odysseus-dev/odysseus#6474 (human submits)

Prepared by INTERPLANE 0.2 lane L1. Nothing here was opened or pushed upstream.

Verified state (2026-10-04)

Title

fix(cookbook): pass the GGUF filename to llama-server with --hf-file (#6474)

Body

Problem. _cookbook_default_launch_cmd builds llama-server -hf <repo> -hfr <file.gguf> .... On current llama.cpp -hfr is an alias of -hf (the repo flag), so the filename is parsed as a second repo and llama-server exits with "invalid HF repo format". Serving a GGUF repo from the cookbook fails. (Reported in #6474.)

Fix. Use the file flag, --hf-file, for the GGUF filename. The no-GGUF-sibling path is unchanged.

Test. New tests/test_cookbook_default_launch_cmd.py: (1) with a GGUF sibling the command contains -hf <repo> and --hf-file <name>.gguf and no -hfr; (2) with no GGUF sibling no file flag is emitted.

How to verify. python -m pytest tests/test_cookbook_default_launch_cmd.py -q. Reverting src/tools/cookbook.py makes the first test fail. Manually: llama-server -hf unsloth/Qwen3.5-4B-GGUF --hf-file Qwen3.5-4B-Q4_K_M.gguf starts, whereas -hfr <file> is rejected. (Manual llama-server run not performed by me: UNVERIFIED.)

Scope. This PR addresses only the -hfr flag half of #6474. The issue's second symptom (reasoning models return empty content) is not touched; so use "Refs #6474", not "Fixes", unless the maintainer prefers otherwise.

Follows CONTRIBUTING: one fix per PR, targets dev.

Commands a human runs (from ~/workspace/odysseus)

git fetch origin && git checkout fix/cookbook-llamacpp-hf-file
git push fork fix/cookbook-llamacpp-hf-file   # already on the fork; only if updated
gh pr create -R odysseus-dev/odysseus --base dev --head aien-dev:fix/cookbook-llamacpp-hf-file \
  --title "fix(cookbook): pass the GGUF filename to llama-server with --hf-file (#6474)" \
  --body "Refs #6474. Problem, fix, test and verification steps as in docs/upstream/odysseus-6474-pr.md (Body section)."

Paste the Body section above into the PR description instead of the short --body if preferred.

Other narrow Odysseus observations (not fixed)