Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

plugyawn/tinything

Repository files navigation

tinythings: tiny implementations in tinygrad

Currently a small(er) nanoGPT, written in tinygrad, from scratch. Tinygrad allows acceleration on virtually any backend: probably the simplest way to write accelerated training on modern Macs.

  • CausalAttention with RoPE [layers/attention.py]
  • Basic FFNs [layers/feedforward.py]
  • SwiGLU FFNs [layers/feedforward.py]
  • Mixture of Experts [layers/moe.py]
  • SGD [optimizers/sgd.py]
  • Adam [optimizers/sgd.py]
  • Muon [optimizers/muon.py]
  • LayerNorm [utils/transformer_methods.py]
  • Cross Entropy [utils/loss_functions.py]
  • Naive character-level tokenization [utils/dataloader.py]
  • Byte-pair encoding [utils/dataloader.py]
  • Diffusion text modelling

About

As barebones as you can get the GPT, now accelerated on Macs thanks to tinygrad.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /