Lawrence Qi
I train machine-learning models and run the machines they live on.
I've just finished my Computer Science degree at Monash University. In November I'm moving to Singapore to start an AI/ML internship at NetGain, working on small language models that run locally.
Live, on English Wikipedia
Which edits will be reverted?
About one edit a second lands on English Wikipedia, and one in twenty gets undone within two days. This reads them as they happen and scores each with a model I trained on 1.4 million edits, then shrank to 11 MB so it runs here, on your device.
- Flagged edits
- 75% were reverted
- Time per edit
- 21 ms in a browser
- Model size
- 11 MB BERT-mini, 8-bit
Not started
No edits yet
Press Start to connect. Your browser downloads the 11 MB model once, then real edits from the last minute appear here with their scores.
Digest
A summary appears once a few edits have been scored.
Everything here runs in your browser. It reads Wikimedia’s public stream of changes (about 50 to 60 KB a second), scores up to three random English Wikipedia article edits every 20 seconds, and pauses after 15 minutes or whenever this tab is in the background. The score is the model’s estimate that someone else reverts the edit within 48 hours. Editors aren’t named, and a flag means an edit looks likely to be reverted, not that anyone did something wrong. Nothing is stored.
Now
Done with Monash and packing for Singapore. More on the Now page. Updated .
Before I go3 of 5 done
- Finish classes at Monash (done)
- Sit my final exams (done)
- Graduate from Monash (done)
- Fly to Singapore
- Start the AI/ML internship at NetGain
Projects
Newest first. Open one to see more; several have something you can play with.
-
Wikipedia live edits Flags live Wikipedia edits that are likely to be reverted, with a small model that runs in your browser.
A small model that reads English Wikipedia edits as they happen and flags the ones likely to be reverted. It's distilled from a much larger model and runs in your browser, so the live feed is scored on your own device.
It's running at the top of this page.
- Collected 1.4 million English Wikipedia article edits over 12 days on my homelab, each labelled 48 hours later with whether someone else reverted it.
- Fine-tuned DeBERTa-v3-base as a teacher. It reached PR-AUC 0.59 on three held-out days, against 0.50 for the best gradient-boosted tree and 0.44 for Wikimedia's recommended revert-risk setup.
- Distilled it into BERT-mini (11 MB at 8-bit). With its input cut to 128 tokens it reaches 0.55 and scores a typical edit in 21 ms in a browser.
- Ported the whole input pipeline to JavaScript and checked it against the Python version, so the browser builds the same text the model was trained on.
Made with Python, PyTorch, Hugging Face Transformers, DeBERTa-v3, BERT-mini, LightGBM, ONNX Runtime Web, SQLite and Proxmox.
-
This website No framework, a live model running in your browser, a command palette and a blog I write in a web editor.
The site you're on. No framework: a small Node build script, a live Wikipedia demo that runs a model in your browser, a store where a cart plans routes with A*, a command palette, and a blog I write in a web editor.
- Wrote the whole build as one Node script with no dependencies to install. It turns Markdown and YAML into every page, the RSS feed, the sitemap and the search index.
- Set up Pages CMS so posts, projects and profile details can be edited in a browser, with each save becoming a commit that rebuilds the site.
- Built live games and music without a server, using Last.fm from the browser and a scheduled GitHub Action for Steam.
- Runs an 11 MB machine-learning model on the homepage, in the visitor's browser.
Made with HTML, CSS, JavaScript, Node.js, GitHub Actions, GitHub Pages, Pages CMS and ONNX Runtime Web.
-
Smash Theater A searchable archive of more than 41,000 Super Smash Bros. Ultimate tournament VODs from nine YouTube channels.
Daily GitHub Actions scrape new uploads, parse players and characters from the titles, and fill in scores from start.gg.
- Scraped nine tournament channels in the US and Japan into one archive of 41,397 sets and 57,398 games, covering 13,000 player tags from 2018 to now.
- Wrote a title parser for English and Japanese VOD titles that finds players, characters (with their nicknames), rounds, events and game modes, and skips anything that isn't Ultimate.
- Matched VODs to their sets on start.gg to fill in scores and stages, with a resumable backfill that runs on GitHub Actions every four hours.
- Let visitors suggest VODs through a GitHub issue form that only reaches the archive once I approve it with a label.
Made with React, TypeScript, Vite, YouTube Data API, start.gg API, GitHub Actions and Vercel.
-
MEGA stream overlays Twelve OBS overlay scenes and a scoreboard app for MEGA's fighting-game weeklies, built on GORTS so the next production manager can run a stream without touching code.
- Built twelve 1920×1080 overlay scenes, from gameplay nametags to a top 8 graphic, that all redraw live from one scoreboard app.
- Added Event and Layout tabs to the scoreboard, with presets, so a weekly's game, colours, casters, text and positions change without opening any HTML.
- Wrote a handover guide covering every scene, every field and how to run a night from start to finish.
Made with HTML, CSS, JavaScript, Go, Tcl/Tk, OBS and start.gg API.
-
Discord personality clone A chatbot that talks like me, fine-tuned with QLoRA on an open-weight model using my own Discord data export.
It runs entirely on my hardware, with no hosted AI APIs.
- Wrote a parser for Discord's official data export that handles the current JSON format, older CSV exports and zipped or unzipped packages, and filters out messages with nothing to learn from.
- Built two ways of turning one-sided message history into chat training data, since the export only contains my side of every conversation.
- Fine-tuned Qwen2.5-1.5B-Instruct with 4-bit QLoRA and LoRA rank 16, small enough to train on an 8 GB GPU.
- Served it as a terminal chat and a Discord bot with slash commands, per-user sessions that expire, and an allow-list of who can use it.
Made with Python, PyTorch, Hugging Face Transformers, PEFT, QLoRA, bitsandbytes, TRL and discord.py.
-
Valorant live win probability A real-time model that estimates who wins the current round of a professional Valorant match.
Valorant has no public game-state feed, so the pipeline reads the state straight off the broadcast.
Attack 63%37% Defence
What's moving the number (log-odds, positive favours attack)
Try a situation
This in-browser version uses a small logistic model with hand-set weights so it can run instantly. The real project reads these features off VCT broadcast footage and learns the weights with gradient-boosted trees.
- Samples VCT broadcast footage, reads the scores, timer, spike and player panels from the HUD, and splits matches into rounds automatically.
- Builds features for economy, player advantage, ultimate availability, map state and spike status.
- Trains gradient-boosted trees on professional matches, targeting 75%+ accuracy.
- Serves predictions from a Docker container through REST endpoints behind Nginx.
Made with Python, OpenCV, EasyOCR, yt-dlp, LightGBM, XGBoost, River, scikit-learn, Docker, Nginx and PostgreSQL.
-
AI email assistant A Chrome extension that helps people with busy inboxes triage, read and reply faster, without ever sending anything they haven't approved.
From Lab Operations
Your building access card expires this Friday
Hi Lawrence, our records show your access card for the engineering building expires on Friday. To keep access, please renew it at the service desk before then, bringing your student ID…
- PriorityNeeds action this week
- SummaryAccess card expires Friday. Renew at the service desk with your student ID.
- Draft reply
This reply was written by AI. Send it as it is?
A mock of the approval step, so nothing here is actually sent. The real extension does the classifying, summarising and drafting with an LLM.
- Built an LLM pipeline for classification, priority detection, thread summaries and reply drafts.
- Designed a human-in-the-loop approval step so AI-written replies can't go out without confirmation.
- Interviewed people at large organisations and turned their feedback into requirements.
- Tested the classifier on 240 labelled emails (85% accuracy, macro F1 0.84) and ran a 27-person survey on the outputs.
Made with Chrome Extension API, JavaScript, Node.js, Python, OpenAI API, Whisper and SQLite.
-
Homelab and Kubernetes cluster The machines behind most of my side projects: a multi-node Kubernetes cluster on Proxmox that hosts apps, media, game servers and machine-learning workloads.
- Internet
- Cloudflare DNS and HTTPS
- Nginx reverse proxy
-
Kubernetes cluster
- Jellyfin
- Databases
- Game servers
- ML workloads
- Local LLM chatbot
- My own apps
Proxmox VMs spread across several machines
- Multi-terabyte storage
Large-file transfer speed, before and after I tracked down the bottleneck - Combined compute across several machines into one cluster for containerised workloads.
- Runs Jellyfin, databases, reverse proxies and my own apps, with selected services exposed through Nginx, Cloudflare DNS and HTTPS.
- Fixed storage and networking issues that took large-file transfers from about 10 MB/s to 70 MB/s.
- Ran the 12-day Wikipedia edit collector that the live edits model was trained on, in its own container with automatic restarts.
Made with Proxmox, Kubernetes, Docker, Linux, LXC, systemd, Nginx and Cloudflare.
-
Autonomous shopping cart A self-driving shopping cart prototype built in 48 hours, with navigation, voice interaction and RFID item scanning.
The store on this project's page runs the same planner, cut down to fit in a browser: a hundred layouts, a shopper who gets in the way, and a switch between A*, Dijkstra and greedy search.
- Wrote the A* pathfinding that modelled the store layout and found the shortest route between items.
- Added real-time obstacle avoidance based on the Dynamic Window Approach and Velocity Obstacles, so the cart reroutes around people.
- Integrated motors, sensors and the Arduino with the rest of the team's software into a working prototype.
- Rebuilt the planner for the browser later, as the store on this page, with a hundred layouts and a switch between A*, Dijkstra and greedy search.
Made with C++, Arduino, RFID and JavaScript.
About
I like problems where a model has to make a call in real time from messy inputs: predicting who wins a Valorant round from a broadcast feed, or steering a shopping cart around people at a hackathon. I also like owning the whole stack, which is why I run a multi-machine homelab with a Kubernetes cluster, my media server, databases and a chatbot fine-tuned on my own messages.
Away from the keyboard I tutor primary and middle-school students, and I built the stream overlays for MEGA's fighting-game weeklies. I speak English, Mandarin, Cantonese and French.
Tap a skill to see where I've used it.
- Machine learning
- , , , NumPy, Pandas, , , , R, , , , ,
Python, in 4 places
- Wikipedia live editsPorted the whole input pipeline to JavaScript and checked it against the Python version, so the browser builds the same text the model was trained on.
- Discord personality cloneA chatbot that talks like me, fine-tuned with QLoRA on an open-weight model using my own Discord data export.
- Valorant live win probabilityA real-time model that estimates who wins the current round of a professional Valorant match.
- AI email assistantA Chrome extension that helps people with busy inboxes triage, read and reply faster, without ever sending anything they haven't approved.
PyTorch, in 2 places
- Wikipedia live editsEach int8 model ranks exactly as well as its PyTorch original, and the browser s scores match Python s to within 0.04 on the logit scale.
- Discord personality cloneA chatbot that talks like me, fine-tuned with QLoRA on an open-weight model using my own Discord data export.
Hugging Face Transformers, in 2 places
- Wikipedia live editsFlags live Wikipedia edits that are likely to be reverted, with a small model that runs in your browser.
- Discord personality cloneA chatbot that talks like me, fine-tuned with QLoRA on an open-weight model using my own Discord data export.
scikit-learn, in one place
- Valorant live win probabilityA real-time model that estimates who wins the current round of a professional Valorant match.
XGBoost, in one place
- Valorant live win probabilityA real-time model that estimates who wins the current round of a professional Valorant match.
LightGBM, in 2 places
- Wikipedia live editsGradient-boosted trees (LightGBM) on the metadata, then on the metadata plus cheap statistics of the diff text: characters added and removed, capitals, links, references, templates, URLs, repeated characters and…
- Valorant live win probabilityThe models # Offline: LightGBM.
LoRA and QLoRA fine-tuning, in 2 places
- Discord personality cloneFine-tuned Qwen2.5-1.5B-Instruct with 4-bit QLoRA and LoRA rank 16, small enough to train on an 8 GB GPU.
- AI/ML Intern, NetGainTesting fine-tuning, LoRA, quantisation, distillation and fallback to larger models for uncertain cases.
Knowledge distillation, in 2 places
- Wikipedia live editsDistilled it into BERT-mini (11 MB at 8-bit).
- AI/ML Intern, NetGainTesting fine-tuning, LoRA, quantisation, distillation and fallback to larger models for uncertain cases.
Quantisation, in 3 places
- Wikipedia live editsDistilled it into BERT-mini (11 MB at 8-bit).
- Discord personality cloneQLoRA gets around that in two ways at once: The base model is loaded in 4-bit (NF4 with double quantisation, computing in bfloat16).
- AI/ML Intern, NetGainTesting fine-tuning, LoRA, quantisation, distillation and fallback to larger models for uncertain cases.
Model evaluation and calibration, in 2 places
- Wikipedia live editsIt reached PR-AUC 0.59 on three held-out days, against 0.50 for the best gradient-boosted tree and 0.44 for Wikimedia's recommended revert-risk setup.
- Valorant live win probabilityA calibrated probability for every snapshot, served from a Docker container through REST endpoints behind Nginx.
ONNX and ONNX Runtime Web, in 2 places
- Wikipedia live editsIt's stored as 8-bit integers and runs with ONNX Runtime Web on WebAssembly, reading the first 128 tokens of each edit.
- This websitePress Start and your browser downloads an 11 MB model and ONNX Runtime Web, reads Wikimedia s public stream of edits, and scores a few every 20 seconds on your device.
- Data
- , ,
Data collection and labelling, in 2 places
- Wikipedia live editsCollected 1.4 million English Wikipedia article edits over 12 days on my homelab, each labelled 48 hours later with whether someone else reverted it.
- AI email assistantTested the classifier on 240 labelled emails (85% accuracy, macro F1 0.84) and ran a 27-person survey on the outputs.
Streaming data, in one place
- Wikipedia live editsYour browser reads Wikimedia's public EventStreams feed, which carries every change to every Wikimedia wiki.
Parquet, in one place
- Valorant live win probabilityDuring each active round the pipeline saves a snapshot every second, with 25 features covering time, players alive, health and armour, credits and loadout value, ultimates ready, spike state and the score, to a…
- Infrastructure
- , , , , , , , , AWS, Azure
Docker, in 2 places
- Valorant live win probabilityServes predictions from a Docker container through REST endpoints behind Nginx.
- Homelab and Kubernetes clusterDocker images for most services, scheduled by Kubernetes.
Kubernetes, in one place
- Homelab and Kubernetes clusterA multi-node Kubernetes cluster made from virtual machines spread across those hosts, so containerised workloads can use compute from any of them.
Proxmox, in 2 places
- Wikipedia live editsAn unprivileged Debian 13 container on my Proxmox host, with 2 cores, 1 GB of memory and a 64 GB disk.
- Homelab and Kubernetes clusterHow it s put together # Proxmox on several machines.
LXC, in one place
- Homelab and Kubernetes clusterLXC containers for single long-running jobs that don t need the cluster, like the Wikipedia collector.
systemd, in 2 places
- Wikipedia live editsIt runs as a systemd service under its own user, and a timer checks every 10 minutes and restarts it if no stream events have been stored for 15 minutes.
- Homelab and Kubernetes clusterIts own user, as a systemd service.
Linux, in one place
- Homelab and Kubernetes clusterRunning my own hardware also turned out to be where I learnt most of what I know about Linux, networking, storage and containers, because when something breaks there s nobody else to fix it.
Nginx, in 2 places
- Valorant live win probabilityServes predictions from a Docker container through REST endpoints behind Nginx.
- Homelab and Kubernetes clusterRuns Jellyfin, databases, reverse proxies and my own apps, with selected services exposed through Nginx, Cloudflare DNS and HTTPS.
Cloudflare, in one place
- Homelab and Kubernetes clusterRuns Jellyfin, databases, reverse proxies and my own apps, with selected services exposed through Nginx, Cloudflare DNS and HTTPS.
- Software
- , , , Java, , ,
JavaScript, in 5 places
- Wikipedia live editsPorted the whole input pipeline to JavaScript and checked it against the Python version, so the browser builds the same text the model was trained on.
- This websiteNo framework, a live model running in your browser, a command palette and a blog I write in a web editor.
- MEGA stream overlaysTwelve OBS overlay scenes and a scoreboard app for MEGA's fighting-game weeklies, built on GORTS so the next production manager can run a stream without touching code.
- AI email assistantA small Node.js server sends the thread to GPT-4o-mini for a category and urgency label, a summary (under 30 words for the short one, under 100 for the long one) and a reply draft in the tone and length you've chosen.
- Autonomous shopping cartA self-driving shopping cart prototype built in 48 hours, with navigation, voice interaction and RFID item scanning.
TypeScript, in one place
- Smash TheaterThe site # A React and TypeScript app built with Vite and hosted on Vercel.
HTML and CSS, in 2 places
- This websitebuild.mjs turns the content into HTML with no dependencies to install.
- MEGA stream overlaysAdded Event and Layout tabs to the scoreboard, with presets, so a weekly's game, colours, casters, text and positions change without opening any HTML.
SQL, in 4 places
- Wikipedia live editsFlags live Wikipedia edits that are likely to be reverted, with a small model that runs in your browser.
- Valorant live win probabilityA real-time model that estimates who wins the current round of a professional Valorant match.
- AI email assistantA Chrome extension that helps people with busy inboxes triage, read and reply faster, without ever sending anything they haven't approved.
- Homelab and Kubernetes clusterA backup command makes a consistent copy of the SQLite database while the collector keeps writing, and pct pull copies it out to the host.
Git, in 2 places
- This websiteA GitHub Actions workflow builds and publishes the site on every commit to main.
- Smash TheaterMatched VODs to their sets on start.gg to fill in scores and stages, with a resumable backfill that runs on GitHub Actions every four hours.
WebAssembly, in one place
- Wikipedia live editsIt's stored as 8-bit integers and runs with ONNX Runtime Web on WebAssembly, reading the first 128 tokens of each edit.
- Languages
- English, Mandarin, Cantonese, French
Experience
-
AI/ML Intern (incoming), NetGain A three-month internship on knowledge distillation and small, locally hosted language models for infrastructure and monitoring workflows.
- Evaluating open-weight models for log analysis, classification, summarisation, structured extraction and routing.
- Benchmarking accuracy, latency, memory use and inference cost on CPU-only systems.
- Testing fine-tuning, LoRA, quantisation, distillation and fallback to larger models for uncertain cases.
-
Academic Tutor, Unitop One-on-one tutoring for students from grade 1 to grade 9.
- Raised students' marks by up to 35 percent.
- Worked with parents and teachers to keep learning plans aligned between home and school.
-
Bachelor of Computer Science, Monash University
Blog
-
Why there's a shopping cart on my homepage The little dot at the top of this site comes from a self-driving shopping cart I helped build at UNIHACK 2025.
Off the clock
- Games
Deadlock, Valorant, Street Fighter 6, Smash Bros. Ultimate, Overwatch, Slay the Spire 2 and Disco Elysium. I also go to Street Fighter and Smash locals.
Where games turn up in my projects
- Music
Tenor saxophone, on a King Super 20 (Series 3) with a Theo Wanne Lakshmi mouthpiece and Légère American Cut 2.5 reeds.
The setup, part by part
- HornKing Super 20 (Series 3)I wanted an older horn with a big, warm sound rather than a bright modern one, and the Super 20 has exactly that.
- MouthpieceTheo Wanne LakshmiIt gives me more edge and volume than a stock mouthpiece without losing the warmth of the horn, so it works for ballads and for louder sets.
- ReedLégère American Cut, strength 2.5Synthetic, so it plays the same every day and I'm not hunting through a box of cane for a good one. A 2.5 stays comfortable through long practice sessions.
- Listening
- Reading
One Piece, Eiichiro Oda Manga
Chapter 700
- Water 7 + Enies Lobby
- Marineford
- Alabasta
- Skypiea
- Arlong Park
- Thriller Bark
- Baratie/rest of starting arcs
- Also
Board games with friends.
Contact
- Hi! I'm Lawrence. What's your name?
The quickest way to reach me is email: celarry1



