GithubHelp home page GithubHelp logo

Comments (3)

marty1885 avatar marty1885 commented on May 23, 2024 1

Thanks for the help. Figured out the issues.

  1. Must build with Python 3.10. Pybind hasn't support Python 3.11 yet.
  2. Must install with python -m pip install .

So the following commands work for me using micromamba (should with conda too).

micromamba create -n useful
micromamba activate useful
micromamba install python==3.10
cd /path/to/useful-transofrmers
python -m pip install .
taskset -c 4-7 python -m useful_transformers.transcribe_wav

Alternatively do the following horrible thing to avoid needing to package each time code change

# Setup your conda/mamba env
# ...
pip install -e .
mkdir useful_transformers
ln -s ./_skbuild/linux-aarch64-3.10/cmake-build/examples/whisper/pybind_whisper.cpython-310-aarch64-linux-gnu.so useful_transformers/pybind_whisper.cpython-310-aarch64-linux-gnu.so 
taskset -c 4-7 python -m useful_transformers.transcribe_wav

from useful-transformers.

RoboMagus avatar RoboMagus commented on May 23, 2024

I'm expecting that the setup would've shown errors indicating a pybind issue.
What worked for me is to install the unlisted dependencies prior to the dev instalation:

pip install pybind11[global] torch
pip install -e .

from useful-transformers.

keveman avatar keveman commented on May 23, 2024

@marty1885 The following sequence of commands worked well for me:

$ python -m venv le_us
$ source le_us/
$ source le_us/bin/activate
$ cd useful-transformers/
$ python -m pip install .
$ taskset -c 4-7 python -m useful_transformers.transcribe_wav

This is what I do for local development myself.
If installing the whl file (as specified in README.md) worked for you, then you can build the whl file and install it explicitly as follows:

$ python -m pip wheel .
$ python -m pip install useful_transformers-0.1-cp310-cp310-linux_aarch64.whl

(Note, your exact python version determines the name of the .whl file, so use the one that gets built on your machine.)

from useful-transformers.

Related Issues (20)

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.