walking-octopus / translate-ut

A translation app for Ubuntu Touch.
https://open-store.io/app/translate.walking-octopus
GNU General Public License v3.0
2 stars 4 forks source link

[feature] Use different translation engines #13

Open gbdomubpkm opened 11 months ago

gbdomubpkm commented 11 months ago

Currently Lingva is down and we can't use your app.

It would be very great if your app could evolve to a translator which can use many translation engines. For example, I like very much using https://f-droid.org/en/packages/com.bnyro.translate/ with an another android AOSP smartphone.

walking-octopus commented 11 months ago

Oh, that's very unfortunate.

Luckily, I did add support for switching to a different instance, so you might have some luck with switching to one of these:

As for other engines, there are a few choices I might implement some day in this app's rewrite:

gbdomubpkm commented 11 months ago

Thank you ! For info, the android app 'Translate you' use:

image20230729_201509316

gbdomubpkm commented 11 months ago

Luckily, I did add support for switching to a different instance, so you might have some luck with switching to one of these:

https://translate.plausibility.cloud https://lingva.lunar.icu https://translate.dr460nf1r3.org https://lingva.garudalinux.org

The four work. Did you do a new xenial .click with that ? Currently i did a webber xenial shortcut with the first instance 🙂 Thank you

walking-octopus commented 11 months ago

In the settings, I recall there was a field to change the instance. Just replace the host and it should work just fine.

gbdomubpkm commented 11 months ago

I tested. I changed with the two first instance and it doesn't work for me (Volla), even after deleted cache and data and after shut down the phone and switch on again. As if no internet in the app. Does it work for you ?

Edit : i tested in a BQ E5 HD . It doesn't work too.

log : https://dpaste.com/5F6Y9SHFP

gbdomubpkm commented 10 months ago

When will this great app be usable again?

ewdowiak commented 10 months ago

I miss the UT Translate app too. How can I help you?

Speaking as someone who has trained neural machine translation models ... Facebook's smallest NLLB-200 model would be too big for most phones. The model alone is 2.46 GB and it requires PyTorch. (Most NMT frameworks require either PyTorch or TensorFlow). As suggested, it may be possible to quantize a translation model with GGML. But no one has done so yet, so we would have to do the work ourselves.

With that in mind, I doubt that we'll be running translation models on our UT phones any time soon. Instead, the only alternative (in the short run) is to have the app make calls to a server where we would host our own model.

Assuming that nobody is willing to sponsor a dedicated GPU for our model, translation times would be slow. But if our model were small (only the most popular languages), the wait might be tolerable.

I miss the UT Translate app too. How can I help you?

aluyama commented 9 months ago

Healthy instances (Today)

@walking-octopus if @thedaviddelta is unreachable or busy, may be you can maintain Lingva project too https://github.com/thedaviddelta/lingva-translate/issues/176

ewdowiak commented 9 months ago

Thank you! :-)

One note to add. When entering the instance in the app's settings, one must include "/api/v1" at the end. For example:
https://lingva.garudalinux.org/api/v1

ewdowiak commented 9 months ago

One more translation engine. My own: https://translate.napizia.com/api/v1/

Ora pozzu traduciri frasi in sicilianu cu l'app. Grazzi! :-)

gbdomubpkm commented 9 months ago

@ewdowiak

/api/v1/

Thanks for the reminder !! I had forgotten that ! Lingva instances actually work well in Translate-UT.