Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.23 KB

File metadata and controls

45 lines (38 loc) · 1.23 KB

penr-oz-gpt-example

Implementation of an example GPT for understanding how next character is generated by a Transformer

Quickstart Guide

  1. Clone the Repository:

    git clone https://github.com/derinworks/penr-oz-gpt-example.git
    cd penr-oz-gpt-example
  2. Create and Activate a Virtual Environment:

    • Create:
      python -m venv venv
    • Activate:
      • On Unix or macOS:
        source venv/bin/activate
      • On Windows:
        venv\Scripts\activate
  3. Install Dependencies:

    pip install -r requirements.txt
  4. Neural Network Service:

    • Follow instructions on Quick Start Guide
    • Deployed remotely then use a .env file as such to configure url:
    PREDICTION_SERVER_URL=http://???:8000
  5. Run:

    python main.py