Make optional deps safe, fix imports, harden llama-cli and runner registry#4
Merged
harvatechs merged 1 commit intomainfrom Feb 10, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
llama_cpp,torch) are not installed by treating them as optional and failing gracefully.ARIV_MODELS_YAML.Description
llama_cppandtorchas optional runtime dependencies by guarding imports and branching behaviour when they are absent, and add an explicitModelLoadErrorwhen attempting to load models withoutllama_cpp.coremodules to avoid import-time crashes.LlamaCLI.stream_chatto asynchronously collectstderrand raise a detailedRuntimeError(binary, model, exit code, stderr tail) if the subprocess exits with a non-zero status.ARIV_MODELS_YAMLor falling back to a path relative to the package file.torchhandling, runner registry cwd-independence, and llama-cli non-zero-exit handling).Testing
pytest -qand verified success:30 passed, 2 skipped.tests/test_runner_app.py,tests/test_llama_cli.py,tests/test_vram.py,tests/test_pipeline.py, andtests/test_orchestrator.pyto validate changes, all of which passed in targeted runs.Codex Task