# Apple M1: illegal hardware instruction (using any rasa command)

**URL:** <https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946>\
**Category:** Rasa Open Source\
**Created:** [December 11, 2020, 3:29pm UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946 "2020-12-11T15:29:04Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![osterhult](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/osterhult/32/12771_2.png) [@osterhult](https://forum.rasa.com/u/osterhult)\
**Post date:** [May 10, 2021, 8:36pm UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/21 "2021-05-10T20:36:02Z")

</div>

@fkoerner thanks for giving this a try.

---

<div class="post-metadata">

**Author:** ![endreb](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/endreb/32/12584_2.png) [@endreb](https://forum.rasa.com/u/endreb)\
**Post date:** [May 11, 2021, 1:30pm UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/22 "2021-05-11T13:30:41Z")

</div>

Hi All,

I am curious if I would use docker on mac and run rasa on debian inside the docker will it work on mac with M1?

Endre

---

<div class="post-metadata">

**Author:** ![fkoerner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fkoerner/32/11784_2.png) [@fkoerner](https://forum.rasa.com/u/fkoerner)\
**Post date:** [May 12, 2021, 8:12am UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/23 "2021-05-12T08:12:45Z")

</div>

Hi @endreb, I imagine this will work, though you won’t be using the compute capability of the chip.

---

<div class="post-metadata">

**Author:** ![lostinlogic](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lostinlogic/32/11133_2.png) [@lostinlogic](https://forum.rasa.com/u/lostinlogic)\
**Post date:** [May 15, 2021, 7:02am UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/24 "2021-05-15T07:02:02Z")

</div>

Hi, Reading this thread and wondering how would folks recommend I install Rasa on an M1 with Big Sur these days? According to the Python docs, 3.8.x is [not fully supported on macOS 11](https://www.python.org/downloads/release/python-387/), but the Rasa installation states it needs between version 3.6 and 3.8 (not 3.9.1). Also there are the tensor flow issues on Apple Silicon I see mentioned above. Is there a best practise, or is it best to wait and use an Intel machine with a different OS for now?

---

<div class="post-metadata">

**Author:** ![fkoerner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fkoerner/32/11784_2.png) [@fkoerner](https://forum.rasa.com/u/fkoerner)\
**Post date:** [May 17, 2021, 6:43am UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/25 "2021-05-17T06:43:21Z")

</div>

Hi @lostinlogic, I think you’re best off using the other machine.

---

<div class="post-metadata">

**Author:** ![HarmanDotpy](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/harmandotpy/32/15140_2.png) [@HarmanDotpy](https://forum.rasa.com/u/HarmanDotpy)\
**Post date:** [May 28, 2021, 12:19pm UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/26 "2021-05-28T12:19:18Z")

</div>

Hi is there any solution or workaround to this problem at all? for example does building tensorflow 2.1.0 from source work for m1? Would really appreciate if someone can provide any help

thanks

---

<div class="post-metadata">

**Author:** ![fkoerner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fkoerner/32/11784_2.png) [@fkoerner](https://forum.rasa.com/u/fkoerner)\
**Post date:** [May 31, 2021, 4:05pm UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/27 "2021-05-31T16:05:12Z")

</div>

If someone else has a solution please speak up, but I’m afraid building from source will not work. Problem is that M1-compatible tensorflow is version `2.4` and we have not yet upgraded rasa’s compatibility. This is on the roadmap for the near future, but I cannot say when we will get to it.

---

<div class="post-metadata">

**Author:** ![fkoerner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fkoerner/32/11784_2.png) [@fkoerner](https://forum.rasa.com/u/fkoerner)\
**Post date:** [May 31, 2021, 4:08pm UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/28 "2021-05-31T16:08:01Z")

</div>

@HarmanDotpy, I think @endreb’s solution above should work for you, though again, you wouldn’t get the compute capability of the chip, since you wouldn’t be using the optimised tensorflow.

---

<div class="post-metadata">

**Author:** ![osterhult](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/osterhult/32/12771_2.png) [@osterhult](https://forum.rasa.com/u/osterhult)\
**Post date:** [June 7, 2021, 7:42am UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/29 "2021-06-07T07:42:48Z")

</div>

Any ideas when Rasa will support Tensorflow 2.4 or more??

---

<div class="post-metadata">

**Author:** ![fkoerner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fkoerner/32/11784_2.png) [@fkoerner](https://forum.rasa.com/u/fkoerner)\
**Post date:** [June 7, 2021, 8:13am UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/30 "2021-06-07T08:13:28Z")

</div>

@osterhult, I can’t say exactly, but it is on our radar and planned. I will update this post once we support 2.4 or more

---

<div class="post-metadata">

**Author:** ![yatin.arora](https://avatars.discourse-cdn.com/v4/letter/y/f6c823/32.png) [@yatin.arora](https://forum.rasa.com/u/yatin.arora)\
**Post date:** [July 7, 2021, 10:06am UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/31 "2021-07-07T10:06:52Z")

</div>

Please update in this thread once it’s available.

---

<div class="post-metadata">

**Author:** ![labeebee](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/labeebee/32/762_2.png) [@labeebee](https://forum.rasa.com/u/labeebee)\
**Post date:** [July 9, 2021, 7:31pm UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/32 "2021-07-09T19:31:37Z")

</div>

@fkoerner Any update on the the possibility of using rasa on M1?

---

<div class="post-metadata">

**Author:** ![fkoerner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fkoerner/32/11784_2.png) [@fkoerner](https://forum.rasa.com/u/fkoerner)\
**Post date:** [July 16, 2021, 7:39am UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/33 "2021-07-16T07:39:30Z")

</div>

No updates yet, we are still ironing out some kinks. Will update this post when it’s available! 🙂

---

<div class="post-metadata">

**Author:** ![Bohemus307](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bohemus307/32/14886_2.png) [@Bohemus307](https://forum.rasa.com/u/Bohemus307)\
**Post date:** [August 6, 2021, 5:37pm UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/34 "2021-08-06T17:37:02Z")

</div>

Any new info on this? @fkoerner

---

<div class="post-metadata">

**Author:** ![fkoerner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fkoerner/32/11784_2.png) [@fkoerner](https://forum.rasa.com/u/fkoerner)\
**Post date:** [August 9, 2021, 11:19am UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/35 "2021-08-09T11:19:45Z")

</div>

@Bohemus307 you can see some updates [here](https://github.com/RasaHQ/rasa/issues/7619). We believe there is a performance decrease from `tensorflow 2.3` to `2.5` and are seeing significantly increased training times. We are in the process of isolating the behaviour so it can be communicated to `tensorflow`, but since we believe this requires fixes on their end there’s some uncertainty on when this will move forward.

edit: issue [here](https://github.com/tensorflow/tensorflow/issues/51393)

---

<div class="post-metadata">

**Author:** ![mohit.bansal](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mohit.bansal](https://forum.rasa.com/u/mohit.bansal)\
**Post date:** [October 1, 2021, 3:28am UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/36 "2021-10-01T03:28:32Z")

</div>

@fkoerner So as of now, does rasa work fine on mac M1 if I install tf 2.5 ignoring the performance?

---

<div class="post-metadata">

**Author:** ![fkoerner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fkoerner/32/11784_2.png) [@fkoerner](https://forum.rasa.com/u/fkoerner)\
**Post date:** [October 1, 2021, 8:14am UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/37 "2021-10-01T08:14:23Z")

</div>

@mohit.bansal this will not work, we haven’t released the necessary code changes.

---

<div class="post-metadata">

**Author:** ![geogiannokosta](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/geogiannokosta/32/17514_2.png) [@geogiannokosta](https://forum.rasa.com/u/geogiannokosta)\
**Post date:** [October 8, 2021, 8:06am UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/38 "2021-10-08T08:06:42Z")

</div>

@fkoerner hi there! Is there an estimated release date available?

---

<div class="post-metadata">

**Author:** ![fkoerner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fkoerner/32/11784_2.png) [@fkoerner](https://forum.rasa.com/u/fkoerner)\
**Post date:** [October 8, 2021, 5:42pm UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/39 "2021-10-08T17:42:09Z")

</div>

We just now released `2.8.9`, which uses `TensorFlow 2.6`. We expect that users will see some performance _degradation_ with the upgrade, in terms of runtime and memory usage. Please refer to [this blogpost](https://rasa.com/blog/let-s-talk-about-tensorflow-2-6/) for more information, including what to expect, and why we upgraded anyways.

---

<div class="post-metadata">

**Author:** ![Simskii](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@Simskii](https://forum.rasa.com/u/Simskii)\
**Post date:** [October 11, 2021, 2:04pm UTC](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946/40 "2021-10-11T14:04:14Z")

</div>

@fkoerner Hey, does that make it compatible with Apple Silicon? Still can’t seem to get it installed on an M1 system ☹

[Previous page](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946.md?page=1)

[Next page](https://forum.rasa.com/t/apple-m1-illegal-hardware-instruction-using-any-rasa-command/37946.md?page=3)
