All models

speech-seq2seq (moonshine)

Encoder-decoder speech recognizer using RoPE for padding-free, real-time transcription.

Audio and speech · 821 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (35 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
27.1M
Operations
821
Framework
PyTorch
Recurrent
No
Published
2024
Name in source
moonshine:speech-seq2seq
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m7487
Graph hash
f8cd7c499f2d74b05529e5ff4033868e8f15415dedb90e10cc81374ea51aa62a
Skeleton hash
b1ce42b2d647be83fa0af8500557847c292a2d7ddc60f1473a8dd67f07bbe281
Architecture hash
db7938fe7b270238da2353d0b536b5f8ef71cd9d7213e03da462c2c62b30f1e8
Diagram SHA-256
1aa46e423d5b5c9ab655bd6d55a4fbce2d04c87b9990ae7d9d3f5cc6c476a07a
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

Moonshine is an encoder-decoder speech recognition model built for real-time transcription and for recognizing voice commands. Its distinguishing choice is positional: instead of absolute position embeddings it uses Rotary Position Embedding (RoPE), so speech of varying lengths can be handled without padding. Skipping the padding makes inference cheaper, which is the point: the model is aimed at resource-constrained devices.

The traced members are the MoonshineForConditionalGeneration build, the class whose generate method turns audio features into text tokens. The original checkpoints are published under the Useful Sensors organization.

Key idea. An encoder-decoder speech recognizer that swaps absolute position embeddings for RoPE so variable-length audio runs without padding, for real-time use on constrained devices.

  • Moonshine
  • speech recognition
  • ASR
  • real-time transcription
  • voice commands
  • Useful Sensors
  • RoPE
  • on-device speech

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.