This directory includes scripts used to run simple BERT inference via the MAX Engine Mojo API to predict the masked words in a sentence.
If you have magic
, you can run the
following command:
magic run bash run.sh
Create a Conda environment, activate that environment, and install the requirements:
# Create a Conda environment if you don't have one
conda create -n max-repo
# Update the environment with the environment.yml file
conda env update -n max-repo -f environment.yml --prune
# Run the example
conda run -n max-repo --live-stream bash run.sh