Skip to content

Tutorial for running a ChatGPT like AI on the privacy of your computer.

Notifications You must be signed in to change notification settings

compadrejunior/alpaca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Stanford Alpaca AI on your machine

Overview

Stanford Alpaca is an open-source language model developed by computer scientists at Stanford University (1). It is a seven-billion parameter variant of Meta's LLaMA model (2), which has been fine-tuned using supervised learning on 52,000 instruction-following demonstrations (3). Alpaca is designed to be able to respond to instructions like ChatGPT (4), and it has been demonstrated to perform similarly to the ChatGPT model on many tasks but at a lower cost. The goal of the Alpaca project is to build and share an instruction-following language model with the research community, which can serve as a platform for further research and development.

System Requirements

Option 1: Local installation and sage

The following steps will help you run Standford Alpaca AI model using Dalai tools (6). If you rather see video instructions check this link LLaMA & Alpaca: “ChatGPT” On Your Local Computer 🤯 | Tutorial

  1. Download and install system requirements.

    Note: When installing Visual Studio don't forget to mark this options Visual Studio Components

  2. Install Dalai and models.

    npx dalai alpaca install 7B
  3. Start Dalai server

    npx serve
  4. Open Dalai on your brower: http://localhost:3000

  5. Select the type of chat prompt and start using Dalai.

    Dalai Browser

  6. For example: select chatbot template and type any question then click Go for Dalai to answer.

    Dalai Answer

Option 2: Using Docker

  1. Build container docker compose.

    docker compose build
  2. Install Models.

    docker compose run dalai npx dalai alpaca install 7B # or a different model
  3. Run the server.

    docker compose up -d

References

  1. Stanford takes costly, risky Alpaca AI model offline • The Register
  2. Stanford's Alpaca shows that OpenAI may have a problem (the-decoder.com)
  3. Stanford CRFM
  4. Train and run Stanford Alpaca on your own machine - Replicate – Replicate
  5. tatsu-lab/stanford_alpaca: Code and documentation to train Stanford's Alpaca models, and generate the data. (github.com)
  6. cocktailpeanut/dalai: The simplest way to run LLaMA on your local machine (github.com)

About

Tutorial for running a ChatGPT like AI on the privacy of your computer.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published