← 开源
DaveBben

esp32-llm

Running a LLM on the ESP32

InfrastructureDeploy & ServeC
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
645
Star
82
Fork
+3
本周
1
贡献者
创建于 2024-09-03 · 更新于 2026-10-15 · 今日第 15578 名
主要开发者
DaveBben

DaveBben/esp32-llm 排名第 15,578,有 645 个星标。

同类别比较

DaveBben/esp32-llm 排名第 15,578,此处有 8 个同类条目;WW-AI-Lab/openclaw-office 排名第 15,580。

同类别比较
名称排名指标
SforAiDl/KD_Lib15,483
语言:
Python
星标数:
651
分叉数:
60
简介:
A Pytorch Knowledge Distillation library for benchmarking and extending works in the domains of Knowledge Distillation, Pruning, and Quantization.
ParisNeo/lollms_hub15,520
语言:
Python
星标数:
649
分叉数:
102
简介:
A proxy server for multiple ollama instances with Key security
mlcommons/ck15,527
语言:
Python
星标数:
649
分叉数:
122
简介:
Collective Knowledge (CK), Collective Mind (CM/CMX) and MLPerf automations: community-driven projects to learn how to run AI, ML, and other emerging workloads more efficiently and cost-effectively across diverse models, datasets, software, and hardware using MLPerf methodology and benchmarks.
danilofalcao/cursor-deepseek15,554
语言:
Go
星标数:
647
分叉数:
51
简介:
A high-performance HTTP/2-enabled proxy server designed specifically to enable Cursor IDE's Composer to use DeepSeek's and OpenRouter's language models. This proxy translates OpenAI-compatible API requests to DeepSeek/OpenRouter API format, allowing Cursor's Composer and other OpenAI API-compatible tools to seamlessly work with these models.
WW-AI-Lab/openclaw-office15,580
语言:
TypeScript
星标数:
645
分叉数:
115
princeton-nlp/LLM-Shearing15,622
语言:
Python
星标数:
643
分叉数:
59
简介:
[ICLR 2024] Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning
apache/casbin-gateway15,630
语言:
Go
星标数:
642
分叉数:
71
简介:
See what every AI coding agent on your machine is doing, and whether the API behind it is the one you paid for. Claude Code, Codex, Cursor, Gemini CLI and more: one endpoint for 44 model vendors, A–F API authenticity grading, per-agent permissions, usage and prompt records.
open-edge-platform/dlstreamer15,633
语言:
C++
星标数:
642
分叉数:
211
简介:
Deep Learning Streamer (DL Streamer) Pipeline Framework is an open-source streaming media analytics framework, based on GStreamer* multimedia framework, for creating complex media analytics pipelines for the Cloud or at the Edge.
关键参数与规格
关键参数与规格
参数值
语言C
类别Infrastructure
子类别Deploy & Serve
关键词IoT, LocalAI
星标数645
分叉数82
贡献者1
创建日期2024-09-03
更新日期2026-10-15
1 天星标数0
7 天星标数3
排名15,578
上次排名6,702
排名变化-8,876
7 天星标排名7,320
上次 7 天星标排名5,770
7 天星标排名变化-1,550
总星标排名15,861
上次总星标排名15,830
总星标排名变化-31
国家USA
README 摘录

Running a LLM on the ESP32 Summary I wanted to see if it was possible to run a Large Language Model (LLM) on the ESP32. Surprisingly it is possible, though probably not very useful. The "Large" Language Model used is actually quite small. It is a 260K parameter tinyllamas checkpoint trained on the tiny stories dataset. The LLM implementation is done using llama. 2c with minor optimizations to make it run faster on the ESP32. Hardware LLMs require a great

deal of memory. Even this small one still requires 1MB of RAM. I used the ESP32-S3FH4R2 because it has 2MB of embedded PSRAM. c for the ESP32 With the following changes to , I am able to achieve **19. Utilizing both cores of the ESP32 during math heavy operations. Utilizing some special dot product functions from the ESP-DSP library that are designed for the ESP32-S3. These functions utilize some of the few SIMD instructions the ESP32-S3 has

. Maxing out CPU speed to 240 MHz and PSRAM speed to 80MHZ and increasing the instruction cache size. Setup This requires the ESP-IDF toolchain to be installed

常见问题

记录了多少星标和分叉?

DaveBben/esp32-llm 有 645 个星标和 82 个分叉。

仓库排名是多少?

DaveBben/esp32-llm 排名第 15,578。

记录的语言和类别是什么?

DaveBben/esp32-llm 有 645 个星标,语言为 C,类别为 Infrastructure。

哪个仓库排名最接近?

DaveBben/esp32-llm 与 WW-AI-Lab/openclaw-office 比较,后者排名第 15,580,有 645 个星标。

README

Running a LLM on the ESP32

Summary

I wanted to see if it was possible to run a Large Language Model (LLM) on the ESP32. Surprisingly it is possible, though probably not very useful.

The "Large" Language Model used is actually quite small. It is a 260K parameter tinyllamas checkpoint trained on the tiny stories dataset.

The LLM implementation is done using llama.2c with minor optimizations to make it run faster on the ESP32.

Hardware

LLMs require a great deal of memory. Even this small one still requires 1MB of RAM. I used the ESP32-S3FH4R2 because it has 2MB of embedded PSRAM.

Optimizing Llama2.c for the ESP32

With the following changes to llama2.c, I am able to achieve 19.13 tok/s:

  1. Utilizing both cores of the ESP32 during math heavy operations.
  2. Utilizing some special dot product functions from the ESP-DSP library that are designed for the ESP32-S3. These functions utilize some of the few SIMD instructions the ESP32-S3 has.
  3. Maxing out CPU speed to 240 MHz and PSRAM speed to 80MHZ and increasing the instruction cache size.

Setup

This requires the ESP-IDF toolchain to be installed

idf.py build
idf.py -p /dev/{DEVICE_PORT} flash
排名相邻
同类项目