ai: Add LiME-TM package - #2015
Open
wuhanstudio wants to merge 4 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LiME-TM: 在 MCU 上 训练 机器学习模型
https://tm.wuhanstudio.uk/#/8
例程包括训练完整的 MNIST 数据集 (60,000 张图片),训练图片从 SD 卡上一张张读取,模型训练只需要 20KB SRAM。
虽然相比 CNN,模型精度下降了 1%,但是训练速度快了 300x,推理速度快了 20x,并且模型训练比模型推理更快。
因为 Tsetlin Machine 机器学习模型没有浮点运算,不需要梯度;纯逻辑运算,并且利用强化学习 sample-by-sample 训练,所以比 CNN 更加节省 SRAM,并且整形运算也更快。