Skip to content

Instructions for Mac? #11

@JohannesBertens

Description

@JohannesBertens

Due diligence

  • I have done my due diligence in trying to find the answer myself.

Topic

The PyTorch implementation

Question

~/projects/personaplex/ [main] pip install moshi/.           
Processing ./moshi
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy<2.2,>=1.26 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from moshi-personaplex==0.1.0) (2.1.3)
Requirement already satisfied: safetensors<0.5,>=0.4.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from moshi-personaplex==0.1.0) (0.4.5)
Requirement already satisfied: huggingface-hub<0.25,>=0.24 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from moshi-personaplex==0.1.0) (0.24.7)
Requirement already satisfied: einops==0.7 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from moshi-personaplex==0.1.0) (0.7.0)
Requirement already satisfied: sentencepiece==0.2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from moshi-personaplex==0.1.0) (0.2.0)
Requirement already satisfied: sounddevice==0.5 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from moshi-personaplex==0.1.0) (0.5.0)
Requirement already satisfied: sphn<0.2,>=0.1.4 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from moshi-personaplex==0.1.0) (0.1.12)
Collecting torch<2.5,>=2.2.0 (from moshi-personaplex==0.1.0)
  Using cached torch-2.4.1-cp312-none-macosx_11_0_arm64.whl.metadata (26 kB)
Requirement already satisfied: aiohttp<3.11,>=3.10.5 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from moshi-personaplex==0.1.0) (3.10.11)
Requirement already satisfied: CFFI>=1.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from sounddevice==0.5->moshi-personaplex==0.1.0) (2.0.0)
Requirement already satisfied: aiohappyeyeballs>=2.3.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aiohttp<3.11,>=3.10.5->moshi-personaplex==0.1.0) (2.6.1)
Requirement already satisfied: aiosignal>=1.1.2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aiohttp<3.11,>=3.10.5->moshi-personaplex==0.1.0) (1.4.0)
Requirement already satisfied: attrs>=17.3.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aiohttp<3.11,>=3.10.5->moshi-personaplex==0.1.0) (25.4.0)
Requirement already satisfied: frozenlist>=1.1.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aiohttp<3.11,>=3.10.5->moshi-personaplex==0.1.0) (1.8.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aiohttp<3.11,>=3.10.5->moshi-personaplex==0.1.0) (6.7.0)
Requirement already satisfied: yarl<2.0,>=1.12.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aiohttp<3.11,>=3.10.5->moshi-personaplex==0.1.0) (1.22.0)
Requirement already satisfied: filelock in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub<0.25,>=0.24->moshi-personaplex==0.1.0) (3.20.2)
Requirement already satisfied: fsspec>=2023.5.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub<0.25,>=0.24->moshi-personaplex==0.1.0) (2025.12.0)
Requirement already satisfied: packaging>=20.9 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub<0.25,>=0.24->moshi-personaplex==0.1.0) (26.0)
Requirement already satisfied: pyyaml>=5.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub<0.25,>=0.24->moshi-personaplex==0.1.0) (6.0.3)
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub<0.25,>=0.24->moshi-personaplex==0.1.0) (2.32.5)
Requirement already satisfied: tqdm>=4.42.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub<0.25,>=0.24->moshi-personaplex==0.1.0) (4.67.1)
Requirement already satisfied: typing-extensions>=3.7.4.3 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from huggingface-hub<0.25,>=0.24->moshi-personaplex==0.1.0) (4.15.0)
Requirement already satisfied: sympy in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from torch<2.5,>=2.2.0->moshi-personaplex==0.1.0) (1.14.0)
Requirement already satisfied: networkx in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from torch<2.5,>=2.2.0->moshi-personaplex==0.1.0) (3.6.1)
Requirement already satisfied: jinja2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from torch<2.5,>=2.2.0->moshi-personaplex==0.1.0) (3.1.6)
Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from torch<2.5,>=2.2.0->moshi-personaplex==0.1.0) (80.9.0)
Requirement already satisfied: idna>=2.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from yarl<2.0,>=1.12.0->aiohttp<3.11,>=3.10.5->moshi-personaplex==0.1.0) (3.11)
Requirement already satisfied: propcache>=0.2.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from yarl<2.0,>=1.12.0->aiohttp<3.11,>=3.10.5->moshi-personaplex==0.1.0) (0.4.1)
Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from CFFI>=1.0->sounddevice==0.5->moshi-personaplex==0.1.0) (3.0)
Requirement already satisfied: MarkupSafe>=2.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from jinja2->torch<2.5,>=2.2.0->moshi-personaplex==0.1.0) (3.0.3)
Requirement already satisfied: charset_normalizer<4,>=2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests->huggingface-hub<0.25,>=0.24->moshi-personaplex==0.1.0) (3.4.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests->huggingface-hub<0.25,>=0.24->moshi-personaplex==0.1.0) (2.6.3)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests->huggingface-hub<0.25,>=0.24->moshi-personaplex==0.1.0) (2026.1.4)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from sympy->torch<2.5,>=2.2.0->moshi-personaplex==0.1.0) (1.3.0)
Using cached torch-2.4.1-cp312-none-macosx_11_0_arm64.whl (62.1 MB)
Building wheels for collected packages: moshi-personaplex
  Building wheel for moshi-personaplex (pyproject.toml) ... done
  Created wheel for moshi-personaplex: filename=moshi_personaplex-0.1.0-py3-none-any.whl size=86111 sha256=0b5468c3ccd6aea73b7c84a8f57d030fb015083c4f1db1b75e8b5b0ec8d18283
  Stored in directory: /private/var/folders/dc/fd5s9xc12ndg0pqh1sg9_jnc0000gp/T/pip-ephem-wheel-cache-3iyvij17/wheels/b7/62/43/fb9ac425f43dacebce3ddae3bdef7dfea5a9b8da5be53b23c1
Successfully built moshi-personaplex
Installing collected packages: torch, moshi-personaplex
  Attempting uninstall: torch
    Found existing installation: torch 2.9.1
    Uninstalling torch-2.9.1:
      Successfully uninstalled torch-2.9.1
  Attempting uninstall: moshi-personaplex
    Found existing installation: moshi-personaplex 0.1.0
    Uninstalling moshi-personaplex-0.1.0:
      Successfully uninstalled moshi-personaplex-0.1.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchvision 0.24.1 requires torch==2.9.1, but you have torch 2.4.1 which is incompatible.
Successfully installed moshi-personaplex-0.1.0 torch-2.4.1
 ~/projects/personaplex/ [main] 

Seems this failes - how can I best install this on a mac? Any way to enable the metal backend?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions