pejrich

pejrich

Question from a ML newb about if I can run something on Bumblebee

Ok, so I have an app that is currently utilizing 3 ML models. One is called Spacy, I have a feeling this is the least likely to be possible, since I think it’s a lot of Python code wrapped around a model, rather than just a model. The other two are EasyNMT, using OpusMT’s model. And Simalign, which is currently using Bert, specifically bert-base-multilingual-cased.

Despite the fact that i’ve been working with these models for about 6 months, I’m still not always 100% sure I understand the delineation between Python-space and model-space. But correct me if I’m wrong here.

Simalign is ~230 LOC wrapped around BERT. Is there any reason I can’t port that 230 LOC to Elixir, and wrap BERT from Bumblebee, and cut out Python all together? It looks like the code is using Bert mostly for 1. Word embeddings. 2. Tokenization

EasyNMT is about 500 LOC, but I don’t think my code relies on all of it. I’m only calling one main translate function. Would there be any way to pull this into Elixir as well, or am I misunderstanding how Bumblebee fits into all of this?

FYI, my goal here is to minimize my Python footprint for a few reasons. I much prefer, and am much more comfortable with Elixir(both in my ability to write it, and my ability to trust it to do what I need, when I need it, and do it well). I’ve been working on this app for about 9 months, and i’ve not enjoyed the Python piece the whole time, now that I’m coming to deploy it, the Python part has been even more of a nightmare, and even on a GPU instance, it’s quite slow(surprisingly it’s faster on my M1, than a CUDA GPU, except for the EasyNMT piece, so I’m thinking if possible, just bring it all into Elixir, except Spacy, I think that would be a larger lift, but let me know if I’m wrong about that one.)

Where Next?

Popular in Questions Top

nobody
How to bind a phoenix app to a specific ip address? could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: The documentation above suggests that while ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New

Other popular topics Top

chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54250 245
New

We're in Beta

About us Mission Statement