Skip to main content
Code generation example with DeepSeek-Coder. Run vLLM model: vllm serve deepseek-ai/deepseek-coder-6.7b-instruct —dtype float32 —tool-call-parser pythonic
code_generation.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Run the example

Save the code above as code_generation.py, then run:
Full source: cookbook/90_models/vllm/code_generation.py