Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › edge computing

ESP32-S3 28.9M Model: Speed, Setup, and Real Limits

By Freedom251 Team · · 9 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Yes—but the headline needs careful qualification. The ESP32S3-AI project runs a 28.9-million-parameter language model on an ESP32-S3 N16R8 board by keeping most weights in flash and fetching them through a Per-Layer Embeddings (PLE) lookup scheme. The board configuration cited by the project has 512 KB SRAM, 8 MB PSRAM and 16 MB flash; the four-bit model artifact occupies about 14.9 MB. Project measurements report roughly 9.5 tokens per second end to end (9.7 tokens per second for pure compute; an upstream README reports 9.88 tokens per second). This is an embedded-inference demonstration, not a pocket version of a general-purpose chatbot: the model is trained on TinyStories and is intended to generate short, simple stories, not answer questions, follow instructions, write code or provide factual knowledge.

What is actually running on the ESP32-S3?

The project runs a TinyStories-trained language model directly on the microcontroller. “28.9 million parameters” describes the number of learned values stored in the model; it does not describe the model’s vocabulary, reasoning ability or suitability for general conversation. TinyStories models are trained for a narrow task: producing short, child-friendly narrative text from a small synthetic-story corpus.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

That distinction matters because a parameter count is often used as a rough proxy for capability in desktop and cloud models. Here it is mainly a memory-and-systems milestone. The project demonstrates that a model with tens of millions of stored parameters can be packaged for a board normally associated with sensors, displays and control logic. It does not add capabilities that were absent from training.

How does the model fit in the ESP32-S3’s memory?

The key is treating model storage and active computation as different memory problems. Most weights are kept in the board’s flash through a Per-Layer Embeddings lookup table, while the operations currently being performed use faster working memory. The full parameter set is therefore not loaded into SRAM at once.

Popular on Amazon
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter | 4Pack Type C Female to A Male Cable Converter for Apple Duo 17 16 15 14 Plus,iWatch Watch 12 11 10,iPad 9 8 Air,Airpods 5 4
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Component Project figure Role
Stored parameters 28.9 million Total learned values reported for the model.
Flash lookup table About 25 million parameters Most parameters are retained in flash and looked up as needed.
Quantized model artifact About 14.9 MB at four-bit storage Flash-space requirement for the packaged model, including its format overhead.
SRAM 512 KB Fast on-chip working memory; it does not hold all 28.9 million parameters.
PSRAM 8 MB Additional working/storage space used by the firmware and inference process.
Flash 16 MB Stores the model partition and firmware; the project warns that smaller variants will not work.

Four-bit quantization reduces each weight’s storage cost to roughly half a byte before metadata and alignment. A simple 28.9-million-weight calculation would therefore be about 14.45 MB, which is consistent with the project’s approximately 14.9 MB artifact once packaging overhead is included. That arithmetic explains the scale, but it should not be read as a guarantee that any four-bit model of the same size will run: the lookup format, runtime, tensor shapes and available working memory also matter.

PLE is the architectural idea that makes the arrangement practical. Instead of copying every layer’s weights into fast memory, the runtime keeps a large, relatively cold store in flash and retrieves the values needed for the current layer. Flash is slower than SRAM, so this trades access speed and implementation complexity for capacity. The project author associates the approach with Google’s Gemma work; in this project it is used to cross the usual microcontroller memory boundary.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What ESP32-S3 board do I need?

You need an ESP32-S3 N16R8-class development board with 16 MB of flash and 8 MB of PSRAM. “ESP32-S3” alone is not enough: boards with less flash cannot hold the approximately 14.9 MB model partition alongside the firmware.

Check before buying Required for this project Why it matters
Chip family ESP32-S3 The firmware and implementation target this MCU family.
Flash capacity 16 MB Provides room for the model partition and program; smaller variants are warned against.
PSRAM 8 MB Matches the cited N16R8 working-memory configuration.
Model partition space About 14.9 MB available The four-bit artifact must fit in the partition, not merely on a marketing specification sheet.
Optional display connector I2C pins if you want an OLED Only needed for the project’s screen-based output; inference itself does not require a display.

Listings sometimes abbreviate memory suffixes or omit PSRAM details. Confirm the exact N16R8 configuration in the board documentation or seller’s specification, and check the usable partition layout after flashing. The author’s approximately $8 figure is a project estimate, not a verified current retail price; shipping, regional taxes and revisions can change the total.

Also popular on Amazon
Sale
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter | USB C Dongle with 90W Max Power Delivery, 3×5Gbps USB A Data Ports, for MacBook, Dell, and More (Charger Not Included)
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

How can you reproduce the demonstration?

The upstream project repository is the authoritative place for the firmware, model files, wiring, flashing instructions, training and quantization code, experiments and measured results. Because board revisions and toolchain versions change, follow its current pin assignments and build instructions rather than copying an unverified command from a secondary guide.

  1. Choose the correct hardware. Obtain an ESP32-S3 N16R8 board and verify that it exposes 16 MB flash and 8 MB PSRAM. Do not substitute a board that only says “ESP32-S3.”
  2. Prepare the software toolchain. Use the build environment and SDK version specified by the project repository. The repository contains the firmware and flashing procedure; install the listed dependencies before connecting the board.
  3. Inspect the partition layout. Ensure the application and model partitions leave room for the approximately 14.9 MB four-bit artifact. A compile that succeeds with the model omitted is not a successful reproduction.
  4. Flash the firmware and model. Put the board in its documented download mode, connect it over USB, and use the repository’s flashing steps. Keep the model binary matched to the firmware revision.
  5. Test serial output first. Start inference without adding peripherals. This isolates model loading and generation from wiring or display problems and lets you see whether the board reaches its first generated token.
  6. Add the optional OLED. If you want on-device visual output, wire the small I2C display exactly as documented and select the matching address and pins. The screen is an output accessory, not a compute requirement.
  7. Record conditions with any speed result. Note firmware, model artifact, prompt, token count, clock settings and whether timing includes startup and output handling. Those details are necessary for a meaningful comparison with the project’s measurements.

