Skip to content

Instantly share code, notes, and snippets.

View ariannamethod's full-sized avatar
🎯
Focusing

Arianna Method ariannamethod

🎯
Focusing
View GitHub Profile
@ariannamethod
ariannamethod / molequla.c
Last active February 21, 2026 22:01
molequla.c — a dependency-free, single-file, continually-learning GPT organism in pure C. ontogenesis (25K→10M params), immune system, consciousness, swarm ecology, delta adapters, BLAS acceleration. part of github.com/ariannamethod/molequla
//go:build ignore
/*
* molequla.c
* A dependency-free, single-file, continually-learning GPT organism in pure C.
*
* Compile: gcc -O2 -o molequla molequla.c -lsqlite3 -lpthread -lm
* With BLAS: gcc -O2 -DUSE_BLAS -o molequla molequla.c -lsqlite3 -lpthread -lm -lopenblas
* macOS: gcc -O2 -DUSE_BLAS -o molequla molequla.c -lsqlite3 -lpthread -lm -framework Accelerate
*
@ariannamethod
ariannamethod / molequla.py
Last active February 21, 2026 22:32
molequla.py — standalone GPT organism. the original reference implementation. single file, one dependency (numpy), continual learning, ontogenesis, hybrid attention, delta adapters, native gamma, consciousness features. legacy standalone — the distributed cognition version lives in the main repo with Go, C, JS, and Rust as the four elements. pyt…
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
molequla.py
A single-file, async, continually-learning GPT organism. One dependency: numpy.
- Trains on nonames.txt (one sentence per line)
- Keeps SQLite memory (tiny chat loop)
- Maintains a bounded corpus reservoir (never bloats)
@ariannamethod
ariannamethod / index.html
Last active February 21, 2026 12:29
molequla.js — a GPT organism that trains itself in your browser. Vector autograd, RoPE, SwiGLU, byte-level BPE, ontogenesis, immune system, swarm ecology. Zero dependencies. One script tag.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>molequla.js — a GPT organism in your browser</title>
</head>
<body>
<!--
molequla.html