1 versions
An open-source Mixture-of-Experts code language model that achieves performance comparable to GPT4-Turbo in code-specific tasks.
Install our magic
package manager:
curl -ssL https://magic.modular.com/ | bash
Then run the source
command that's printed in your terminal.
Install Max Pipelines in order to run this model.
magic global install max-pipelines
Start a local endpoint for deepseek-coder-v2/16b:
max-serve serve --huggingface-repo-id deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct
The endpoint is ready when you see the URI printed in your terminal:
Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
Now open another terminal to send a request using curl
:
curl -N http://0.0.0.0:8000/v1/chat/completions -H "Content-Type: application/json" -d '{
"model": "deepseek-coder-v2/16b",
"stream": true,
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the World Series in 2020?"}
]
}' | grep -o '"content":"[^"]*"' | sed 's/"content":"//g' | sed 's/"//g' | tr -d '
' | sed 's/\n/
/g'
š Hooray! Youāre running Generative AI. Our goal is to make this as easy as possible.
DeepSeek-Coder-V2 is an open-source Mixture-of-Experts (MoE) language model designed for code-related tasks, achieving performance comparable to GPT4-Turbo. It is further pre-trained from its base version, DeepSeek-Coder-V2-Base, using a massive dataset consisting of 6 trillion tokens. These tokens are sourced from a diverse and high-quality corpus, enabling the model to excel in coding tasks while maintaining precision and efficiency.
DeepSeek-Coder-V2 incorporates advanced techniques, leveraging its MoE architecture to optimize computational efficiency and scalability. This architecture facilitates the model's ability to handle complex problem-solving scenarios in programming, making it suitable for developers and researchers seeking robust AI-driven code generation and analysis tools.
For additional details, visit the modelās Hugging Face page.
DETAILS
MODULAR GITHUB
ModularCREATED BY
deepseek-ai
MODEL
deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct
TAGS
@ Copyright - Modular Inc - 2024