How fast is generation on this microcontroller?

The project README reports approximately 9.5 tokens per second for end-to-end generation and approximately 9.7 tokens per second for pure compute. The upstream repository README reports 9.88 tokens per second. These are project-specific measurements, not a universal speed rating for every ESP32-S3 board.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Measurement Reported result How to interpret it
End to end About 9.5 tokens/s Includes the surrounding generation path, rather than only the arithmetic kernel.
Pure compute About 9.7 tokens/s Isolates the model-computation portion more closely.
Upstream README figure 9.88 tokens/s A corroborating project-repository result; timing conditions should be checked before comparing it with another setup.

The small gap between end-to-end and pure-compute figures suggests that, in the cited setup, model arithmetic is the dominant cost but not the only one. Flash lookups, tokenization, sampling and output handling all contribute. A different board revision, clock configuration, firmware build or measurement method can change the observed rate.

What can a 28.9-million-parameter microcontroller model actually do?

It can generate short, simple stories in the style represented by TinyStories. That makes it useful as a self-contained demonstration of quantization, flash-resident weights and embedded text generation.

Also popular on Amazon
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
  • Supported use: short narrative generation from the model’s TinyStories training distribution.
  • Not a supported use: answering arbitrary questions or retrieving factual information.
  • Not a supported use: following multi-step instructions or acting as a conversational assistant.
  • Not a supported use: writing reliable software code.

A prompt that appears to work once should not be treated as a general capability. Small language models can produce plausible text outside their training distribution, but plausibility is not factual knowledge, instruction following or reasoning. The 28.9-million figure tells you how many values are stored, not what tasks the model learned.

Is the “$8 LLM” claim a real price?

It is best understood as an approximate bill-of-materials reference from the project author. The cited amount applies to the board estimate in the project context, not a guaranteed current retail price, and it does not necessarily include a display, USB cable, shipping, taxes or replacement hardware.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The cost claim also describes the microcontroller board, not the economic value of the engineering work required to train, quantize, partition and flash the model. If you are budgeting a reproduction, price the exact 16 MB flash/8 MB PSRAM board, then add any display and the tools needed to build the firmware.

What are the common failure points?

Most failed reproductions come from a memory mismatch or from treating the display as part of the inference engine. Check these conditions in order:

Also popular on Amazon
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray | Data transfer & Fast charging for MacBook, iPhone 17/16/15, iPad, Samsung Galaxy, Apple Watch
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
  • Firmware will not fit: verify that the board really has 16 MB flash and that the partition table reserves space for the model.
  • Model load fails: confirm the four-bit artifact is complete, uncorrupted and paired with the firmware version expected by the repository.
  • Runtime crashes or resets: check that 8 MB PSRAM is enabled and recognized; an S3 board without the required PSRAM configuration is not equivalent to N16R8.
  • No text appears: test over serial before troubleshooting an OLED. Then verify I2C power, ground, pins and address against the project wiring.
  • Speed is lower than reported: compare like with like. Include or exclude startup, tokenization and output handling consistently, and record clock and firmware conditions.
  • Output seems nonsensical: remember the narrow TinyStories training target. Random-looking or repetitive text does not turn the model into a question-answering system.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What does this project prove—and what does it not prove?

It proves that careful memory placement can make a tens-of-millions-parameter model executable on a low-cost microcontroller. Flash can serve as a large parameter store while SRAM and PSRAM handle active computation, and four-bit representation can bring the packaged model below the board’s flash capacity.

It does not establish that all ESP32-S3 boards can run the model, that the model is comparable to modern desktop or cloud assistants, or that the reported speed is an independently controlled benchmark. A hands-on account published on August 17, 2026 describes a successful N16R8 reproduction and observed output, but it is an individual replication rather than a controlled cross-device test. The project’s own measurements remain the relevant reference for this specific implementation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When is this approach useful?

Choose this design when your goal is to study embedded inference, demonstrate local text generation, or explore flash-based parameter storage under tight memory limits. It is especially suitable for an offline exhibit or educational device where a short story is enough and a network service is undesirable.

Choose a different platform when you need factual answers, reliable instruction following, code generation, long context, large outputs or predictable conversational behavior. Those requirements concern model capability and working memory, not merely whether the parameter file can be stored.

Also popular on Amazon
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Frequently Asked Questions

Can I run the model on an ESP32-S3 with 4 MB of flash?

Not for the configuration described by this project. The approximately 14.9 MB four-bit artifact already exceeds that capacity, and the project specifically warns that smaller-flash variants will not work.

Does the board need Wi-Fi or an internet connection during generation?

The inference workload is executed on the ESP32-S3 with the model stored on the device, so a remote model API is not part of the demonstrated setup. You still need a computer connection to build and flash the firmware, unless you later arrange another local update method.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why is PSRAM listed separately from flash?

Flash is the large, nonvolatile store for firmware and most model parameters. PSRAM is volatile working memory used while the program runs; having 8 MB of PSRAM does not mean the board can replace the required 16 MB flash model partition.

Can I train a better model on the ESP32-S3 itself?

The project uses the board for inference, not for training the 28.9-million-parameter model. Its repository includes training and quantization code intended to prepare artifacts before deployment; training on the microcontroller is outside the demonstrated workflow.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

edge computingEmbedded AIESP32-S3local LLMMicrocontrollersquantizationTinyStories

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.