builds

things i've built

aboutbuildswritings

featured

01

Aquiles-Image: Self-Hosted Inference Server for Image and Video Models

OpenAI-compatible API server to run image and video diffusion models on your own infrastructure

Aquiles-Image is a production-ready inference server that lets you run state-of-the-art image and video generation models on your own hardware. It is OpenAI-compatible by design, so the official OpenAI client works with zero code changes and teams can move from external APIs to self-hosted in minutes. The server groups incoming requests by shared parameters into intelligent batches, and supports distributed multi-GPU inference with dynamic load balancing for image models. It ships with more than 30 optimized models, including FLUX, Stable Diffusion 3.5, Qwen-Image and GLM-Image for images, and Wan2.x, HunyuanVideo, LTX and MiniMax for video, plus Turbo variants that reduce generation to 4 steps. Any Diffusers-compatible model can also be served through AutoPipeline. Beyond inference, it covers what a real deployment needs: LoRA loading from a JSON config, quantized GGUF models through a curated registry, concurrency control with 429 and 503 responses, API key protection, a login-protected playground, health, stats and config endpoints, and a built-in benchmarking tool that reports throughput and p50, p95 and p99 latency under configurable load profiles. It is published on PyPI, with prebuilt Docker images for image and video workloads and a documentation site.

python · fastapi · pytorch · diffusers · docker · cuda · diffusion models · inference · openai api · open source

source ↗
Aquiles-Image: Self-Hosted Inference Server for Image and Video Models

more projects

02

TinyQwen: Training an LLM from Scratch, End to End

Educational pre-training and post-training pipeline for a small language model built on the Qwen3.5 hybrid architecture

TinyQwen: Training an LLM from Scratch, End to End
+ details- close

TinyQwen is a hands-on project that implements the complete pipeline for creating a small language model from scratch, from data collection to supervised fine-tuning. It is built on the Qwen3.5 hybrid architecture, which combines full-attention and linear-attention layers through Gated DeltaNet, with about 0.8B parameters, 24 layers and a 2048 token context. The pipeline covers every stage: tokenizing and packing a bilingual English and Spanish corpus of about 15B tokens into fixed-length blocks, benchmarking H200 and B200 GPUs to find the best tokens-per-dollar setup, pre-training with DDP, gradient checkpointing, a cosine learning rate schedule with warmup, periodic evaluation and WandB logging, and post-training with LoRA on an instruction dataset. The project is also an honest cost study. Pre-training ran for about 2 hours on a single H200 for roughly 9.62 dollars, and the SFT run took about 27 minutes on an H100 for roughly 1.82 dollars. Because of the budget only a small fraction of one epoch was processed, and the limitations of that decision are documented in the repository and in an accompanying blog post.

python · pytorch · transformers · lora · sft · qwen3.5 · llm pre-training · modal · wandb

source ↗
03

TinyCloud: A Mini-Cloud for Deploying Your Projects

Self-hostable platform for users, projects, role-based access and host monitoring, built with Go and Next.js

TinyCloud: A Mini-Cloud for Deploying Your Projects
+ details- close

TinyCloud is a small self-hostable web app built around users, projects, project membership and host stats. The backend is a Go API using net/http and pgxpool on top of Postgres with embedded SQL migrations, and the frontend is a Next.js app with the App Router and Tailwind. It handles the details that usually get skipped. The first administrator is created from a web setup flow protected by a Postgres advisory lock, so concurrent requests can never create two admins. Registration is disabled and accounts are managed by admins. Access is controlled by two independent role systems, a global role (admin or user) and a project role (owner or member), and non-members receive a 404 so the existence of a project is never leaked. Emails are hidden from search and member lists, passwords are hashed with bcrypt, and sessions use JWT. Admins also get host stats for CPU, RAM, disk and uptime, sampled every 60 seconds and kept for 90 days, read directly from the host filesystem so the API needs no Docker socket access. The project includes a Makefile workflow, backend tests, a full Docker Compose stack for end-to-end validation, and the frontend can be deployed on Vercel through a server-side API proxy.

go · postgresql · next.js · tailwind-css · docker · jwt · rest api · self-hosted

source ↗
04

LLaDA-from-scratch: Diffusion Language Model Implementation

Building LLaDA, a diffusion-based language model that learns text distribution through progressive masking and reconstruction

LLaDA-from-scratch: Diffusion Language Model Implementation
+ details- close

LLaDA-from-scratch is a research implementation of LLaDA (Large Language Diffusion Architecture), a novel diffusion model for natural language processing. Unlike traditional autoregressive models, LLaDA learns to model text distribution through a process of progressive data masking and inverse reconstruction. This project implements the complete training pipeline from scratch, including data preparation with tokenization and noisy masking, a custom training loop with gradient checkpointing and mixed precision (fp16/bfloat16), and full compatibility with HuggingFace Transformers for inference and deployment. The implementation trains on the FineWeb dataset (10BT subset), processing approximately 2.5 million chunks of up to 4,096 tokens across 252 sharded files totaling ~166GB. Training runs on A100 GPUs with advanced optimization techniques including streaming datasets, activation checkpointing, and efficient memory management. Key achievements include a working 310M parameter model trained for validation, complete HuggingFace integration with easy model uploading, and comprehensive training logs showing convergence from 43,529 to 27,371 loss over 5,000 steps. The project demonstrates deep understanding of modern language model architectures and advanced training techniques.

python · pytorch · huggingface · diffusion models · nlp · deep learning · a100 · research

source ↗