llmsetup 0.1.0__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.1.0/LICENSE +202 -0
- llmsetup-0.1.0/NOTICE +7 -0
- llmsetup-0.1.0/PKG-INFO +291 -0
- llmsetup-0.1.0/README.md +259 -0
- llmsetup-0.1.0/pyproject.toml +90 -0
- llmsetup-0.1.0/setup.cfg +4 -0
- llmsetup-0.1.0/src/llmsetup/__main__.py +8 -0
- llmsetup-0.1.0/src/llmsetup/bench/__init__.py +27 -0
- llmsetup-0.1.0/src/llmsetup/bench/sweep.py +456 -0
- llmsetup-0.1.0/src/llmsetup/catalog/__init__.py +5 -0
- llmsetup-0.1.0/src/llmsetup/catalog/autoupdate.py +285 -0
- llmsetup-0.1.0/src/llmsetup/catalog/catalog.py +389 -0
- llmsetup-0.1.0/src/llmsetup/catalog/data/models.yaml +1323 -0
- llmsetup-0.1.0/src/llmsetup/catalog/discover.py +497 -0
- llmsetup-0.1.0/src/llmsetup/catalog/refresh.py +308 -0
- llmsetup-0.1.0/src/llmsetup/cli.py +835 -0
- llmsetup-0.1.0/src/llmsetup/download.py +415 -0
- llmsetup-0.1.0/src/llmsetup/gguf.py +347 -0
- llmsetup-0.1.0/src/llmsetup/hardware/__init__.py +5 -0
- llmsetup-0.1.0/src/llmsetup/hardware/bandwidth.py +150 -0
- llmsetup-0.1.0/src/llmsetup/hardware/cpu.py +178 -0
- llmsetup-0.1.0/src/llmsetup/hardware/detect.py +172 -0
- llmsetup-0.1.0/src/llmsetup/hardware/gpu.py +279 -0
- llmsetup-0.1.0/src/llmsetup/interop/__init__.py +5 -0
- llmsetup-0.1.0/src/llmsetup/interop/export.py +142 -0
- llmsetup-0.1.0/src/llmsetup/interop/jan.py +74 -0
- llmsetup-0.1.0/src/llmsetup/interop/llama_swap.py +86 -0
- llmsetup-0.1.0/src/llmsetup/interop/lmstudio.py +107 -0
- llmsetup-0.1.0/src/llmsetup/interop/ollama.py +90 -0
- llmsetup-0.1.0/src/llmsetup/interop/openai_clients.py +161 -0
- llmsetup-0.1.0/src/llmsetup/interview/__init__.py +5 -0
- llmsetup-0.1.0/src/llmsetup/interview/questions.py +213 -0
- llmsetup-0.1.0/src/llmsetup/interview/wizard.py +359 -0
- llmsetup-0.1.0/src/llmsetup/pipeline.py +773 -0
- llmsetup-0.1.0/src/llmsetup/planner/__init__.py +6 -0
- llmsetup-0.1.0/src/llmsetup/planner/memory.py +384 -0
- llmsetup-0.1.0/src/llmsetup/planner/model_fit.py +186 -0
- llmsetup-0.1.0/src/llmsetup/planner/moe.py +254 -0
- llmsetup-0.1.0/src/llmsetup/planner/plan.py +483 -0
- llmsetup-0.1.0/src/llmsetup/planner/requested.py +209 -0
- llmsetup-0.1.0/src/llmsetup/planner/score.py +174 -0
- llmsetup-0.1.0/src/llmsetup/repair/__init__.py +6 -0
- llmsetup-0.1.0/src/llmsetup/repair/loop.py +192 -0
- llmsetup-0.1.0/src/llmsetup/repair/strategies.py +795 -0
- llmsetup-0.1.0/src/llmsetup/report/__init__.py +5 -0
- llmsetup-0.1.0/src/llmsetup/report/render.py +525 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/__init__.py +14 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/base.py +168 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/capabilities.py +94 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/data/llamacpp_flags.py +422 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/dependencies.py +50 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/gguf_store.py +171 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/install.py +230 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/llamacpp.py +381 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/lmstudio.py +138 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/mlx.py +119 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/ollama.py +223 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/registry.py +215 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/tabby.py +113 -0
- llmsetup-0.1.0/src/llmsetup/runtimes/vllm.py +199 -0
- llmsetup-0.1.0/src/llmsetup/tuning/__init__.py +5 -0
- llmsetup-0.1.0/src/llmsetup/tuning/advanced.py +653 -0
- llmsetup-0.1.0/src/llmsetup/tuning/platform_tuning.py +276 -0
- llmsetup-0.1.0/src/llmsetup/tuning/profiles.py +387 -0
- llmsetup-0.1.0/src/llmsetup/tuning/publisher.py +135 -0
- llmsetup-0.1.0/src/llmsetup/tuning/sampling.py +227 -0
- llmsetup-0.1.0/src/llmsetup/tuning/tuner.py +783 -0
- llmsetup-0.1.0/src/llmsetup/types.py +680 -0
- llmsetup-0.1.0/src/llmsetup/ui/__init__.py +5 -0
- llmsetup-0.1.0/src/llmsetup/ui/server.py +345 -0
- llmsetup-0.1.0/src/llmsetup/ui/static/index.html +449 -0
- llmsetup-0.1.0/src/llmsetup/util/__init__.py +1 -0
- llmsetup-0.1.0/src/llmsetup/util/errors.py +45 -0
- llmsetup-0.1.0/src/llmsetup/util/fs.py +159 -0
- llmsetup-0.1.0/src/llmsetup/util/http.py +140 -0
- llmsetup-0.1.0/src/llmsetup/util/log.py +78 -0
- llmsetup-0.1.0/src/llmsetup/util/proc.py +147 -0
- llmsetup-0.1.0/src/llmsetup/util/units.py +61 -0
- llmsetup-0.1.0/src/llmsetup/verify/__init__.py +5 -0
- llmsetup-0.1.0/src/llmsetup/verify/checks.py +1041 -0
- llmsetup-0.1.0/src/llmsetup/verify/client.py +257 -0
- llmsetup-0.1.0/src/llmsetup/verify/harness.py +182 -0
- llmsetup-0.1.0/src/llmsetup/verify/signatures.py +125 -0
- llmsetup-0.1.0/src/llmsetup.egg-info/PKG-INFO +291 -0
- llmsetup-0.1.0/src/llmsetup.egg-info/SOURCES.txt +145 -0
- llmsetup-0.1.0/src/llmsetup.egg-info/dependency_links.txt +1 -0
- llmsetup-0.1.0/src/llmsetup.egg-info/entry_points.txt +2 -0
- llmsetup-0.1.0/src/llmsetup.egg-info/requires.txt +6 -0
- llmsetup-0.1.0/src/llmsetup.egg-info/top_level.txt +1 -0
- llmsetup-0.1.0/tests/test_advanced_tuning.py +479 -0
- llmsetup-0.1.0/tests/test_attention_and_drafting.py +384 -0
- llmsetup-0.1.0/tests/test_auto_detection.py +175 -0
- llmsetup-0.1.0/tests/test_auto_recovery.py +395 -0
- llmsetup-0.1.0/tests/test_autoupdate.py +417 -0
- llmsetup-0.1.0/tests/test_capabilities.py +135 -0
- llmsetup-0.1.0/tests/test_catalog.py +173 -0
- llmsetup-0.1.0/tests/test_catalog_boundaries.py +80 -0
- llmsetup-0.1.0/tests/test_catalog_refresh.py +215 -0
- llmsetup-0.1.0/tests/test_catalog_validation.py +53 -0
- llmsetup-0.1.0/tests/test_cli.py +270 -0
- llmsetup-0.1.0/tests/test_cli_inputs.py +86 -0
- llmsetup-0.1.0/tests/test_context_profile.py +53 -0
- llmsetup-0.1.0/tests/test_dense_offload.py +192 -0
- llmsetup-0.1.0/tests/test_dependency_compatibility.py +29 -0
- llmsetup-0.1.0/tests/test_download_integrity.py +156 -0
- llmsetup-0.1.0/tests/test_embedding_setup.py +199 -0
- llmsetup-0.1.0/tests/test_flag_coverage.py +122 -0
- llmsetup-0.1.0/tests/test_forum_practice.py +265 -0
- llmsetup-0.1.0/tests/test_gguf.py +152 -0
- llmsetup-0.1.0/tests/test_gpu_detection.py +115 -0
- llmsetup-0.1.0/tests/test_hybrid_attention.py +164 -0
- llmsetup-0.1.0/tests/test_interop.py +179 -0
- llmsetup-0.1.0/tests/test_interview.py +183 -0
- llmsetup-0.1.0/tests/test_kv_quality.py +174 -0
- llmsetup-0.1.0/tests/test_launch_failures.py +317 -0
- llmsetup-0.1.0/tests/test_launch_matrix.py +158 -0
- llmsetup-0.1.0/tests/test_memory.py +163 -0
- llmsetup-0.1.0/tests/test_model_revisions.py +137 -0
- llmsetup-0.1.0/tests/test_module_entrypoint.py +18 -0
- llmsetup-0.1.0/tests/test_multigpu_and_apple.py +193 -0
- llmsetup-0.1.0/tests/test_offline_integration.py +101 -0
- llmsetup-0.1.0/tests/test_ollama.py +191 -0
- llmsetup-0.1.0/tests/test_ollama_live.py +148 -0
- llmsetup-0.1.0/tests/test_plan_reporting.py +319 -0
- llmsetup-0.1.0/tests/test_planner.py +160 -0
- llmsetup-0.1.0/tests/test_prefill.py +201 -0
- llmsetup-0.1.0/tests/test_repair.py +304 -0
- llmsetup-0.1.0/tests/test_repair_provisioning.py +386 -0
- llmsetup-0.1.0/tests/test_reproducibility.py +133 -0
- llmsetup-0.1.0/tests/test_requested_model_planner.py +261 -0
- llmsetup-0.1.0/tests/test_research_config.py +246 -0
- llmsetup-0.1.0/tests/test_runtime_dependencies.py +70 -0
- llmsetup-0.1.0/tests/test_runtime_install.py +269 -0
- llmsetup-0.1.0/tests/test_security.py +196 -0
- llmsetup-0.1.0/tests/test_setups.py +210 -0
- llmsetup-0.1.0/tests/test_specific_model_interview.py +209 -0
- llmsetup-0.1.0/tests/test_specific_model_recovery.py +281 -0
- llmsetup-0.1.0/tests/test_specific_model_tuning.py +93 -0
- llmsetup-0.1.0/tests/test_startup_recovery.py +97 -0
- llmsetup-0.1.0/tests/test_sweep.py +298 -0
- llmsetup-0.1.0/tests/test_tool_parsers.py +157 -0
- llmsetup-0.1.0/tests/test_tuner.py +210 -0
- llmsetup-0.1.0/tests/test_ui.py +271 -0
- llmsetup-0.1.0/tests/test_verification_integrity.py +87 -0
- llmsetup-0.1.0/tests/test_verify.py +507 -0
- llmsetup-0.1.0/tests/test_vision.py +195 -0
- llmsetup-0.1.0/tests/test_vllm_kv.py +73 -0
llmsetup-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 The llmsetup Authors
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
llmsetup-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
llmsetup - catfish-1234/llmsetup
|
|
2
|
+
Copyright 2026 The llmsetup Authors
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0. See LICENSE.
|
|
5
|
+
|
|
6
|
+
Model weights downloaded or registered by llmsetup retain their publishers'
|
|
7
|
+
separate licenses. The llmsetup software license does not license those weights.
|
llmsetup-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: llmsetup
|
|
3
|
+
Version: 0.1.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: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
22
|
+
Requires-Python: >=3.9
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
License-File: NOTICE
|
|
26
|
+
Requires-Dist: PyYAML>=6.0
|
|
27
|
+
Provides-Extra: dev
|
|
28
|
+
Requires-Dist: pytest>=7; extra == "dev"
|
|
29
|
+
Requires-Dist: pytest-cov>=4; extra == "dev"
|
|
30
|
+
Requires-Dist: ruff==0.17.3; extra == "dev"
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# llmsetup
|
|
34
|
+
|
|
35
|
+
llmsetup sets up an open-weight LLM on your machine. It scans your hardware and
|
|
36
|
+
installed runtimes first, then asks what you want to do, such as coding, chat,
|
|
37
|
+
or running agents. You never need to enter hardware specs. It picks a model,
|
|
38
|
+
downloads the weights, starts a server, tests the capabilities you need, and
|
|
39
|
+
registers the working setup with your local apps.
|
|
40
|
+
|
|
41
|
+
When something fails, it tries repairs and fallback options automatically.
|
|
42
|
+
It only gives you a manual step after those options have failed.
|
|
43
|
+
|
|
44
|
+
This is the Python project at
|
|
45
|
+
[catfish-1234/llmsetup](https://github.com/catfish-1234/llmsetup),
|
|
46
|
+
licensed under Apache-2.0. It was renamed from llmfit to avoid confusion with the
|
|
47
|
+
unrelated [AlexsJones/llmfit](https://github.com/AlexsJones/llmfit) Rust project.
|
|
48
|
+
See [the name change and migration notes](docs/POSITIONING.md).
|
|
49
|
+
|
|
50
|
+
## Install
|
|
51
|
+
|
|
52
|
+
Use Python 3.9 or newer, preferably a version that still receives security
|
|
53
|
+
updates. PyYAML is the only runtime Python dependency. Install from this
|
|
54
|
+
repository; the renamed package has not been published to PyPI. You need
|
|
55
|
+
repository access to clone it.
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
git clone https://github.com/catfish-1234/llmsetup.git
|
|
59
|
+
cd llmsetup
|
|
60
|
+
python -m venv .venv
|
|
61
|
+
source .venv/bin/activate
|
|
62
|
+
python -m pip install .
|
|
63
|
+
llmsetup --version
|
|
64
|
+
llmsetup --help
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
On Windows, activate with `.venv\Scripts\Activate.ps1` in PowerShell. For
|
|
68
|
+
source development, use `python -m pip install -e .`.
|
|
69
|
+
|
|
70
|
+
You can make plans without a GPU or inference engine. Adapters cover Ollama,
|
|
71
|
+
llama.cpp, LM Studio, vLLM, MLX, and TabbyAPI. Setup prefers an installed engine.
|
|
72
|
+
If that engine is missing or fails, it tries compatible installed alternatives,
|
|
73
|
+
including llama.cpp on CPU. It can install a pinned, checksum-verified llama.cpp
|
|
74
|
+
build in its own data directory. Windows x86-64 machines with a detected GPU
|
|
75
|
+
get the Vulkan build; CPU-only machines get the CPU build. CPU fallback is
|
|
76
|
+
available when GPU attempts fail. It does not need administrator access.
|
|
77
|
+
|
|
78
|
+
## Quickstart
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# Inspect hardware, current memory use, and available runtimes.
|
|
82
|
+
llmsetup detect
|
|
83
|
+
|
|
84
|
+
# Scan the machine and ask about your goals.
|
|
85
|
+
llmsetup setup
|
|
86
|
+
|
|
87
|
+
# Skip the interview when you already know what you want.
|
|
88
|
+
llmsetup plan --task coding --task agent --context 32768 --commercial --yes
|
|
89
|
+
|
|
90
|
+
# Inspect tuning without installing an engine, downloading weights, or starting a server.
|
|
91
|
+
llmsetup setup --dry-run --task coding --context 32768 --yes
|
|
92
|
+
|
|
93
|
+
# Download, start, verify, and repair automatically.
|
|
94
|
+
llmsetup setup --task coding --context 8192 --yes
|
|
95
|
+
|
|
96
|
+
# Read the saved settings, checks, repair history, and launch command.
|
|
97
|
+
llmsetup report
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
`--task` is repeatable, for example `--task coding --task agent`. `--context`
|
|
101
|
+
sets the desired context in tokens; setup can shorten it to fit memory.
|
|
102
|
+
Without an explicit context, coding and agent profiles aim for 32K with a
|
|
103
|
+
16K floor, and warn if memory forces them below that floor.
|
|
104
|
+
`--yes` skips goal questions. A dry run writes a local report but runs no
|
|
105
|
+
verification, so it cannot tell you whether a model works on your hardware.
|
|
106
|
+
Use `llmsetup detect` to inspect the scan, or `llmsetup runtimes` to inspect
|
|
107
|
+
runtime availability. Neither command installs anything.
|
|
108
|
+
|
|
109
|
+
Detection covers OS, CPU and core counts, RAM, GPUs and VRAM, and installed
|
|
110
|
+
runtimes where they can be detected. A failed probe does not ask you for specs.
|
|
111
|
+
It uses conservative assumptions, reports them, and proceeds. If the requested
|
|
112
|
+
context cannot fit, planning tries shorter windows while keeping the required
|
|
113
|
+
capabilities. Dedicated GPU plans use total VRAM with a 10% reserve. Current
|
|
114
|
+
usage by other apps produces a warning and does not downgrade the model.
|
|
115
|
+
If no GPU configuration fits, compatible runtimes try system RAM on CPU.
|
|
116
|
+
|
|
117
|
+
You can also ask for a specific model by name during setup. llmsetup explains
|
|
118
|
+
how that model fits your hardware, including the quantization and context it
|
|
119
|
+
can hold and the speed to expect, and points out better-fitting alternatives
|
|
120
|
+
when the fit is poor. If you keep the model, planning and recovery tune
|
|
121
|
+
everything else around it instead of swapping it out. See
|
|
122
|
+
[asking for a specific model](docs/AUTOMATIC_SETUP.md#asking-for-a-specific-model).
|
|
123
|
+
For a scripted choice, use `llmsetup setup --model qwen3-8b --task chat --yes`.
|
|
124
|
+
If that model cannot work after recovery, setup exits with a failure and keeps
|
|
125
|
+
the requested model in the report. Alternatives require an explicit choice.
|
|
126
|
+
|
|
127
|
+
Setup retries transient provisioning failures and server starts, replaces
|
|
128
|
+
corrupt managed weights, tries cached weights when downloads are blocked, and
|
|
129
|
+
can reduce context, change quantization, offload
|
|
130
|
+
to CPU, swap models, or switch runtimes. Recovery has a fixed budget. The report
|
|
131
|
+
shows the final settings and repair history. A blocked network, an unsupported
|
|
132
|
+
portable runtime, or a requirement no available model can satisfy may still
|
|
133
|
+
need your help. The final error gives the next step. See
|
|
134
|
+
[automatic setup and recovery](docs/AUTOMATIC_SETUP.md) for the limits.
|
|
135
|
+
|
|
136
|
+
Setup can download many gigabytes, install the local fallback engine, start a
|
|
137
|
+
server, write reports, and register verified models with detected apps.
|
|
138
|
+
`--no-register` skips app registration. `--no-repair` disables repairs, extra
|
|
139
|
+
provisioning attempts, installation, and runtime fallback. Download transport
|
|
140
|
+
retries still apply. A preferred `--runtime` may change during recovery.
|
|
141
|
+
|
|
142
|
+
After verification, llmsetup stops servers it started. Shared Ollama and
|
|
143
|
+
LM Studio daemons keep running. The report includes a command to start the model
|
|
144
|
+
again; generated client snippets need a running endpoint.
|
|
145
|
+
|
|
146
|
+
## Other commands
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
# Reuse a profile with automatic catalog updates disabled.
|
|
150
|
+
llmsetup plan --answers examples/coding.yaml --json
|
|
151
|
+
llmsetup setup --answers examples/coding.yaml --dry-run --report setup.md
|
|
152
|
+
|
|
153
|
+
# Plan for CPU inference.
|
|
154
|
+
llmsetup plan --cpu-only --task chat --context 8192 --yes
|
|
155
|
+
|
|
156
|
+
# Check an existing OpenAI-compatible server. Give its root URL, without /v1.
|
|
157
|
+
llmsetup verify --base-url http://127.0.0.1:11434 --model qwen3:8b \
|
|
158
|
+
--tools --checks health,completion,tool_calling --yes
|
|
159
|
+
|
|
160
|
+
# Print the last report. Review it before sharing.
|
|
161
|
+
llmsetup report
|
|
162
|
+
|
|
163
|
+
# Inspect the catalog or add architecture details from a local GGUF.
|
|
164
|
+
llmsetup catalog list
|
|
165
|
+
llmsetup catalog show qwen3-8b
|
|
166
|
+
llmsetup catalog add my-finetune --gguf ./my-finetune-Q4_K_M.gguf --publisher me
|
|
167
|
+
|
|
168
|
+
# Open the local planning UI. Downloads are handed off to the CLI.
|
|
169
|
+
llmsetup ui --no-browser
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Profiles contain `tasks`, `clients`, `context_tokens`, `priority`,
|
|
173
|
+
`concurrent_users`, capability flags such as `needs_tools`, and `offline_only`.
|
|
174
|
+
Save interview answers with `llmsetup setup --save-profile profile.yaml`.
|
|
175
|
+
Command-line options override matching profile values. Use
|
|
176
|
+
`llmsetup <command> --help` for the available flags.
|
|
177
|
+
|
|
178
|
+
JSON results go to stdout; progress and diagnostics go to stderr. Setup and
|
|
179
|
+
verification return a nonzero exit code when a blocking check fails. A dry run
|
|
180
|
+
can exit successfully without verifying a model.
|
|
181
|
+
|
|
182
|
+
## Troubleshooting
|
|
183
|
+
|
|
184
|
+
Start with `llmsetup detect`, `llmsetup runtimes`, and `llmsetup report`.
|
|
185
|
+
Failures print the rerun command with your original options. Runtime failures
|
|
186
|
+
also include the engine command or server log when available.
|
|
187
|
+
|
|
188
|
+
| Symptom | What to do |
|
|
189
|
+
| --- | --- |
|
|
190
|
+
| Windows NVIDIA setup uses CPU unexpectedly | Run `llmsetup detect` to confirm the GPU. With recovery enabled, setup upgrades a managed CPU build to Vulkan before replanning. A CPU-only system build on PATH takes precedence; install a GPU-capable llama-server or remove that PATH entry. Review GPU layers in the report. |
|
|
191
|
+
| VRAM is busy or setup runs out of memory | Close GPU-heavy apps and rerun the printed command. Recovery can reduce context, quantization, or GPU layers, then try CPU. Use `--context 8192` to request a smaller window explicitly. |
|
|
192
|
+
| A reasoning model returns an empty first answer | Verification retries with more output-token room for thinking. Streaming recognizes `reasoning_content`, `reasoning`, and `thinking`. If the retry stays empty, the check fails and the report records it. |
|
|
193
|
+
| Port is in use or a server exits | llama.cpp selects a free nearby port. A conflicting service on Ollama's port is reported. Stop the conflicting service, inspect the named log, then rerun the printed command. Failed owned servers are stopped before retrying. |
|
|
194
|
+
| Download is partial, blocked, or times out | Valid `.part` files remain available for resume. Rerun with the same model and options. Check disk space, network access, model licence, and `HF_TOKEN` for gated models. A trusted mirror can be selected with `HF_ENDPOINT`. |
|
|
195
|
+
| Runtime is missing or cannot load a native library | Recovery tries compatible installed engines and the managed fallback. If those fail, install a compatible runtime on PATH and rerun. `--no-repair` disables automatic installation and runtime fallback. |
|
|
196
|
+
| Windows console uses cp1252 | Status, interview, and saved-report output replace unsupported characters; subprocess output is decoded as UTF-8 with replacement. Changing the code page is optional. |
|
|
197
|
+
|
|
198
|
+
External operations are bounded. Ollama import has a 60-minute timeout and
|
|
199
|
+
daemon startup has 45 seconds. llama.cpp startup allows 90 seconds plus 12
|
|
200
|
+
seconds per GiB of weights. Model downloads use a 60-second socket timeout,
|
|
201
|
+
a two-hour total budget per file, and at most four transport retries. Runtime
|
|
202
|
+
archive downloads use a 30-second socket timeout and a five-minute total budget.
|
|
203
|
+
An in-flight read can take up to the socket timeout before the total budget is
|
|
204
|
+
checked again. A timed-out operation fails with a resume or rerun instruction.
|
|
205
|
+
These limits apply per attempt; setup recovery can make further bounded attempts.
|
|
206
|
+
|
|
207
|
+
## Catalogs and downloads
|
|
208
|
+
|
|
209
|
+
The bundled YAML catalog is extended by files in `$LLMSETUP_HOME/catalog.d/`,
|
|
210
|
+
then `LLMSETUP_CATALOG` and explicit `--catalog` files, in that order. Later
|
|
211
|
+
entries with the same ID patch individual fields. Architecture values are
|
|
212
|
+
marked `measured` or `estimated`; metadata in a downloaded GGUF can correct
|
|
213
|
+
estimates.
|
|
214
|
+
|
|
215
|
+
Automatic catalog refreshes are enabled by default and checked at most daily.
|
|
216
|
+
They use this repository's raw catalog URL. If the source is unreachable, the
|
|
217
|
+
bundled catalog stays available. A private repository needs an accessible
|
|
218
|
+
mirror or local catalog source. Do not put access tokens in URLs or catalog files.
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
llmsetup catalog auto-update # show source, cadence, and status
|
|
222
|
+
llmsetup catalog auto-update --disable # persistent opt-out
|
|
223
|
+
llmsetup catalog auto-update --enable # allow automatic checks again
|
|
224
|
+
llmsetup catalog update # explicitly fetch now
|
|
225
|
+
llmsetup catalog refresh --offline # compare only local GGUFs
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
`LLMSETUP_AUTO_UPDATE=0` disables automatic catalog refreshes for one process.
|
|
229
|
+
`LLMSETUP_CATALOG_URL` selects a trusted HTTP(S) or `file://` source. Disabling
|
|
230
|
+
catalog refreshes, including through `offline_only`, does not stop a real
|
|
231
|
+
`setup` from downloading weights. Use `plan` or `setup --dry-run` to inspect a
|
|
232
|
+
configuration without provisioning.
|
|
233
|
+
|
|
234
|
+
Model downloads resolve and save a Hugging Face commit revision. You can also
|
|
235
|
+
pin revisions in a catalog overlay. Ollama imports the pinned GGUF and keeps
|
|
236
|
+
its own copy. See [reproducibility notes](docs/REPRODUCIBILITY.md) for details.
|
|
237
|
+
|
|
238
|
+
## Local files
|
|
239
|
+
|
|
240
|
+
Default data lives in `$XDG_DATA_HOME/llmsetup` or `~/.local/share/llmsetup` on
|
|
241
|
+
Unix, and `%LOCALAPPDATA%\llmsetup` on Windows. `LLMSETUP_HOME` overrides the
|
|
242
|
+
location of profiles, catalog overlays, reports, and generated configs.
|
|
243
|
+
`LLMSETUP_MODEL_STORE` overrides the shared model store.
|
|
244
|
+
|
|
245
|
+
If you used the old name, you can point these variables at your existing
|
|
246
|
+
directories. The rename does not move or delete data. Follow the
|
|
247
|
+
[migration notes](docs/POSITIONING.md#migrating-an-existing-installation) before
|
|
248
|
+
changing an existing installation.
|
|
249
|
+
|
|
250
|
+
Weights can be large. App registration can replace colliding model links or
|
|
251
|
+
generated files, so check the destinations and back up app configuration you
|
|
252
|
+
maintain yourself.
|
|
253
|
+
|
|
254
|
+
## Limits
|
|
255
|
+
|
|
256
|
+
- Memory and speed estimates depend on the catalog, engine and driver versions,
|
|
257
|
+
free memory, and other running work. A predicted fit can still run out of memory.
|
|
258
|
+
- Verification runs targeted smoke tests, not a general model-quality benchmark.
|
|
259
|
+
Passing a tool or JSON check does not prove reliability on every workload.
|
|
260
|
+
- Runtime adapters depend on external command-line interfaces that can change.
|
|
261
|
+
Unit tests use fakes; hardware compatibility needs tests with the actual engine.
|
|
262
|
+
- Repairs may shorten context, offload work to CPU, or change the model. Read the
|
|
263
|
+
repair journal and final settings before using the result.
|
|
264
|
+
- `doctor` detects hardware again and replans for the saved model and profile.
|
|
265
|
+
It does not replay every previous low-level setting.
|
|
266
|
+
- Byte counts and trusted transport do not prove model provenance. Review
|
|
267
|
+
publishers' licenses and sources. Model and software licenses are separate.
|
|
268
|
+
- The UI is a local loopback development server without authentication. Keep it
|
|
269
|
+
local. Generated shell examples use POSIX syntax unless stated otherwise.
|
|
270
|
+
|
|
271
|
+
## Development
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
python -m pip install -c requirements-ci.txt -e ".[dev]"
|
|
275
|
+
python -m pytest
|
|
276
|
+
python -m pytest --cov=llmsetup --cov-report=term-missing
|
|
277
|
+
ruff check src/ tests/ scripts/
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
Tests use temporary app directories and fake runtimes. UI tests need local
|
|
281
|
+
loopback sockets. No GPU or downloaded model is required.
|
|
282
|
+
|
|
283
|
+
- [Architecture](docs/ARCHITECTURE.md) and [design notes](docs/DESIGN.md)
|
|
284
|
+
- [Contributing](CONTRIBUTING.md) and [security reporting](SECURITY.md)
|
|
285
|
+
- [Repository review and priorities](docs/REPOSITORY_REVIEW.md)
|
|
286
|
+
- [Project name and migration](docs/POSITIONING.md)
|
|
287
|
+
|
|
288
|
+
## License
|
|
289
|
+
|
|
290
|
+
Apache-2.0; see [LICENSE](LICENSE). Downloaded model weights and external
|
|
291
|
+
inference engines retain their own licenses.
|