Giter VIP home page Giter VIP logo

harry-gpt's Introduction

HarryGPT: Custom trained LLM models

This repo features scripts for training small LLM models in training/ and a flask-based webserver for interacting with these models in server/.

For running the code in this repo, a python environment with pytorch is required.

  1. Create a venv (e.g. in vscode: 'Python: Select Interpreter')
  2. Install pytorch
  • cuda: pip install numpy torch --index-url https://download.pytorch.org/whl/cu121
  • cpu: pip install numpy torch --index-url https://download.pytorch.org/whl/cpu
  1. Install training dependencies: pip install matplotlib optuna
  2. Install server dependencies: pip install flask

src: https://pytorch.org/get-started/locally

Now, run any training script from within training/. Results will be stored in training/results.

Run the server from within server/ with python server.py and visit http://localhost:5000 to iteract with it. The server will provide models from the server/models folder, so make sure to copy models from training/results that you want to keep.

The server can also be run as a Docker container. For this, run:

  1. sudo docker build -t harry-gpt .
  2. sudo docker run -p 8080:5000 harry-gpt

or integrate this project in a docker-compose file.

harry-gpt's People

Contributors

programmierpatrick avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.