[GH-ISSUE #1904] zsh: illegal hardware instruction ollama run mistral #47607

Closed
opened 2026-04-28 04:29:32 -05:00 by GiteaMirror · 12 comments
Owner

Originally created by @MagzhanUnited on GitHub (Jan 10, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/1904

Originally assigned to: @jmorganca on GitHub.

I run mistral yesterday successfully on my Mac M1. But today I have the following error when I try to run mistral:
zsh: illegal hardware instruction ollama run mistral

Originally created by @MagzhanUnited on GitHub (Jan 10, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/1904 Originally assigned to: @jmorganca on GitHub. I run mistral yesterday successfully on my Mac M1. But today I have the following error when I try to run mistral: zsh: illegal hardware instruction ollama run mistral
GiteaMirror added the bug label 2026-04-28 04:29:32 -05:00
Author
Owner

@MagzhanUnited commented on GitHub (Jan 10, 2024):

If I just type ollama in terminal I have error:
zsh: illegal hardware instruction ollama

<!-- gh-comment-id:1885277620 --> @MagzhanUnited commented on GitHub (Jan 10, 2024): If I just type ollama in terminal I have error: zsh: illegal hardware instruction ollama
Author
Owner

@PeterHickman commented on GitHub (Jan 10, 2024):

Installed 0.1.19 on my M1 Macmini and got Invalid instruction: 4 or something. Re downloaded a couple of times to no avail. Reverted to 0.1.18. 0.1.19 works fine on my Intel MBP The can happen with just ollama -v

Not using zsh so that might not be relevant

<!-- gh-comment-id:1885338708 --> @PeterHickman commented on GitHub (Jan 10, 2024): Installed 0.1.19 on my M1 Macmini and got `Invalid instruction: 4` or something. Re downloaded a couple of times to no avail. Reverted to 0.1.18. 0.1.19 works fine on my Intel MBP The can happen with just `ollama -v` Not using zsh so that might not be relevant
Author
Owner

@MagzhanUnited commented on GitHub (Jan 10, 2024):

Installed 0.1.19 on my M1 Macmini and got Invalid instruction: 4 or something. Re downloaded a couple of times to no avail. Reverted to 0.1.18. 0.1.19 works fine on my Intel MBP The can happen with just ollama -v

Not using zsh so that might not be relevant

I redownloaded but it didn't help

<!-- gh-comment-id:1885438452 --> @MagzhanUnited commented on GitHub (Jan 10, 2024): > Installed 0.1.19 on my M1 Macmini and got `Invalid instruction: 4` or something. Re downloaded a couple of times to no avail. Reverted to 0.1.18. 0.1.19 works fine on my Intel MBP The can happen with just `ollama -v` > > Not using zsh so that might not be relevant I redownloaded but it didn't help
Author
Owner

@jmorganca commented on GitHub (Jan 10, 2024):

Hi all, I'm sorry you're getting this error. Would it be possible to run the following in your terminal?

sysctl -n sysctl.proc_translated

It seems like it's trying to run ollama as if it were an intel build, even on Apple Silicon. Ollama's build is universal though so it shoudl work on both.

<!-- gh-comment-id:1885441596 --> @jmorganca commented on GitHub (Jan 10, 2024): Hi all, I'm sorry you're getting this error. Would it be possible to run the following in your terminal? ``` sysctl -n sysctl.proc_translated ``` It seems like it's trying to run `ollama` as if it were an intel build, even on Apple Silicon. Ollama's build is universal though so it shoudl work on both.
Author
Owner

@MagzhanUnited commented on GitHub (Jan 10, 2024):

Hi all, I'm sorry you're getting this error. Would it be possible to run the following in your terminal?

sysctl -n sysctl.proc_translated

It seems like it's trying to run ollama as if it were an intel build, even on Apple Silicon. Ollama's build is universal though so it shoudl work on both.

It also didn't help. I'm still getting that error. An output of the command is 1

<!-- gh-comment-id:1885444904 --> @MagzhanUnited commented on GitHub (Jan 10, 2024): > Hi all, I'm sorry you're getting this error. Would it be possible to run the following in your terminal? > > ``` > sysctl -n sysctl.proc_translated > ``` > > It seems like it's trying to run `ollama` as if it were an intel build, even on Apple Silicon. Ollama's build is universal though so it shoudl work on both. It also didn't help. I'm still getting that error. An output of the command is 1
Author
Owner

@MagzhanUnited commented on GitHub (Jan 10, 2024):

Hi all, I'm sorry you're getting this error. Would it be possible to run the following in your terminal?

sysctl -n sysctl.proc_translated

It seems like it's trying to run ollama as if it were an intel build, even on Apple Silicon. Ollama's build is universal though so it shoudl work on both.

I'm facing with this error only in my terminal. When I run Ollama application I can make curl request to api

<!-- gh-comment-id:1885451558 --> @MagzhanUnited commented on GitHub (Jan 10, 2024): > Hi all, I'm sorry you're getting this error. Would it be possible to run the following in your terminal? > > ``` > sysctl -n sysctl.proc_translated > ``` > > It seems like it's trying to run `ollama` as if it were an intel build, even on Apple Silicon. Ollama's build is universal though so it shoudl work on both. I'm facing with this error only in my terminal. When I run Ollama application I can make curl request to api
Author
Owner

@PeterHickman commented on GitHub (Jan 10, 2024):

On my M1 Macmini sysctl -n sysctl.proc_translated returns 1 and still reports Illegal instruction: 4 for 0.1.19

<!-- gh-comment-id:1885574587 --> @PeterHickman commented on GitHub (Jan 10, 2024): On my M1 Macmini `sysctl -n sysctl.proc_translated` returns `1` and still reports `Illegal instruction: 4` for 0.1.19
Author
Owner

@PeterHickman commented on GitHub (Jan 10, 2024):

This will get it to work arch -arm64 ollama -v

<!-- gh-comment-id:1885585411 --> @PeterHickman commented on GitHub (Jan 10, 2024): This will get it to work `arch -arm64 ollama -v`
Author
Owner

@MagzhanUnited commented on GitHub (Jan 10, 2024):

arch -arm64 ollama -v

wow thanks!

<!-- gh-comment-id:1885587213 --> @MagzhanUnited commented on GitHub (Jan 10, 2024): > arch -arm64 ollama -v wow thanks!
Author
Owner

@MagzhanUnited commented on GitHub (Jan 10, 2024):

arch -arm64 ollama [command] solved my problem

<!-- gh-comment-id:1885589363 --> @MagzhanUnited commented on GitHub (Jan 10, 2024): arch -arm64 ollama [command] solved my problem
Author
Owner

@PeterHickman commented on GitHub (Jan 10, 2024):

To save typing set an alias in .bashrc such as

alias ollama='arch -arm64 \ollama'

<!-- gh-comment-id:1885596682 --> @PeterHickman commented on GitHub (Jan 10, 2024): To save typing set an alias in `.bashrc` such as `alias ollama='arch -arm64 \ollama'`
Author
Owner

@jmorganca commented on GitHub (Jan 10, 2024):

Great! By the way, it seems you might be running zsh or bash using Rosetta. This might be due to installing amd64 brew or other tools that spawn your shell.

In any case, we'll be working on changes to support running ollama in Rosetta in an upcoming release. Stay tuned!

<!-- gh-comment-id:1885635225 --> @jmorganca commented on GitHub (Jan 10, 2024): Great! By the way, it seems you might be running `zsh` or `bash` using Rosetta. This might be due to installing amd64 `brew` or other tools that spawn your shell. In any case, we'll be working on changes to support running `ollama` in Rosetta in an upcoming release. Stay tuned!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#47607