@Oleksandr on BobAI
BobAI — a chatbot on my site. A GitHub Pages frontend (with a click-to-reveal welcome screen) talks to a FastAPI backend hosted on Hack Club Nest. The backend calls Hack Club’s HCAI API (routed through OpenRouter, currently running Gemini 2.5 Flash) instead of running a model locally, and I added tool-calling so BobAI can search the web for things like current weather instead of only working off static knowledge.
I originally fine-tuned my own Llama 3.1 8B with DPO on Argilla’s UltraFeedback dataset, planning to self-host it. My RTX 4070 Super was more than capable of that part — the real problem was hosting a 5GB+ model for free. Hosting fell through repeatedly: Hugging Face Spaces dropped free Docker containers, Oracle Cloud registration failed three separate times, and Nest’s default 2GB RAM wasn’t enough — my request for 6GB got declined for server resource exhaustion.
So I switched to a smaller model that only needed about 1GB of RAM to run on Nest. That solved the memory problem, but the server only gave me 2 CPU cores under heavy load, and replies were unusable — minutes per response, even for a tiny test model. I had to dig into actual cgroup CPU pressure stats to prove it wasn’t just “the server being slow” — the hardware genuinely couldn’t keep up.
I’m proud that I shipped a working site through three full architecture pivots, and that I diagnosed the performance problem properly instead of just assuming “it’s probably fine” — I checked real metrics before concluding anything. I actually fine-tuned a model with DPO, even though it didn’t make it into the final version, and I picked up backend and frontend basics from zero along the way.
It’s live at oleksandr1dovbenko.github.io/BobAI — click anywhere on the welcome screen to jump into the chat. It runs on Hack Club’s shared HCAI API, which had some downtime earlier, but it’s working properly now. Try something time-sensitive, like asking for the weather, to see the web-search tool-calling in action.
- 5 devlogs
- 10h