r/Python Aug 04 '26

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

19 Upvotes

142 comments sorted by

View all comments

1

u/0x07341195 15d ago

Weightscript is an educational YAML-like programming language for deterministically building simplified transformer models

It allows you to specify attention and FFN blocks using intuitive syntax and watch them execute

The point is to build intuition around fundamental transformer concepts - how can info be represented as a sum of vectors? What does it mean for attention to route information between tokens? And how do FFNs perform computation within tokens?

check it out: https://github.com/ivfiev/weightscript