Frequently asked questions
Everything people ask about Affan AI Engine Nano, the 14M-parameter chat AI that runs in your browser.
What is Affan AI Engine Nano?
Affan AI Engine Nano is a very small chat AI: a 14-million-parameter transformer stored as a single 8.4 MB int4 model file. It runs inside a web page with the AEN inference engine (WebAssembly SIMD), so there is no server and no account. It can chat, tell jokes, write short stories and use an exact built-in calculator.
Who made it?
It was made by MABA Studios and Muhammad Affan bin Adnan: the model, the quantisation, the AEN inference engine and this website.
Does it need the internet?
Only for the first visit, to download the page, the engine and the 8.4 MB model. After that everything is cached on your device and Nano works fully offline. Replies are generated on your device, not on a server.
Is it private?
Yes. Your messages are processed inside your browser and are never sent to any server. There is no sign-up and no chat log on our side, because there is no backend.
How big is the model?
The recommended int4 file is 8.44 MB (14 million parameters, 4-bit weights with one fp16 scale per 32 weights). There is also an int8 file of about 15 MB that is practically lossless, for devices with more flash. See how it works for the architecture.
Which browsers and devices can run it?
Any current browser with WebAssembly SIMD: Chrome, Edge, Firefox and Safari 16.4 or newer, on Windows, macOS, Linux, Android and iPhone. Browsers without SIMD fall back to a plain JavaScript mode that is much slower. When the page can use extra CPU threads, it does so automatically.
Is it good at casual chat?
It is much better than before. Nano was fine-tuned on friendly everyday conversation: greetings and slang ("wsup", "hru"), reactions ("oh wow", "lol"), moods, good news, weather, food and goodbyes, with short replies that fit what you said. On 40 casual messages it had never seen, about two thirds of its replies were a good fit, against roughly one in five before the update. It still misses sometimes and answers a few messages with an odd reply, and it is not good at facts.
Does it know facts, and does it make things up?
Nano knows a small, fixed set of simple facts that it was taught carefully: capitals of about 145 countries, continents, the planets, basic science, days, months, units and a few well-known names. On new wordings of those questions it answered about nine in ten correctly in our tests. For anything outside that set it is trained to say it is not sure instead of guessing, and it did so for about two thirds of the unanswerable questions we tried (made-up places and people it caught almost every time). It is weakest on real countries it was never taught, where it still made up an answer about four times in five. So it can still be wrong, so do not rely on it for facts.
How fast is it?
In our tests on a desktop PC the browser engine generated roughly 300 to 500 tokens (word pieces) per second, and a native CUDA build several thousand. Phones are slower than a desktop but run the same engine. The page shows a live tokens-per-second badge while Nano replies.
Is it as smart as ChatGPT?
No, and it does not try to be. Nano is a tiny model that is good at friendly short chat, jokes, simple stories and calculator questions. It can be wrong about facts, so do not rely on it for important answers. Its advantage is size and privacy: a whole AI in 8 MB that runs on your own device.
Why does it not remember my earlier messages?
Every message is answered as a brand-new conversation. For a model this small, long chat histories made answers worse, while a fresh start keeps replies sharp and consistent from the first message to the hundredth. The chat window still shows the whole conversation, but Nano only reads your current message.
Can it do maths?
Yes, through a calculator tool. When you ask for arithmetic, Nano writes the sum, the engine computes it exactly, and Nano writes the answer. The calculator supports + - × ÷ %, powers and brackets, and you can see the tool call appear in the chat.
Can it run on an ESP32?
The model file is built for the ESP32-S3 (8 MB of PSRAM and 16 MB of flash): it can be memory-mapped from flash and read row by row. See Nano on an ESP32 for the format and what a firmware needs to do.
Is it free? What is the licence?
Yes, it is free to use. The model metadata declares the Apache 2.0 licence.
Can I host my own copy?
Yes. The website is plain static files with no build step: upload the folder to Cloudflare Pages or any static host and it works. The model file is included.
What is the AEN engine?
AEN is the inference engine made for Nano. The native version, AEN.cpp, runs on CPUs and NVIDIA GPUs (with Metal and ARM code paths), and this website uses its WebAssembly edition. It reads the model file directly and does the int4 by int8 maths itself.