Hacker News new | ask | show | jobs
by rahen 12 hours ago
I've been developing a Clojure-like ML framework with a REPL for over a year. It runs on Metal and CUDA through IREE, as a single static binary with no Python.

A small LLM like NanoGPT looks really neat in Lisp: https://github.com/sheaf-lang/sheaf/blob/main/examples/nanog...

Besides, because Lisp is so orthogonal and concise, LLMs can write Sheaf code from an 8K-token context file embedded in the binary.

Currently porting Gemma and Qwen to it.

https://sheaf-lang.org

1 comments

I love this!

I'd love to now see embedding fixed function blocks within the LLM first-class. Sheaf seems uniquely suitable to this. Embedded a Sheaf engine inside an LLM described in Sheaf...??!!

Thanks! Have a look at CLEVR, it's pretty close to that. The neural network does the perception, and each query assembles a neural pipeline on top of it.

It's a nice small example of Lisp's "code as data" applied to neural networks.

https://github.com/sheaf-lang/sheaf/tree/main/examples/clevr