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:
- KinoFlame needs to run inside Fly so that it can connect easily to the nodes
- Therefore, I should switch my Livebook to Remote/Fly-hosted
- 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:
- FLAME documentation implies the image is by default the same as the calling app, though it is possible to override
- 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.
- But this doesn’t seem possible in the Livebook ecosystem because the parent image is either “Livebook” or “Livebook + CUDA”
- 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.
Popular in Questions
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
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
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
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors:
[WARN] - (starship::utils): Executing command ...
New
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
Hello!
Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
Other popular topics
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
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
Hi everyone,
One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors:
[WARN] - (starship::utils): Executing command ...
New
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
Using vs code and installed ElixirLS: support and debugger.
And I got an error popped up on start up says
Failed to run ‘elixir’ comma...
New
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine)
This is a plugin that adds support for Elixir to JetBrains IntelliJ...
New
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar.
I p...
New
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!)
This post collects co...
New








