ducklm/docs/how_to_run.md

1.2 KiB

How To Run

  1. Install dependencies:
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -e ".[dev]"
  1. Configure:
cp .env.example .env

The default DUCK_MAIN_MODEL_PATH points to ./models/Qwen3.6/nonMTP/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf.

  1. Start llama-server:
bash scripts/llama/start_main.sh start

Useful process commands:

bash scripts/llama/start_main.sh status
bash scripts/llama/start_main.sh logs --follow
bash scripts/llama/start_main.sh restart
bash scripts/llama/start_main.sh stop
  1. Start DuckLM API:
python -m duck_core.api
  1. Open WebChat:
http://127.0.0.1:8000/
  1. Send a task:
curl -X POST http://127.0.0.1:8000/v1/chat \
  -H "Content-Type: application/json" \
  -d '{"message":"Скажи коротко, что ты DuckLM","workspace":"./workspace","debug":true}'
  1. Inspect events:
curl http://127.0.0.1:8000/v1/tasks/<task_id>/events
  1. Approvals:
curl http://127.0.0.1:8000/v1/approvals/pending
  1. Stop services:
bash scripts/llama/start_main.sh stop
docker compose -f docker-compose.memory.yml down