Ji

Jixp, a Lisp DSL for describing Jax neural nets

Hacker News

Jixp, a Lisp DSL for describing Jax neural nets

This is a side project I've been working on while learning Jax. I noticed that a bunch of the neural net math looked like it would work well in a lisp syntax because most of the data flows through layers in a "functional" manner. Data is threaded through one layer at a time, each layer composing with the previous layer. Jixp is designed as a learning tool for myself while learning Jax to toy around with different shapes/styles of models. I used this to train a 4m parameter model on my Obsidian vault to see if I could use it for recall which partially worked. ```lisp (let-dim (d 256) (heads 8) (define transformer-block (chain (residual (layernorm d) (attention d heads #:causal)) (residual (layernorm d) (mlp d [4d] d #:bias)))) ``` The Jixp compiler reads the (racket style) DSL and outputs python which is then consumed via your normal python training stack. The advantage here is you get a pretty simple interface to describe your model and the implementation details are largely hidden in the generated python. I definitely do not recommend using this for anything besides learning. One day I can see models being specified in terms of a DSL like this which would allow different implementations of inference/training to load the same model. You could write one model definition, then vLLM, PyTorch, and your custom inference stack could all use the same definition. Sort of like a `.safetensor` file for the model.

Share card

Actual performance

6points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: model, models, using · Missing: mac, agents, macos
84%84% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
75%75% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
58%58% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRFits verified-revenue profile · Strong signals: para · Missing: mobile apps, ios, personal
55%55% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: interface · Missing: plus, platform, intuitive
46%46% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: training · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Ne
Neural ALU Implemented in X86 Assembly75%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Neural ALU Implemented in X86 Assembly

Hacker News1
Ne
Neural-hash-collider – Find target hash collisions for NeuralHash53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Neural-hash-collider – Find target hash collisions for NeuralHash

Hacker News623
Ne
Neural Particle Automata59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Neural Particle Automata

Hacker News88
Fa
Fast Newton's Method for Neural Nets, with Finite Difference43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Fast Newton's Method for Neural Nets, with Finite Difference

Hacker News3
Me
Mertonon – Neural Organizational Management44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mertonon – Neural Organizational Management

Hacker News2
Neural Hive
Neural Hive40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Neural Hive — Building the Internet of AI

Indie Hackerscommitment-full-time
ne
netttt: evolving neural nets to play tic tac toe47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

netttt: evolving neural nets to play tic tac toe

Hacker News1
Me
Mertonon, Neural organizational management (Neural economic planning)45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mertonon, Neural organizational management (Neural economic planning)

Hacker News2
Ne
Neural network that impersonates writers71%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Neural network that impersonates writers

Hacker News48
Mo
Morphing Somatic Quasicrystal Neural Network54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Morphing Somatic Quasicrystal Neural Network

Hacker News3