13260cd126
Features: - Wrapper service for llama-server with health monitoring - REST API for chat completions (/v1/chat/completions) - Admin endpoints (/admin/restart, /admin/status) - Auto-restart on crash with health check interval - Support for multimodal models (gemma-4-12b with mmproj) Configuration (config.json): - llama_server_path, model_path, mmproj_path - port: 8080, host: 0.0.0.0 - ctx_size: 8192, gpu_layers: 99 - batch_size: 4096, ubatch_size: 4096 (fixes GGML assertion error) - temperature: 0.1, max_tokens: 300 - auto_restart: true, health_check_interval: 30s Bug fixes: - Added batch_size and ubatch_size to prevent GGML assertion failure - Changed Axum server port to port+9 (8089) to avoid sftpgo conflict - Set gpu_layers to 99 instead of -1 for stable GPU offloading
44 lines
840 B
Markdown
44 lines
840 B
Markdown
# MarkBaseEngine v1
|
|
|
|
Rust-based LLM/VLM inference service manager for llama.cpp.
|
|
|
|
## Features
|
|
|
|
- **Model Management**: Start/stop/restart llama-server automatically
|
|
- **Health Monitoring**: Periodic health checks with auto-restart
|
|
- **OpenAI-compatible API**: Transparent proxy to llama.cpp
|
|
- **Configuration**: JSON-based model configuration
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
cargo build --release
|
|
```
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
./target/release/markbaseengine --config config.json
|
|
```
|
|
|
|
## API Endpoints
|
|
|
|
- `GET /health` - Health check
|
|
- `GET /v1/models` - List models
|
|
- `POST /v1/chat/completions` - Chat completions
|
|
- `POST /admin/restart` - Restart LLM server
|
|
- `GET /admin/status` - Server status
|
|
|
|
## Configuration
|
|
|
|
Edit `config.json` to specify:
|
|
- Model path
|
|
- Server port
|
|
- Context size
|
|
- GPU layers
|
|
- Temperature, max_tokens, etc.
|
|
|
|
## License
|
|
|
|
MIT
|