docs: update LLM config to gemma-4-12b-it (chat/summary server on port 8080)

This commit is contained in:
Accusys
2026-08-27 17:26:02 +08:00
parent 20f5974b52
commit d8e4033741
+25 -12
View File
@@ -255,7 +255,7 @@ grep -i "error\|panic\|FAIL" logs/momentry_*.log | tail -20
| 用途 | Model | 服務 | Port | API 格式 |
|------|-------|------|------|----------|
| **Agent Search** | `llama3.1:8b` | Ollama | 11434 | `/v1/chat/completions` |
| **Chat / Summary** | `gemma-4-12b-it` | llama.cpp | 8080 | `/v1/chat/completions` |
| **VLM(視覺)** | `llava-v1.6-vicuna-13b` | llama.cpp | 8091 | `/v1/chat/completions` |
| **Embedding** | `embeddinggemma-300m` | Python | 11436 | Custom |
@@ -263,23 +263,34 @@ grep -i "error\|panic\|FAIL" logs/momentry_*.log | tail -20
```
/Users/accusys/models/
├── gemma-4-12b-it-Q4_K_M.gguf (Chat/Summary LLM - 6.6GB)
├── llava-v1.6-vicuna-13b.Q4_K_M.gguf (VLM model)
├── mmproj-model-f16.gguf (VLM mmproj)
├── embeddinggemma-300M-Q8_0.gguf (Embedding model)
├── gemma-4-E4B-it-Q4_K_M.gguf (Text LLM)
└── google_gemma-4-26B-A4B-it-Q5_K_M.gguf (Text LLM)
└── embeddinggemma-300M-Q8_0.gguf (Embedding model)
```
### 啟動命令
**Ollama (llama3.1:8b)**
**Chat Server (gemma-4-12b-it)** - via launchd
```bash
ollama serve # Service
ollama run llama3.1:8b # Interactive
curl http://localhost:11434/api/chat # API endpoint
# Service managed by launchd
launchctl load ~/Library/LaunchAgents/com.momentry.chat-llamacpp.plist
launchctl unload ~/Library/LaunchAgents/com.momentry.chat-llamacpp.plist
# Manual start (for testing)
/Users/accusys/llama/bin/llama-server \
-m /Users/accusys/models/gemma-4-12b-it-Q4_K_M.gguf \
--host 0.0.0.0 \
--port 8080 \
-ngl 99 \
-c 8192 \
--temp 0.1
# API endpoint
curl http://localhost:8080/v1/chat/completions
```
**llama.cpp (llava-v1.6-vicuna-13b)**
**VLM Server (llava-v1.6-vicuna-13b)**
```bash
/Users/accusys/llama/bin/llama-server \
-m /Users/accusys/models/llava-v1.6-vicuna-13b.Q4_K_M.gguf \
@@ -309,11 +320,13 @@ python3 scripts/embeddinggemma_server.py --port 11436
### 環境變數
```bash
# .env.development
MOMENTRY_LLM_CHAT_URL=http://localhost:11434/api/chat
MOMENTRY_LLM_CHAT_MODEL=llama3.1:8b
# .env
MOMENTRY_LLM_CHAT_URL=http://localhost:8080/v1/chat/completions
MOMENTRY_LLM_CHAT_MODEL=gemma-4-12b-it
MOMENTRY_LLM_VISION_URL=http://localhost:8091/v1/chat/completions
MOMENTRY_LLM_VISION_MODEL=llava-v1.6-vicuna-13b
MOMENTRY_LLM_SUMMARY_URL=http://localhost:8080/v1/chat/completions
MOMENTRY_LLM_SUMMARY_MODEL=gemma-4-12b-it
```
## Testing