1 versions
Zephyr is a series of fine-tuned versions of the Mistral and Mixtral models that are trained to act as helpful assistants.
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 zephyr/7b:
max-serve serve --huggingface-repo-id HuggingFaceH4/zephyr-7b-beta
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": "zephyr/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.
Zephyr is a series of language models designed as helpful AI assistants. The latest model, Zephyr 141B-A35B, is a fine-tuned version of Mixtral 8x22b.
zephyr-141b
: A Mixture of Experts (MoE) model with a total of 141 billion parameters and 35 billion active parameters.zephyr-7b
: The original Zephyr model.DETAILS
MAX Models are extremely optimized inference pipelines to run SOTA performance for that model on both CPU and GPU. For many of these models, they are the fastest version of this model in the world.
Browse 18+ MAX Models
MODULAR GITHUB
ModularCREATED BY
HuggingFaceH4
MODEL
HuggingFaceH4/zephyr-7b-beta
TAGS
@ Copyright - Modular Inc - 2024