Skip to main content

Preliminaries

In this tutorial, you will learn how to deploy llama2 on Oyster using the ollama framework and interact with it in a verifiable manner. This includes how to

  • build an enclave image with ollama configured for llama2
  • deploy the enclave image on Oyster
  • interact with the enclave in a verifiable manner
    • from an off-chain program
    • from a smart contract

This tutorial assumes Ubuntu 20.04+. If you have an older Ubuntu or a different distro, commands might need modification before use.

Install Docker

The tutorial uses Docker to build the enclave image. If not installed already, you can install it by running

sudo apt install docker.io

Install metamask wallet

This tutorial uses Metamask to make transactions on the blockchain. If not installed, you can install it using the Extension/Add-On store for your browser.