Open-source AI coding model

Self-hosted DeepSeek-Coder-33B on AWS

Run DeepSeek-Coder-33B Instruct, a code model trained on 2 trillion tokens, behind an OpenAI-compatible API in your own AWS account. Keep your source code off third-party AI services.

  • 33B parameters
  • 16K context window
  • OpenAI-compatible API
DeepSeek Coder deployed on AWS by Meetrix

What is DeepSeek Coder?

DeepSeek Coder is a series of code language models trained from scratch on 2 trillion tokens, 87% code and 13% natural language in English and Chinese, across 80 programming languages. The 33B Instruct model is fine-tuned on 2 billion instruction tokens.

What's in the Meetrix DeepSeek Coder AMI

The AMI ships DeepSeek-Coder-33B Instruct and an OpenAI-compatible API server on Ubuntu 22.04.

How to set up a self-hosted DeepSeek Coder API

  1. Check your quota

    Make sure your account has vCPU quota for g5g instances in your region.

  2. Launch the stack

    Subscribe on AWS Marketplace and launch the CloudFormation stack with your domain and admin email.

  3. Point your domain at it

    After 5-10 minutes, create a DNS record with the PublicIp from the stack outputs.

  4. Call the API

    Open /docs on your server, then use the completions endpoint from your tools.

Deploy on AWS

DeepSeek Coder API endpoints

EndpointPurpose
/v1/completionsCode completions from a prompt
/v1/embeddingsEmbeddings for input text
/v1/modelsList available models
/v1/chat/completionsAvailable, but avoid: the model is not optimised for chat

Use /v1/completions for coding work. Read the DeepSeek Coder developer guide →

Video: deploy DeepSeek Coder on AWS

DeepSeek Coder FAQ

What is DeepSeek Coder?

A series of code language models trained on 87% code and 13% natural language, from 1.3B to 33B parameters. This AMI runs the 33B Instruct model.

Does it support chat completions?

The model is not optimised for chat, so avoid /v1/chat/completions and use /v1/completions and /v1/embeddings instead.

Which instance should I use?

The AWS listing recommends g5g.16xlarge or g5g.metal.

How long is the context window?

16,000 tokens, which allows project-level completion and infilling.

How do I test the API?

Open /docs on your server, or use the Node.js test script from the developer guide.

What if SSL does not set up automatically?

SSH in and run sudo /root/certificate_generate_standalone.sh with your admin email.

How do I upgrade?

Back up your server data, remove the old stack and launch the new version from AWS Marketplace.

DeepSeek guides and articles

Need a hand with DeepSeek Coder?

We build and run self-hosted AI infrastructure every day, from coding assistants to GPU sizing. Tell us what you need.

Contact us