Skip to content

[Engine] fix(serve): find a bare "exe" on PATH when the model folder has no such file - #358

Merged
linyubupa merged 1 commit into
Edge0-AI:mainfrom
eric-epsilla:fix/bare-exe-on-path
Dec 1, 2026
Merged

linyubupa merged 1 commit into
Edge0-AI:mainfrom
eric-epsilla:fix/bare-exe-on-path

Conversation

@eric-epsilla

@eric-epsilla eric-epsilla commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

What & why

Fixes #359 (failure 2).

The HF model folders (Edge0-120B-NVFP4, Edge0-145B-NVFP4) ship model.json with "exe": "strata". Their start.sh puts the engine's build directory on PATH. server.py joined that bare name onto the config's cwd, which is the model folder, so every start through start.sh failed:

FileNotFoundError: [Errno 2] No such file or directory: '/data/edge0-models/120B/strata'

The new config_exe(exe, cwd) replaces the inline expression in main(). The result is unchanged for:

  • absolute paths
  • relative paths with a directory part (the Windows engine/strata.exe case the removed comment describes)
  • a bare name when a file of that name exists in cwd

Only a bare name with no such file is looked up with shutil.which. If it isn't on PATH either, the result is the same cwd path as before, so the error is unchanged.

The other half of #359, start.sh looking under $EDGE0/strata instead of $EDGE0/edge0-strata, lives in the HF model repos. The patch is in the issue.

Area

  • Engine, CLI or server (edge0-infer/)
  • Model asset tools (edge0-infer/tools/assets/)
  • Chat app examples (edge0-infer/examples/)
  • Model docs (docs/)
  • edge0-strata/
  • Other

How was it tested?

Revision 84f55a1, Ubuntu 22.04.5 x86_64, NVIDIA A100 40GB, driver CUDA 13.0.

Passed:

Failed:

  • python -m unittest tools.test_effort_end_args: test_start_is_the_default fails, identically on main (31cd70c). Unrelated to this change.

Not run:

  • Windows and macOS. Only a bare name takes the new branch; engine\strata.exe style configs keep the old path.
  • ctest --preset cpu -L "L0|L1". That suite is for edge0-infer/, which this PR does not touch.

Checklist

  • Linked an agreed issue, or this PR is documentation-only (obvious bug, so the issue was opened with the PR)
  • Related fixes in this area are in this pull request, one commit per fix
  • This is one of at most two open pull requests from me
  • ctest --preset cpu -L "L0|L1" passes locally in edge0-infer/ (engine changes): not applicable, edge0-infer/ is untouched
  • Changes to model computation: not applicable
  • Ran the higher test levels this change affects: serve.test_server
  • Added/updated tests for new behavior
  • Updated relevant docs / READMEs: no user-facing docs describe this lookup

🤖 Generated with Claude Code

…o such file

The HF model folders (Edge0-120B-NVFP4, Edge0-145B-NVFP4) ship model.json with
"exe": "strata" and a start.sh that puts the engine's build directory on PATH.
server.py joined the bare name onto the config's cwd (the model folder), so the
start failed with FileNotFoundError: '<model folder>/strata'.

config_exe keeps the old result for absolute paths, relative paths with a
directory part, and a file of that name in cwd; only a bare name with no such
file is looked up on PATH.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the needs-info Title, issue link, test notes, or PR cap still missing label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

This pull request is labeled needs-info and is not in the review queue.
The intake rules are in CONTRIBUTING.md.

  • Title must look like type(scope): summary. type is fix, feat, perf, docs, chore, test, tests, ci, build, refactor, or revert. An [Area] prefix is optional. Example: fix(serve): accept empty reasoning history.
  • Link an issue with Fixes #123 or Related to #123. For a behavior change, open the issue and wait for a maintainer to agree before writing the code. A docs title may omit this.
  • Add a "## How was it tested?" section, using that heading.

@github-actions github-actions Bot added strata edge0-strata needs-info Title, issue link, test notes, or PR cap still missing and removed needs-info Title, issue link, test notes, or PR cap still missing labels Dec 1, 2026
@eric-epsilla eric-epsilla changed the title [Engine] serve: find a bare "exe" on PATH when the model folder has no such file [Engine] fix(serve): find a bare "exe" on PATH when the model folder has no such file Dec 1, 2026
@github-actions github-actions Bot removed the needs-info Title, issue link, test notes, or PR cap still missing label Dec 1, 2026
@linyubupa
linyubupa merged commit c538624 into Edge0-AI:main Dec 1, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

strata edge0-strata

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[strata] model folder start.sh cannot start the server from a clone (engine path, bare "exe")

2 participants