This code demonstrates how to run the mosaicml/mpt-7b-chat model
You can easily deploy the code as web endpoints:
- Create an account on Beam
- Download the CLI and Python-SDK. Instructions here.
- run
beam deploy app.py
from the working directory.
curl -X POST --compressed "https://beam.slai.io/cjm9u" \
-H 'Authorization: Basic [ADD_YOUR_AUTH_TOKEN]' \
-H 'Content-Type: application/json' \
-d '{"query": "What is up?"}'
{"pred":{"output_text":" I'm good and you?"}}