Skip to content

SiddharthaPutti/GPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

please go through the commits for code breakdown.
The code file also contains required comments to understand the effects of optimization.
This repo is inspired by Andrej and Umar's YouTube videos.

The data loader is implimented in C++.

Since we have .npy shard files, we need cnpy module. git clone https://github.com/rogersce/cnpy.git

First run the binding code to integrate c++ code to python by running: This requires pip install pybind11
python binding_setup.py build_ext --inplace this gives you additional .so file in the current dir.

Now you can import the module to python scripts.

If you wanted to run the C++ file individually and look at the output, you are required to point to the cnpy,eigen3 module while executing C++ code.
g++ -I /path/to/eigen3 -I /path/to/cnpy -o DataLoader DataLoader.cpp -lz
./DataLoader

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published