DwaraknathT / optimus

ML from scratch in python and CUDA for educational purposes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimus

ML from scratch in python and CUDA for educational purposes.

Setup Dev Env

We use docker to setup and use dev environment. Please make sure you have docker CLI, engine and compose installed. You can refer this link to install everything you need.

Build optimus dev image using

docker compose build

Then start the docker container in interactive mode with bash

docker compose run optimus bash

Building Optimus

Once you start the docker container, you will be put in /workspace/host/optimus by default. Do the following to genrate the make files.

mkdir build && cd build 
cmake ..

Now build Optimus with

make all

Running Tests

Run any python unit test individually, for example to test the matmul op

python3 /workspace/host/optimus/tests/ops/test_matmul.py

About

ML from scratch in python and CUDA for educational purposes.

License:MIT License


Languages

Language:Cuda 47.3%Language:C++ 28.9%Language:CMake 15.2%Language:Dockerfile 4.7%Language:Python 4.0%