Skip to content

Several minutes to transcribe the Beckett sample on Raspberry Pi Zero 2W with tiny model - am I missing anything? #100

@boutell

Description

@boutell

OK, so the Pi Zero 2W has only 512MB of RAM and I realize that's probably too tight for this kind of thing, but I gave it a shot anyway.

Once I figured out you must use the older Bullseye image to install 64-bit Raspberry PiOS Lite on a Pi Zero 2W successfully, I can report it didn't take long to have success with your documented steps.

On my first try the Python process was "Killed," which I pretty much expected (out of memory error). I then added about 2GB of swap space and was able to complete the recognition run.

Alas, it took several minutes at max CPU to transcribe the one-sentence Beckett WAV file.

Results of my run:

(boutell) boutell@sunnyphone:~ $ python
Python 3.9.2 (default, Mar 20 2025, 02:07:39) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import moonshine_onnx
>>> moonshine_onnx.transcribe(moonshine_onnx.ASSETS_DIR / 'beckett.wav', 'moonshine/tiny')
['Ever tried ever failed, no matter try again, fail again, fail better.']

I used the tiny model as you can see.

My guess is this is just the end of the road, I recognize most modern models just aren't built for 512MB of RAM. But I wanted to post my results and see if you have any suggestions before I move on.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions