llmsetup 0.6.0__tar.gz → 0.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {llmsetup-0.6.0 → llmsetup-0.6.2}/PKG-INFO +55 -18
- llmsetup-0.6.0/src/llmsetup.egg-info/PKG-INFO → llmsetup-0.6.2/README.md +46 -47
- {llmsetup-0.6.0 → llmsetup-0.6.2}/pyproject.toml +11 -4
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/cli.py +3 -3
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/connect.py +32 -1
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/pipeline.py +2 -2
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/report/render.py +23 -1
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/llamacpp.py +2 -2
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/lmstudio.py +2 -2
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/ollama.py +2 -2
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/vllm.py +2 -2
- llmsetup-0.6.2/src/llmsetup/util/log.py +165 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/util/proc.py +28 -6
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/version.py +1 -1
- llmsetup-0.6.0/README.md → llmsetup-0.6.2/src/llmsetup.egg-info/PKG-INFO +84 -14
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup.egg-info/SOURCES.txt +5 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup.egg-info/requires.txt +1 -1
- llmsetup-0.6.2/tests/test_connect_vscode_agents.py +50 -0
- llmsetup-0.6.2/tests/test_console_encoding.py +49 -0
- llmsetup-0.6.2/tests/test_console_wrap.py +92 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_module_entrypoint.py +1 -1
- llmsetup-0.6.2/tests/test_report_next_steps.py +80 -0
- llmsetup-0.6.2/tests/test_version_line.py +59 -0
- llmsetup-0.6.0/src/llmsetup/util/log.py +0 -78
- {llmsetup-0.6.0 → llmsetup-0.6.2}/LICENSE +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/NOTICE +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/setup.cfg +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/__main__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/bench/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/bench/sweep.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/catalog/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/catalog/autoupdate.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/catalog/catalog.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/catalog/data/models.yaml +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/catalog/discover.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/catalog/hub.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/catalog/refresh.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/changes.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/chat.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/download.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/gguf.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/hardware/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/hardware/bandwidth.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/hardware/cpu.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/hardware/detect.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/hardware/gpu.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/interop/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/interop/export.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/interop/jan.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/interop/llama_swap.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/interop/lmstudio.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/interop/ollama.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/interop/openai_clients.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/interview/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/interview/questions.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/interview/wizard.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/launch.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/planner/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/planner/memory.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/planner/model_fit.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/planner/moe.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/planner/plan.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/planner/requested.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/planner/score.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/repair/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/repair/loop.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/repair/strategies.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/report/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/base.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/capabilities.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/data/llamacpp_flags.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/dependencies.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/gguf_store.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/install.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/mlx.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/registry.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/runtimes/tabby.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/server.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/tuning/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/tuning/advanced.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/tuning/overrides.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/tuning/platform_tuning.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/tuning/profiles.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/tuning/publisher.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/tuning/sampling.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/tuning/tuner.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/types.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/ui/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/ui/server.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/ui/static/index.html +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/util/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/util/errors.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/util/fs.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/util/http.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/util/modelfile.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/util/units.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/verify/__init__.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/verify/checks.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/verify/client.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/verify/harness.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup/verify/signatures.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup.egg-info/dependency_links.txt +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup.egg-info/entry_points.txt +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/src/llmsetup.egg-info/top_level.txt +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_advanced_tuning.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_attention_and_drafting.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_auto_detection.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_auto_recovery.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_autoupdate.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_background_server.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_capabilities.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_catalog.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_catalog_boundaries.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_catalog_refresh.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_catalog_validation.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_changes.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_chat.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_cli.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_cli_inputs.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_connect.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_context_profile.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_dense_offload.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_dependency_compatibility.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_disconnect.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_download_integrity.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_embedding_setup.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_flag_coverage.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_forum_practice.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_gguf.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_gpu_detection.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_hub_models.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_hybrid_attention.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_interop.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_interview.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_kv_quality.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_launch_failures.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_launch_matrix.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_memory.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_model_revisions.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_multigpu_and_apple.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_offline_integration.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_ollama.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_ollama_live.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_opencode_snippet.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_overrides.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_plan_reporting.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_planner.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_prefill.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_release_script.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_repair.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_repair_provisioning.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_reproducibility.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_requested_model_planner.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_research_config.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_runtime_dependencies.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_runtime_install.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_security.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_server_logs.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_setups.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_specific_model_interview.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_specific_model_recovery.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_specific_model_tuning.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_start.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_startup_recovery.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_stop_waits_for_port.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_sweep.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_tool_parsers.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_tuner.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_ui.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_verification_integrity.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_verify.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_vision.py +0 -0
- {llmsetup-0.6.0 → llmsetup-0.6.2}/tests/test_vllm_kv.py +0 -0
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: llmsetup
|
|
3
|
-
Version: 0.6.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 0.6.2
|
|
4
|
+
Summary: Run any open-weight LLM locally in one command: picks and tunes a model for your hardware (any Hugging Face GGUF, abliterated variants too), proves it works, and connects it to Claude Code, OpenCode, Aider, Continue, Zed or Goose. Every change can be undone.
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Project-URL: Homepage, https://github.com/catfish-1234/llmsetup
|
|
7
7
|
Project-URL: Source, https://github.com/catfish-1234/llmsetup
|
|
8
8
|
Project-URL: Issues, https://github.com/catfish-1234/llmsetup/issues
|
|
9
9
|
Project-URL: Documentation, https://github.com/catfish-1234/llmsetup#readme
|
|
10
|
-
Keywords: llm,local-llm,gguf,ollama,llama.cpp,lm-studio,vllm,mlx
|
|
10
|
+
Keywords: llm,local-llm,local-ai,gguf,ollama,llama.cpp,lm-studio,vllm,mlx,huggingface,quantization,inference,claude-code,opencode,aider,cline,roo-code,coding-agent,abliterated,self-hosted
|
|
11
11
|
Classifier: Development Status :: 4 - Beta
|
|
12
12
|
Classifier: Environment :: Console
|
|
13
13
|
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: MacOS
|
|
15
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
16
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
17
|
Classifier: Programming Language :: Python :: 3
|
|
15
18
|
Classifier: Programming Language :: Python :: 3.9
|
|
16
19
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -20,6 +23,8 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
20
23
|
Classifier: Programming Language :: Python :: 3.14
|
|
21
24
|
Classifier: Programming Language :: Python :: 3.15
|
|
22
25
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
26
|
+
Classifier: Topic :: Software Development
|
|
27
|
+
Classifier: Topic :: Utilities
|
|
23
28
|
Requires-Python: >=3.9
|
|
24
29
|
Description-Content-Type: text/markdown
|
|
25
30
|
License-File: LICENSE
|
|
@@ -28,25 +33,56 @@ Requires-Dist: PyYAML>=6.0
|
|
|
28
33
|
Provides-Extra: dev
|
|
29
34
|
Requires-Dist: pytest>=7; extra == "dev"
|
|
30
35
|
Requires-Dist: pytest-cov>=4; extra == "dev"
|
|
31
|
-
Requires-Dist: ruff==0.17.
|
|
36
|
+
Requires-Dist: ruff==0.17.6; extra == "dev"
|
|
32
37
|
Dynamic: license-file
|
|
33
38
|
|
|
34
39
|
# llmsetup
|
|
35
40
|
|
|
36
|
-
llmsetup
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
registers the working setup with your local apps.
|
|
41
|
+
[](https://pypi.org/project/llmsetup/)
|
|
42
|
+
[](https://pypistats.org/packages/llmsetup)
|
|
43
|
+
[](https://pypi.org/project/llmsetup/)
|
|
44
|
+
[](LICENSE)
|
|
41
45
|
|
|
42
|
-
|
|
43
|
-
It only gives you a manual step after those options have failed.
|
|
46
|
+
**A local LLM that works, in one command, wired into the coding agent you already use.**
|
|
44
47
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
```bash
|
|
49
|
+
pip install llmsetup
|
|
50
|
+
llmsetup setup # finds your hardware, picks and tunes a model, starts it, proves it works
|
|
51
|
+
llmsetup connect claude-code # or opencode, aider, cline, continue, zed, goose, ...
|
|
52
|
+
llmsetup undo # put back everything it changed
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
- **No specs to look up.** It reads your GPU, memory and installed engines, then
|
|
56
|
+
fits the model, quantization and context to what is actually free.
|
|
57
|
+
- **Any model.** The catalog's recommendations, any GGUF repo on Hugging Face
|
|
58
|
+
(`--model hf:owner/repo`), or a variant of a catalog model such as an
|
|
59
|
+
abliterated build (`--variant abliterated`). Any setting can be overridden
|
|
60
|
+
(`--set context_tokens=65536`).
|
|
61
|
+
- **Proven, not assumed.** It tests the capabilities you asked for (chat, tool
|
|
62
|
+
calls, long context, vision) before calling the setup done, and repairs or
|
|
63
|
+
falls back on its own when something fails.
|
|
64
|
+
- **Connected.** It writes the model into OpenCode, Continue, Aider, Zed, Qwen
|
|
65
|
+
Code and Goose configs, prints Claude Code's and Codex's launch settings and
|
|
66
|
+
what to enter in Cline, Roo Code and Kilo Code, and registers it with Ollama,
|
|
67
|
+
LM Studio and Jan.
|
|
68
|
+
- **Reversible.** Every change outside its own folder is recorded; `llmsetup
|
|
69
|
+
undo` reverses a run and `llmsetup disconnect` takes a tool back off.
|
|
70
|
+
|
|
71
|
+

|
|
72
|
+
|
|
73
|
+
What `llmsetup plan` recommends for coding on a 24 GB GPU. `--vram` asks what
|
|
74
|
+
fits on hardware you don't have yet; without it, the plan uses what it detects.
|
|
75
|
+
|
|
76
|
+
It scans your hardware and installed runtimes first, then asks what you want to
|
|
77
|
+
do, such as coding, chat, or running agents. It picks a model, downloads the
|
|
78
|
+
weights, starts a server, tests the capabilities you need, and registers the
|
|
79
|
+
working setup with your local apps. When something fails, it tries repairs and
|
|
80
|
+
fallback options automatically, and only gives you a manual step after those
|
|
81
|
+
have failed.
|
|
82
|
+
|
|
83
|
+
Apache-2.0. Formerly llmfit, renamed to avoid confusion with the unrelated
|
|
84
|
+
[AlexsJones/llmfit](https://github.com/AlexsJones/llmfit) Rust project; see
|
|
85
|
+
[the name change and migration notes](docs/POSITIONING.md).
|
|
50
86
|
|
|
51
87
|
## Install
|
|
52
88
|
|
|
@@ -233,6 +269,7 @@ llmsetup connect goose # its own provider file, then how to start Goos
|
|
|
233
269
|
llmsetup connect claude-code # the launch command; --project writes .claude/settings.local.json
|
|
234
270
|
llmsetup connect codex # the ~/.codex/config.toml provider and profile
|
|
235
271
|
llmsetup connect crush # the crushrc lines that add it
|
|
272
|
+
llmsetup connect cline # what to enter in its settings (also roo-code, kilo-code)
|
|
236
273
|
```
|
|
237
274
|
|
|
238
275
|
It merges an llmsetup entry and keeps everything else in the file, replaces
|
|
@@ -242,8 +279,8 @@ loses them. Goose keeps each custom provider in a file of its own, so `connect
|
|
|
242
279
|
goose` writes `custom_providers/llmsetup.json` and says how to start a session
|
|
243
280
|
on it; a server key stays in the `LLMSETUP_API_KEY` environment variable rather
|
|
244
281
|
than the file. Crush now reads `crushrc` command files, so `connect crush`
|
|
245
|
-
prints the lines to add. Open WebUI and
|
|
246
|
-
so `connect` prints
|
|
282
|
+
prints the lines to add. Open WebUI, Cursor, Cline, Roo Code and Kilo Code are set up in
|
|
283
|
+
their own screens, so `connect` prints what to enter there. Claude Code needs a server that speaks the Anthropic Messages
|
|
247
284
|
API (llama.cpp from January 2026, Ollama, LM Studio 0.4.1 or later) and its
|
|
248
285
|
prompts need at least 32K tokens of context; `connect claude-code` prints the
|
|
249
286
|
per-launch command, and writes settings only for one project with `--project`,
|
|
@@ -1,52 +1,50 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: llmsetup
|
|
3
|
-
Version: 0.6.0
|
|
4
|
-
Summary: Interview-driven setup assistant for local open-weight LLMs: picks the model, tunes the runtime, proves it works, and registers it with every local LLM app you use.
|
|
5
|
-
License-Expression: Apache-2.0
|
|
6
|
-
Project-URL: Homepage, https://github.com/catfish-1234/llmsetup
|
|
7
|
-
Project-URL: Source, https://github.com/catfish-1234/llmsetup
|
|
8
|
-
Project-URL: Issues, https://github.com/catfish-1234/llmsetup/issues
|
|
9
|
-
Project-URL: Documentation, https://github.com/catfish-1234/llmsetup#readme
|
|
10
|
-
Keywords: llm,local-llm,gguf,ollama,llama.cpp,lm-studio,vllm,mlx
|
|
11
|
-
Classifier: Development Status :: 4 - Beta
|
|
12
|
-
Classifier: Environment :: Console
|
|
13
|
-
Classifier: Intended Audience :: Developers
|
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.15
|
|
22
|
-
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
23
|
-
Requires-Python: >=3.9
|
|
24
|
-
Description-Content-Type: text/markdown
|
|
25
|
-
License-File: LICENSE
|
|
26
|
-
License-File: NOTICE
|
|
27
|
-
Requires-Dist: PyYAML>=6.0
|
|
28
|
-
Provides-Extra: dev
|
|
29
|
-
Requires-Dist: pytest>=7; extra == "dev"
|
|
30
|
-
Requires-Dist: pytest-cov>=4; extra == "dev"
|
|
31
|
-
Requires-Dist: ruff==0.17.5; extra == "dev"
|
|
32
|
-
Dynamic: license-file
|
|
33
|
-
|
|
34
1
|
# llmsetup
|
|
35
2
|
|
|
36
|
-
llmsetup
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
3
|
+
[](https://pypi.org/project/llmsetup/)
|
|
4
|
+
[](https://pypistats.org/packages/llmsetup)
|
|
5
|
+
[](https://pypi.org/project/llmsetup/)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+
**A local LLM that works, in one command, wired into the coding agent you already use.**
|
|
41
9
|
|
|
42
|
-
|
|
43
|
-
|
|
10
|
+
```bash
|
|
11
|
+
pip install llmsetup
|
|
12
|
+
llmsetup setup # finds your hardware, picks and tunes a model, starts it, proves it works
|
|
13
|
+
llmsetup connect claude-code # or opencode, aider, cline, continue, zed, goose, ...
|
|
14
|
+
llmsetup undo # put back everything it changed
|
|
15
|
+
```
|
|
44
16
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
17
|
+
- **No specs to look up.** It reads your GPU, memory and installed engines, then
|
|
18
|
+
fits the model, quantization and context to what is actually free.
|
|
19
|
+
- **Any model.** The catalog's recommendations, any GGUF repo on Hugging Face
|
|
20
|
+
(`--model hf:owner/repo`), or a variant of a catalog model such as an
|
|
21
|
+
abliterated build (`--variant abliterated`). Any setting can be overridden
|
|
22
|
+
(`--set context_tokens=65536`).
|
|
23
|
+
- **Proven, not assumed.** It tests the capabilities you asked for (chat, tool
|
|
24
|
+
calls, long context, vision) before calling the setup done, and repairs or
|
|
25
|
+
falls back on its own when something fails.
|
|
26
|
+
- **Connected.** It writes the model into OpenCode, Continue, Aider, Zed, Qwen
|
|
27
|
+
Code and Goose configs, prints Claude Code's and Codex's launch settings and
|
|
28
|
+
what to enter in Cline, Roo Code and Kilo Code, and registers it with Ollama,
|
|
29
|
+
LM Studio and Jan.
|
|
30
|
+
- **Reversible.** Every change outside its own folder is recorded; `llmsetup
|
|
31
|
+
undo` reverses a run and `llmsetup disconnect` takes a tool back off.
|
|
32
|
+
|
|
33
|
+

|
|
34
|
+
|
|
35
|
+
What `llmsetup plan` recommends for coding on a 24 GB GPU. `--vram` asks what
|
|
36
|
+
fits on hardware you don't have yet; without it, the plan uses what it detects.
|
|
37
|
+
|
|
38
|
+
It scans your hardware and installed runtimes first, then asks what you want to
|
|
39
|
+
do, such as coding, chat, or running agents. It picks a model, downloads the
|
|
40
|
+
weights, starts a server, tests the capabilities you need, and registers the
|
|
41
|
+
working setup with your local apps. When something fails, it tries repairs and
|
|
42
|
+
fallback options automatically, and only gives you a manual step after those
|
|
43
|
+
have failed.
|
|
44
|
+
|
|
45
|
+
Apache-2.0. Formerly llmfit, renamed to avoid confusion with the unrelated
|
|
46
|
+
[AlexsJones/llmfit](https://github.com/AlexsJones/llmfit) Rust project; see
|
|
47
|
+
[the name change and migration notes](docs/POSITIONING.md).
|
|
50
48
|
|
|
51
49
|
## Install
|
|
52
50
|
|
|
@@ -233,6 +231,7 @@ llmsetup connect goose # its own provider file, then how to start Goos
|
|
|
233
231
|
llmsetup connect claude-code # the launch command; --project writes .claude/settings.local.json
|
|
234
232
|
llmsetup connect codex # the ~/.codex/config.toml provider and profile
|
|
235
233
|
llmsetup connect crush # the crushrc lines that add it
|
|
234
|
+
llmsetup connect cline # what to enter in its settings (also roo-code, kilo-code)
|
|
236
235
|
```
|
|
237
236
|
|
|
238
237
|
It merges an llmsetup entry and keeps everything else in the file, replaces
|
|
@@ -242,8 +241,8 @@ loses them. Goose keeps each custom provider in a file of its own, so `connect
|
|
|
242
241
|
goose` writes `custom_providers/llmsetup.json` and says how to start a session
|
|
243
242
|
on it; a server key stays in the `LLMSETUP_API_KEY` environment variable rather
|
|
244
243
|
than the file. Crush now reads `crushrc` command files, so `connect crush`
|
|
245
|
-
prints the lines to add. Open WebUI and
|
|
246
|
-
so `connect` prints
|
|
244
|
+
prints the lines to add. Open WebUI, Cursor, Cline, Roo Code and Kilo Code are set up in
|
|
245
|
+
their own screens, so `connect` prints what to enter there. Claude Code needs a server that speaks the Anthropic Messages
|
|
247
246
|
API (llama.cpp from January 2026, Ollama, LM Studio 0.4.1 or later) and its
|
|
248
247
|
prompts need at least 32K tokens of context; `connect claude-code` prints the
|
|
249
248
|
per-launch command, and writes settings only for one project with `--project`,
|
|
@@ -11,17 +11,22 @@ build-backend = "setuptools.build_meta"
|
|
|
11
11
|
|
|
12
12
|
[project]
|
|
13
13
|
name = "llmsetup"
|
|
14
|
-
version = "0.6.
|
|
15
|
-
description = "
|
|
14
|
+
version = "0.6.2"
|
|
15
|
+
description = "Run any open-weight LLM locally in one command: picks and tunes a model for your hardware (any Hugging Face GGUF, abliterated variants too), proves it works, and connects it to Claude Code, OpenCode, Aider, Continue, Zed or Goose. Every change can be undone."
|
|
16
16
|
readme = "README.md"
|
|
17
17
|
requires-python = ">=3.9"
|
|
18
18
|
license = "Apache-2.0"
|
|
19
19
|
license-files = ["LICENSE", "NOTICE"]
|
|
20
|
-
keywords = ["llm", "local-llm", "gguf", "ollama", "llama.cpp", "lm-studio", "vllm", "mlx"
|
|
20
|
+
keywords = ["llm", "local-llm", "local-ai", "gguf", "ollama", "llama.cpp", "lm-studio", "vllm", "mlx",
|
|
21
|
+
"huggingface", "quantization", "inference", "claude-code", "opencode", "aider", "cline", "roo-code", "coding-agent",
|
|
22
|
+
"abliterated", "self-hosted"]
|
|
21
23
|
classifiers = [
|
|
22
24
|
"Development Status :: 4 - Beta",
|
|
23
25
|
"Environment :: Console",
|
|
24
26
|
"Intended Audience :: Developers",
|
|
27
|
+
"Operating System :: MacOS",
|
|
28
|
+
"Operating System :: Microsoft :: Windows",
|
|
29
|
+
"Operating System :: POSIX :: Linux",
|
|
25
30
|
"Programming Language :: Python :: 3",
|
|
26
31
|
"Programming Language :: Python :: 3.9",
|
|
27
32
|
"Programming Language :: Python :: 3.10",
|
|
@@ -31,13 +36,15 @@ classifiers = [
|
|
|
31
36
|
"Programming Language :: Python :: 3.14",
|
|
32
37
|
"Programming Language :: Python :: 3.15",
|
|
33
38
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
39
|
+
"Topic :: Software Development",
|
|
40
|
+
"Topic :: Utilities",
|
|
34
41
|
]
|
|
35
42
|
# Deliberately near-zero dependency: this tool runs on whatever machine the user
|
|
36
43
|
# already has. PyYAML is the only runtime dep (human-editable model catalog).
|
|
37
44
|
dependencies = ["PyYAML>=6.0"]
|
|
38
45
|
|
|
39
46
|
[project.optional-dependencies]
|
|
40
|
-
dev = ["pytest>=7", "pytest-cov>=4", "ruff==0.17.
|
|
47
|
+
dev = ["pytest>=7", "pytest-cov>=4", "ruff==0.17.6"]
|
|
41
48
|
|
|
42
49
|
[project.scripts]
|
|
43
50
|
llmsetup = "llmsetup.cli:main"
|
|
@@ -530,17 +530,17 @@ def cmd_plan(args, console: Console) -> int:
|
|
|
530
530
|
+ (f"~{tps:.0f} tok/s " if tps else "")
|
|
531
531
|
+ f"score {candidate.score:.3f}"
|
|
532
532
|
)
|
|
533
|
-
console.info(console.dim(f" {explain(candidate, profile, hardware)}"))
|
|
533
|
+
console.info(console.dim(f" {explain(candidate, profile, hardware)}"), wrap=True)
|
|
534
534
|
console.info(console.dim(
|
|
535
535
|
f" weights {gb(candidate.estimate.weights)} + "
|
|
536
536
|
f"KV {gb(candidate.estimate.kv_cache)} ({candidate.estimate.kv_quant}) + "
|
|
537
537
|
f"overhead {gb(candidate.estimate.overhead)}"
|
|
538
538
|
))
|
|
539
539
|
for warning in candidate.warnings:
|
|
540
|
-
console.warn(f" {warning}")
|
|
540
|
+
console.warn(f" {warning}", wrap=True)
|
|
541
541
|
console.print()
|
|
542
542
|
for note in plan.notes:
|
|
543
|
-
console.info(console.dim(note))
|
|
543
|
+
console.info(console.dim(note), wrap=True)
|
|
544
544
|
|
|
545
545
|
embedder = companion_embedding_plan(profile, hardware, catalog)
|
|
546
546
|
if embedder:
|
|
@@ -14,6 +14,7 @@ Tools configured only through their own UI (Open WebUI, Cursor) get the exact st
|
|
|
14
14
|
|
|
15
15
|
from __future__ import annotations
|
|
16
16
|
|
|
17
|
+
import functools
|
|
17
18
|
import json
|
|
18
19
|
import os
|
|
19
20
|
import platform
|
|
@@ -361,6 +362,35 @@ def codex_steps(target: Target) -> Dict[str, str]:
|
|
|
361
362
|
}
|
|
362
363
|
|
|
363
364
|
|
|
365
|
+
#: Coding agents that live in a VS Code panel and keep their provider settings in VS Code's own
|
|
366
|
+
#: storage rather than a file, all reaching a local server through an "OpenAI Compatible" provider.
|
|
367
|
+
#: Roo Code and Kilo Code are forks of Cline and share its settings screen.
|
|
368
|
+
VSCODE_AGENTS = {"cline": "Cline", "roo_code": "Roo Code", "kilo_code": "Kilo Code"}
|
|
369
|
+
|
|
370
|
+
#: Their system prompt and tool descriptions take thousands of tokens on every request.
|
|
371
|
+
VSCODE_AGENT_MIN_CONTEXT = 32768
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
def vscode_agent_steps(harness_id: str, target: Target) -> Dict[str, str]:
|
|
375
|
+
name = VSCODE_AGENTS[harness_id]
|
|
376
|
+
context = target.config.context_tokens
|
|
377
|
+
note = ""
|
|
378
|
+
if context < VSCODE_AGENT_MIN_CONTEXT:
|
|
379
|
+
note = (f"\nThe verified context is {context:,} tokens. {name} sends a long system prompt and its "
|
|
380
|
+
f"tool descriptions with every request, which leaves little of that for your code; rerun "
|
|
381
|
+
f"setup with --set context_tokens={VSCODE_AGENT_MIN_CONTEXT * 2} if it fits.\n")
|
|
382
|
+
return {
|
|
383
|
+
"name": name,
|
|
384
|
+
"path": f"{name}'s settings (the gear in its VS Code panel), under API Provider",
|
|
385
|
+
"format": "text",
|
|
386
|
+
"content": (f"API Provider: OpenAI Compatible\n"
|
|
387
|
+
f"Base URL: {target.base}\n"
|
|
388
|
+
f"API Key: {target.api_key or DUMMY_KEY}\n"
|
|
389
|
+
f"Model ID: {target.model}\n"
|
|
390
|
+
f"Context window: {context} (in the model's configuration below those)\n{note}"),
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
|
|
364
394
|
# --------------------------------------------------------------------------- #
|
|
365
395
|
# taking llmsetup's entries back out: `llmsetup disconnect`
|
|
366
396
|
# --------------------------------------------------------------------------- #
|
|
@@ -473,10 +503,11 @@ STEPS: Dict[str, Callable[[Target], Dict[str, str]]] = {
|
|
|
473
503
|
"claude_code": claude_code_steps,
|
|
474
504
|
"codex": codex_steps,
|
|
475
505
|
"crush": crush_steps,
|
|
506
|
+
**{agent: functools.partial(vscode_agent_steps, agent) for agent in VSCODE_AGENTS},
|
|
476
507
|
}
|
|
477
508
|
|
|
478
509
|
#: Configured in the tool's own interface, or through a file connect does not edit: it prints the steps.
|
|
479
|
-
INSTRUCTIONS_ONLY = {"open_webui", "cursor", "custom_openai", "codex", "crush"}
|
|
510
|
+
INSTRUCTIONS_ONLY = {"open_webui", "cursor", "custom_openai", "codex", "crush", *VSCODE_AGENTS}
|
|
480
511
|
|
|
481
512
|
|
|
482
513
|
# --------------------------------------------------------------------------- #
|
|
@@ -305,9 +305,9 @@ class Pipeline:
|
|
|
305
305
|
f"(~{candidate.estimate.total_gb:.1f} GB) on {plan.runtime}"
|
|
306
306
|
)
|
|
307
307
|
for note in plan.notes:
|
|
308
|
-
self.console.info(self.console.dim(note))
|
|
308
|
+
self.console.info(self.console.dim(note), wrap=True)
|
|
309
309
|
for warning in candidate.warnings:
|
|
310
|
-
self.console.warn(warning)
|
|
310
|
+
self.console.warn(warning, wrap=True)
|
|
311
311
|
|
|
312
312
|
self.console.step("Tuning")
|
|
313
313
|
tuned = tune(candidate, self.hardware, self.profile, plan.runtime,
|
|
@@ -22,6 +22,7 @@ from llmsetup.types import (
|
|
|
22
22
|
Severity,
|
|
23
23
|
)
|
|
24
24
|
from llmsetup.util.log import Console
|
|
25
|
+
from llmsetup.util.proc import format_command
|
|
25
26
|
from llmsetup.util.units import gb, human_tokens
|
|
26
27
|
|
|
27
28
|
_MARK = {
|
|
@@ -290,10 +291,13 @@ def _render_next_steps(result: SetupResult, console: Console) -> None:
|
|
|
290
291
|
console.info(note)
|
|
291
292
|
try:
|
|
292
293
|
command = get_runtime(result.plan.runtime).launch_command(spec, config)
|
|
293
|
-
console.info(
|
|
294
|
+
console.info(format_command(command))
|
|
294
295
|
except Exception:
|
|
295
296
|
pass
|
|
296
297
|
|
|
298
|
+
if result.succeeded and result.checks_ran:
|
|
299
|
+
_render_use_it(result, console)
|
|
300
|
+
|
|
297
301
|
failures = [c for c in result.checks if c.blocking]
|
|
298
302
|
if failures:
|
|
299
303
|
console.print()
|
|
@@ -305,6 +309,24 @@ def _render_next_steps(result: SetupResult, console: Console) -> None:
|
|
|
305
309
|
))
|
|
306
310
|
|
|
307
311
|
|
|
312
|
+
def _render_use_it(result: SetupResult, console: Console) -> None:
|
|
313
|
+
"""The commands that take a verified setup from here, so they are found without the README."""
|
|
314
|
+
from llmsetup.launch import SHARED_DAEMONS
|
|
315
|
+
|
|
316
|
+
steps = []
|
|
317
|
+
if result.plan.runtime not in SHARED_DAEMONS:
|
|
318
|
+
steps.append(("llmsetup start --detach", "keep it running in the background"))
|
|
319
|
+
steps += [
|
|
320
|
+
("llmsetup connect claude-code", "or opencode, aider, zed, goose, ... (--list)"),
|
|
321
|
+
("llmsetup chat", "talk to it in the terminal"),
|
|
322
|
+
("llmsetup undo", "put back what this run changed in other apps"),
|
|
323
|
+
]
|
|
324
|
+
console.print()
|
|
325
|
+
console.print(console.bold("Use it"))
|
|
326
|
+
for command, what in steps:
|
|
327
|
+
console.info(f"{command:<29} {console.dim(what)}")
|
|
328
|
+
|
|
329
|
+
|
|
308
330
|
def _launch_note(result: SetupResult) -> str:
|
|
309
331
|
if result.plan.runtime != "ollama":
|
|
310
332
|
return ""
|
|
@@ -20,7 +20,7 @@ from llmsetup.types import ModelSpec, RuntimeConfig
|
|
|
20
20
|
from llmsetup.util import http
|
|
21
21
|
from llmsetup.util.fs import app_dir, ensure_dir
|
|
22
22
|
from llmsetup.util.log import Console
|
|
23
|
-
from llmsetup.util.proc import
|
|
23
|
+
from llmsetup.util.proc import run, spawn, version_line, which
|
|
24
24
|
|
|
25
25
|
#: Flags that stand alone, so filtering must not swallow the token after them.
|
|
26
26
|
_VALUELESS_FLAGS = {
|
|
@@ -59,7 +59,7 @@ class LlamaCppRuntime(Runtime):
|
|
|
59
59
|
|
|
60
60
|
def version(self) -> Optional[str]:
|
|
61
61
|
result = run([self.binary, "--version"], timeout=15)
|
|
62
|
-
return
|
|
62
|
+
return version_line(result.output) if result.output else None
|
|
63
63
|
|
|
64
64
|
def ensure_model(self, spec: ModelSpec, config: RuntimeConfig,
|
|
65
65
|
console: Console) -> RuntimeConfig:
|
|
@@ -18,7 +18,7 @@ from llmsetup.runtimes.registry import register
|
|
|
18
18
|
from llmsetup.types import ModelSpec, RuntimeConfig
|
|
19
19
|
from llmsetup.util import http
|
|
20
20
|
from llmsetup.util.log import Console
|
|
21
|
-
from llmsetup.util.proc import
|
|
21
|
+
from llmsetup.util.proc import format_command, run, version_line, which
|
|
22
22
|
|
|
23
23
|
DEFAULT_PORT = 1234
|
|
24
24
|
|
|
@@ -49,7 +49,7 @@ class LmStudioRuntime(Runtime):
|
|
|
49
49
|
|
|
50
50
|
def version(self) -> Optional[str]:
|
|
51
51
|
result = run(["lms", "version"], timeout=10)
|
|
52
|
-
return
|
|
52
|
+
return version_line(result.output) if result.ok else None
|
|
53
53
|
|
|
54
54
|
def ensure_model(self, spec: ModelSpec, config: RuntimeConfig,
|
|
55
55
|
console: Console) -> RuntimeConfig:
|
|
@@ -24,7 +24,7 @@ from llmsetup.util import http
|
|
|
24
24
|
from llmsetup.util.fs import app_dir, ensure_dir, write_text
|
|
25
25
|
from llmsetup.util.log import Console
|
|
26
26
|
from llmsetup.util.modelfile import modelfile_bare, modelfile_string, modelfile_text
|
|
27
|
-
from llmsetup.util.proc import
|
|
27
|
+
from llmsetup.util.proc import format_command, run, spawn, version_line, which
|
|
28
28
|
|
|
29
29
|
DEFAULT_PORT = 11434
|
|
30
30
|
|
|
@@ -48,7 +48,7 @@ class OllamaRuntime(Runtime):
|
|
|
48
48
|
|
|
49
49
|
def version(self) -> Optional[str]:
|
|
50
50
|
result = run(["ollama", "--version"], timeout=10)
|
|
51
|
-
return
|
|
51
|
+
return version_line(result.output) if result.ok else None
|
|
52
52
|
|
|
53
53
|
def derived_name(self, spec: ModelSpec) -> str:
|
|
54
54
|
"""Tag for our tuned variant. Kept distinct so we never shadow their model."""
|
|
@@ -20,7 +20,7 @@ from llmsetup.types import ModelSpec, RuntimeConfig
|
|
|
20
20
|
from llmsetup.util import http
|
|
21
21
|
from llmsetup.util.fs import app_dir, ensure_dir
|
|
22
22
|
from llmsetup.util.log import Console
|
|
23
|
-
from llmsetup.util.proc import
|
|
23
|
+
from llmsetup.util.proc import run, spawn, version_line, which
|
|
24
24
|
|
|
25
25
|
DEFAULT_PORT = 8000
|
|
26
26
|
|
|
@@ -59,7 +59,7 @@ class VllmRuntime(Runtime):
|
|
|
59
59
|
|
|
60
60
|
def version(self) -> Optional[str]:
|
|
61
61
|
result = run(["vllm", "--version"], timeout=30)
|
|
62
|
-
return
|
|
62
|
+
return version_line(result.output) if result.ok else None
|
|
63
63
|
|
|
64
64
|
def supports(self, spec: ModelSpec) -> bool:
|
|
65
65
|
return bool(spec.hf_repo)
|