Use FastAPI to quickly host serving of Mistral model on AWS Inferentia2 instance Inf2 🚀
Support Multimodal input type (input_embeds) 🖼️
Follow the instructions in Neuron docs
Pytorch Neuron Setup for basic environment setup.
Go to the virtual env and install the extra packages.
cd app
pip install -r requirements.txt
cd client
python client.py
Test via the input_embeds (common multimodal input, skip embedding layer) version:
cd client
python embeds_client.py
You could build container image using the Dockerfile, or using the pre-build image: