1 versions
CodeQwen1.5 is a large language model pretrained on a large amount of code data.
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 codeqwen/7b:
max-serve serve --huggingface-repo-id Qwen/CodeQwen1.5-7B-Chat
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": "codeqwen/7b",
"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.
CodeQwen1.5 builds upon Qwen1.5 and is designed as a robust AI model specializing in code-related tasks. Trained on an extensive dataset comprising 3 trillion tokens of code, it exhibits exceptional coding capabilities, making it a competitive choice across a range of benchmarks.
DETAILS
MODULAR GITHUB
ModularCREATED BY
Qwen
MODEL
Qwen/CodeQwen1.5-7B-Chat
TAGS
@ Copyright - Modular Inc - 2024