Skip to content

Illegal instruction on Raspberry Pi 4 (ARMv8) #561

Open

Description

@feiticeir0

Environment

  • Device: Raspberry Pi 4 (2GB) - Raspberry Pi 4 Model B Rev 1.2
  • OS: Raspberry Pi OS Lite (64-bit)
  • Architecture: ARMv8 (aarch64)
  • Cactus version: latest main

Steps to reproduce

  1. cactus build --python
  2. cactus run Qwen/Qwen3-0.6B --precision INT4
  3. cactus run Qwen/Qwen3.5-0.8B --precision INT4

Result

Illegal instruction

Expected

Model runs as on Raspberry Pi 5

Notes

Raspberry Pi 5 is ARMv8.2, Raspberry Pi 4 is ARMv8.0.
Likely compiled with instructions not supported on ARMv8.0.
Benchmarks on your README only show RPi 5 — is RPi 4 officially supported?

Activity

  1. yujonglee commented on Apr 7, 2026

    @yujonglee
    Contributor

    The current native build is compiled with an ARMv8.2+ baseline (-march=armv8.2-a+fp16+simd+dotprod+i8mm), so it assumes CPU features beyond ARMv8.0. That makes an Illegal instruction on Pi 4 expected.

  2. asuzukosi commented on May 3, 2026

    @asuzukosi

    @yujonglee are there any plans to include builds for ARM below 8.2 or should this issue be closed?

  3. yujonglee commented on May 3, 2026

    @yujonglee
    Contributor

    @HenryNdubuaku thoughts? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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