Running AWS Strands Decider 2B Locally: A Complete Setup Guide for AI Routing & Multi-RAG Systems
说明与用途
在 Windows 上通过 WSL2 本地部署 AWS Strands Decider 2B,可将路由决策与 LLM 生成分离,提升 GenAI 工作流的决策可靠性。
问题
GenAI applications need reliable pre‑LLM decisions for routing, scoring, and orchestration, but traditional LLMs handle both decision making and response generation.
结果
Local deployment of Strands Decider 2B enables efficient routing decisions in GenAI pipelines, separating decision logic from LLM generation.
工作流
- Verify WSL2 installation with
wsl -l -v - Create workspace at
/mnt/c/GENAI/strands - Update Ubuntu and install dependencies (
sudo apt update && sudo apt install -y python3 python3-pip python3-venv python3-dev build-essential gcc g++) - Create and activate Python virtual environment (
python3 -m venv .venv && source .venv/bin/activate) - Upgrade pip and install packages (
pip install --upgrade pip setuptools wheel) - Install Strands Decider (
pip install strands-decider) - Verify installation (
strands-decider --help) - Install Hugging Face Hub (
pip install huggingface_hub) - List available models (
python -c "from huggingface_hub import list_models; [print(m.id) for m in list_models(search='strands')]") - Start model server (
strands-decider serve StrandsAgents/strands-decider-2B-hobson-v19 --device cpu) - Verify API via browser or curl (
http://127.0.0.1:8000/docsorcurl http://127.0.0.1:8000/openapi.json) - Create Python demo script to send decision requests
证据
AWS introduced Strands Decider 2B, a lightweight decision model designed specifically for routing, classification, scoring, and orchestrating agent workflows.
strands-decider serve StrandsAgents/strands-decider-2B-hobson-v19 --device cpu
Application startup complete. Uvicorn running on http://127.0.0.1:8000
- 记录日期: 2026-10-03T03:40:55.612Z