spb/forge Public MIT
Forge — LLM training from scratch in pure C++20 + Metal on Apple Silicon.
C++ 61.2%
C 23%
Python 7.6%
TeX 7.2%
CMake 1.1%
1// Author: Simon-Pierre Boucher — contact@spboucher.ai2//3// The one and only translation unit that instantiates metal-cpp's4// implementation (ObjC runtime glue). Every other file includes the5// metal-cpp headers without these defines.6#define NS_PRIVATE_IMPLEMENTATION7#define CA_PRIVATE_IMPLEMENTATION8#define MTL_PRIVATE_IMPLEMENTATION9#include <Foundation/Foundation.hpp>10#include <Metal/Metal.hpp>11#include <QuartzCore/QuartzCore.hpp>12