AIFeed

在 Amiga 1200 上运行 LLM

Translation(model translation, not the source's own text)

LLM on an Amiga 1200

你是否觉得 Amiga 太老、太慢,跑不了大语言模型?再想想。这可是 Amiga,一切皆有可能。我试过各种 LLM 源码,找到一个用 C 写的小巧又好用的,把它移植成了 Pascal 版本,然后冒出个念头:它在我 Linux 电脑上相当快,那在 Amiga 上能有多快呢。于是我加了一些字节序修正,并寻找一个足够小、能装进我那台 Amiga 1200 Warp1260/100 MHz 内存的模型。我找到两个很有希望的:„stories15M.bin“ 和 „TinyChat15M.bin“,两者都需要大约 60 MB 内存,这没问题。但它会有多快呢……说实话第一次尝试还不错……0.22 Token/s……也就是每个 Token/词大约 4-5 秒,还行,但相当慢。它的主程序是矩阵乘法,非常慢,所以我写了一个汇编(FPU)版本并稍微优化了一下,直到达到大约 0.4 Token/s,也就是每个 Token/词大约 1-2 秒,这已经相当可用了。

为了使用 Tiny Chat,我加了一个直接聊天版本,这样就不必每次都加载权重。

这里还有一个小视频,你可以看看实际体验如何。

想到一个大语言模型直接在 Amiga 上原生运行……不是通过互联网在服务器上,而是直接在你的 68k 处理器上运行,这让我感到惊叹。

Only about 674 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