Skip to content

jasperan/oci-gpt4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oci-gpt4

Learn to use a GPT4 model on OCI

Create compute instance

First, we will need a compute instance (with an OCI Marketplace image). This image will make our lives better when using generative deco Refer to this documentation for detailed instructions on how to create an OCI Compute Instance.

Install dependencies

To install

conda create -n "gen_ai" python=3.10
conda activate -n "gen_ai"
pip install nomic
pip install pygpt4all

Available GPT4ALl models for download

Choose your preferred model and wget / curl it in the next section:

Using pygpt4all

Using pygpt4all is a bit more advanced because it requires you to manually download whichever model checkpoint you want to use, but still achievable.

For more information on how to download or get these .bin files, refer to the full lab guide for specific instructions for pygpt4all.

Run:

curl -O  https://gpt4all.io/models/ggml-gpt4all-l13b-snoozy.bin

Download this repository

Once we have the repo in the local machine, we'll be able to access the examples folder with some Python scripts for you.

git clone https://github.com/jasperan/oci-gpt4

Using nomic-ai

You can also run GPTs with the nomic library (easier). Refer to the full lab guide for specific instructions for nomic.

About

Use a GPT4 model on OCI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published