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
840 B
840 B
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
cargo build --release
Usage
./target/release/markbaseengine --config config.json
API Endpoints
GET /health- Health checkGET /v1/models- List modelsPOST /v1/chat/completions- Chat completionsPOST /admin/restart- Restart LLM serverGET /admin/status- Server status
Configuration
Edit config.json to specify:
- Model path
- Server port
- Context size
- GPU layers
- Temperature, max_tokens, etc.
License
MIT