Giter Club home page Giter Club logo

rasa-apple-silicon's Introduction

Rasa on Macs with Apple Silicon (Native / Docker)

As of March 2022, Rasa is not officially supported on Macs with ARM-based Apple Silicon processors. The solution described here should only be used as a workaround until official support arrives. It has been tested on a Macbook Pro with M1 Processor.

Docker, and native installation is supported. In both cases an Anaconda environment is created in which as many dependencies as possible are installed via pip based on the pyproject.toml of a specific Rasa release. The remaining packages for which no arm64/aarch64 wheels are available on PyPI are fetched from Anaconda channels (conda-forge, noarch, and apple) or from Github repositories that offer precompiled wheels.

At the time of writing, the only dependency that could neither be satisfied from Pip nor Anaconda is tensorflow-text. Therefore, projects that rely on Rasa features utilizing this package will not work.

Getting Started

Docker

The easiest way to get started is by using the Docker image.

docker run -it --rm khalosa/rasa-aarch64:latest

Choose one of the available Rasa versions, and store it in an environment variable:

Alternatively, if you want to build the image yourself:

./scripts/build-docker.sh

Native Installation

If you want to run Rasa natively on your Mac with GPU-support, you need to have these tools installed:

  • Miniforge, arm64 (Apple Silicon) version
  • Python 3 (pip, and python commands must point to a Python3 installation)

Now run this snippet:

# set rasa version
export RASA_VERSION="3.0.8"

# install the small library in this repo
pip install -e ./dependency-converter

# use it to create a conda env file
python -m rasa_dc --platform native --rasa_version $RASA_VERSION

# create a new conda environment from the generated file
conda env create --name rasa-${RASA_VERSION} --file=output/rasa_${RASA_VERSION}_native_env.yml

# finally install Rasa without dependencies into the newly created conda environment
$HOME/miniforge3/envs/rasa-$RASA_VERSION/bin/pip install --no-deps rasa==$RASA_VERSION

Now you should be able to activate the created environment:

conda activate rasa-${RASA_VERSION}

Verify that its working by executing rasa init.

rasa-apple-silicon's People

Contributors

fritzt0 avatar khalo-sa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.