Model on AWS

Deploy Phi-2 on AWS

Microsoft's compact reasoning model. Great for FAQ + support bots. ForgeStack runs microsoft/phi-2 as a private LLM API in your own AWS account: an t3.xlarge node serving it with llama.cpp, a knowledge base in your S3 bucket, and a chat endpoint with citations.

Parameters
2.8B
Context
2K
License
MIT
Speed
Slow
Instance
t3.xlarge
Hardware
CPU
AWS / month
≈ $134
Compute / hour
$0.1664

What you get when you deploy Phi-2

  • Model node: a dedicated t3.xlarge (CPU) in the region you pick, serving phi-2.Q4_K_M.gguf from TheBloke/phi-2-GGUF with llama.cpp.
  • Chat API: POST /api/{projectId}/chat with a scoped x-api-key, returning chat.completion-shaped responses with source citations.
  • Knowledge base (RAG): upload documents or sync GitHub, Confluence and Jira; they are stored and indexed inside your stack.
  • LoRA fine-tuning on your own question/answer pairs, on the same node.
  • Human handoff to Slack, Teams, Zendesk, Freshdesk, Intercom, email or a webhook when the model can’t answer. See chatbot integrations.

How to deploy it

  1. Create a ForgeStack account and pick Phi-2 from the catalog.
  2. Connect AWS with IAM Identity Center or a cross-account role. ForgeStack only gets a short-lived STS session.
  3. Set a system prompt and turn on retrieval.
  4. Review and download the generated CloudFormation template.
  5. Apply it. The stack goes live once the model node passes its health check.

What it costs

About $134 a month in us-east-1 for an always-on node, paid to AWS directly: the t3.xlarge instance, its root volume and one VPC endpoint. ForgeStack itself is free to prototype and adds no markup. Delete the stack and the charges stop.

Other CPU models

See the full catalog.

Deploy it into your own AWS account

Free to prototype. You pay AWS directly, and the CloudFormation template is yours to keep.

We use essential cookies to keep you signed in and to verify new accounts, plus local browser storage for dashboard preferences. We do not use advertising or third-party analytics cookies.

Read the Privacy Policy.