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
16 lines
444 B
JSON
16 lines
444 B
JSON
{
|
|
"llama_server_path": "/Users/accusys/llama/bin/llama-server",
|
|
"model_path": "/Users/accusys/models/gemma-4-12b-it-Q4_K_M.gguf",
|
|
"mmproj_path": "/Users/accusys/models/mmproj-F16.gguf",
|
|
"port": 8080,
|
|
"host": "0.0.0.0",
|
|
"ctx_size": 8192,
|
|
"gpu_layers": 99,
|
|
"temperature": 0.1,
|
|
"max_tokens": 300,
|
|
"batch_size": 4096,
|
|
"ubatch_size": 4096,
|
|
"auto_restart": true,
|
|
"health_check_interval_secs": 30
|
|
}
|