Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64 support (Librem 5 phone etc.) #75

Open
programmin1 opened this issue Apr 8, 2021 · 4 comments
Open

arm64 support (Librem 5 phone etc.) #75

programmin1 opened this issue Apr 8, 2021 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@programmin1
Copy link

This won't install on a Librem phone...

$snap install argos-translate
error: snap "argos-translate" is not available on stable for this architecture (arm64) but exists on other architectures (amd64)

This seems a very handy library and why does it not run on arm computers?

@PJ-Finlay
Copy link
Collaborator

There isn't currently a snap build for arm, can you try installing from PyPI? If it's possible to run on arm currently is going to depend on if all of the dependencies support it.

A current major area of work is reducing dependencies to make porting to new platforms easier. I don't have a amd64 macOS port working yet but after that I want to run on arm64 and the M1 Mac.

If anyone wants to look into this I would really appreciate it, currently we rely on PyPI to load a lot of dependencies without much recourse if things break. Going forward I think we would be well served to wrangle these and just rely on CTranslate2 and SentencePiece which we can compile ourselves to any platform.

@PJ-Finlay PJ-Finlay added enhancement New feature or request help wanted Extra attention is needed labels Apr 8, 2021
@PJ-Finlay
Copy link
Collaborator

It might take a bit of work but with the new seq2seq sentence boundary detection system running on ARM is probably possible. The only dependencies needed are CTranslate2 and SentencePiece. I'm not sure if they distribute ARM binaries so you might need to compile them but it's only two dependencies. The GUI is written using PyQt and designed for desktops but you could probably get it to run on something like a Librem phone.

@xmflsct
Copy link

xmflsct commented Jun 22, 2021

Regarding CTranslate2, see OpenNMT/CTranslate2#355

@PJ-Finlay
Copy link
Collaborator

#191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants