brendon9x

brendon9x

Understanding the FLAME/fly runner model for container dependencies

Apologies if this is obvious, but I am trying to understand Fly, Flame and dependencies. The tl;dr is that I’m trying to scale a large amount of image captioning similar to Chris’s recent talk. The bit that is confusing me is how to install container dependencies such as FFmpeg and Ollama.

The mental model I’ve developed so far from watching talks and reading docs is as follows:

  1. KinoFlame needs to run inside Fly so that it can connect easily to the nodes
  2. Therefore, I should switch my Livebook to Remote/Fly-hosted
  3. This creates a machine using a livebook image matching the desktop version

Where my mental model ends is on FLAME runner instances. The bits confusing me:

  1. FLAME documentation implies the image is by default the same as the calling app, though it is possible to override
  2. In theory, if I want to create thumbnails using FFmpeg, I will need that installed. Outside of Livebook, I would just make this part of the application Dockerfile even if it’s only on FLAME nodes.
  3. But this doesn’t seem possible in the Livebook ecosystem because the parent image is either “Livebook” or “Livebook + CUDA”
  4. I’m also not sure how FLAME nodes find each other – the bit that is confusing is that you can specify a custom image, but then I’m not sure what the constraints are for that image? Same Elixir version? Must join a cluster? etc.

Somewhat ironically, what I need to do is pretty much exactly what Chris demo’d recently (except I’m transcribing audio as well – you’d be surprised how much better the summaries are with audio). I’m just missing a piece of the puzzle.

Thanks in advance,
Brendon.

Where Next?

Popular in Questions Top

bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
kostonstyle
Hi all I want to have a unix time, from the current time plus 1 hour. DateTime.now + 1 hour How to get it in elixir? Thanks
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New

Other popular topics Top

JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

We're in Beta

About us Mission Statement