LLMHub CLI
LLMHub CLI is a command-line interface tool designed to manage and interact with various LLM (Large Language Model) servers. It allows you to start, stop, update, and manage LLM processes easily and efficiently.
Features
- Manage LLM servers
- Start, stop, and update LLM processes
- List available models and their statuses
- OpenAI-compatible API endpoints for completions and models
- Easily configurable via YAML files
- Supports different engines and quantization formats
Installation
You can install LLMHub CLI directly from PyPI:
pip install llmhub-cli
Usage
After installation, you can use the llmhub command to interact with the tool. Below are some example commands:
Start a Process
llmhub start MythoMax-L2-13B
Stop a Process
llmhub stop MythoMax-L2-13B
Update All Processes
llmhub update
List All Models
llmhub list-models
Check Status
llmhub status
Configuration
The configuration is handled via YAML files. You can place your config.yaml file in the ~/.llmhub/ directory or specify a custom path when initializing the ConfigManager.
Example Configuration
on_start:
MythoMax-L2-13B:
quant: Q5_K_M
engine: llamacppserver
context_size: [512, 1024, 2048]
port: 8080
enable_proxy: true
engine_port_min: 8081
engine_port_max: 10000
engines:
llamacppserver:
path: /path/to/llamacppserver
arguments: --color -t 20 --parallel 2 --mlock --metrics --verbose
model_flag: "-m"
context_size_flag: "-c"
port_flag: "--port"
api_key_flag: "--api-key"
file_types: [gguf]
API Endpoints
LLMHub CLI also provides OpenAI-compatible API endpoints:
/v1/completions: Handle completion requests./v1/chat/completions: Handle chat completion requests./v1/models: List available models.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
Contact
For any questions or issues, please open an issue on the GitHub repository.
Metadata
Release files for llmhub-cli 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| llmhub_cli-0.1.10.tar.gz | 16.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llmhub_cli-0.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.3 kB
Release files / llmhub_cli-0.1.10.tar.gz
| Download URL | llmhub_cli-0.1.10.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b85b80100318c584f68683ec64c174cb8251f264f94b3935dae845cded793a4f
|
|
BLAKE2b-256 checksum How to use checksums |
78d41ea98d1e06221a2a00decc0a46c05a52d0189ec66248c2b23ef6e353d9c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / llmhub_cli-0.1.10-py3-none-any.whl
| Download URL | llmhub_cli-0.1.10-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52c745f7d6e00188e3ebba147b99dd77c9218d97fd36c22adcbac79fe7b92f36
|
|
BLAKE2b-256 checksum How to use checksums |
f0888724d4ca1ccb4864b3fceb55b34f70bdb03ca2326122085a2a4ec83bcaa3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for llmhub-cli 0.1.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.