bumblebee VS broadway

Compare bumblebee vs broadway and see what are their differences.

bumblebee

Pre-trained Neural Network models in Axon (+ 🤗 Models integration) (by elixir-nx)

broadway

Concurrent and multi-stage data ingestion and data processing with Elixir (by dashbitco)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
bumblebee broadway
10 11
1,213 2,310
3.0% 1.5%
9.1 6.0
18 days ago 2 months ago
Elixir Elixir
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

bumblebee

Posts with mentions or reviews of bumblebee. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-18.
  • Implementing Natural Conversational Agents with Elixir
    4 projects | news.ycombinator.com | 18 Apr 2024
    Despite some limitations, you will probably find Bumblebee (https://github.com/elixir-nx/bumblebee) interesting.

    "Bumblebee provides pre-trained Neural Network models on top of Axon. It includes integration with HuggingFace Models, allowing anyone to download and perform Machine Learning tasks with few lines of code"

  • Running Open-Source AI Models Locally with Ruby
    2 projects | news.ycombinator.com | 5 Feb 2024
    That's not bad at all!

    There is also Nx and Bumblebee in Elixir land - it really changes the how one approaches running models in production. The fact that one can put together a service (or local process) running any model published to hugging face in a couple of lines of code is amazing.

    [0] https://github.com/elixir-nx/bumblebee/blob/main/examples/ph...

    [1] https://gist.github.com/toranb/8be408eaa97d5a5b795aec7d7fbee...

  • An example of semantic search with Elixir and Bumblebee
    1 project | dev.to | 13 Dec 2023
    Theses notes describes how this can be done with the Elixir language and Nx, Axon (Nx-powered Neural Network library) and Bumblebee which provides pre-trained Neural Network models.
  • Elixir Livebook is a secret weapon for documentation
    12 projects | news.ycombinator.com | 6 Aug 2023
    Apart from running code inside a "markdown" file, livebook can do much more. You have Smart cells to show charts, run sql queries against a db, run Neural Network tasks such as Image-To-Text generation using Bumblebee[1], etc. It is collaborative as well.

    [1] https://github.com/elixir-nx/bumblebee

  • “Machine Learning in Elixir” (Beta Book)
    1 project | news.ycombinator.com | 19 Jul 2023
    Elixir is an increasingly interesting platform for ML (see Nx, Axon, and more recently BumbleBee https://github.com/elixir-nx/bumblebee). I'm pretty happy to see this book released in beta.
  • Data wrangling in Elixir with Explorer, the power of Rust, the elegance of R
    7 projects | news.ycombinator.com | 14 Apr 2023
    José from the Livebook team. I don't think I can make a pitch because I have limited Python/R experience to use as reference.

    My suggestion is for you to give it a try for a day or two and see what you think. I am pretty sure you will find weak spots and I would be very happy to hear any feedback you may have. You can find my email on my GitHub profile (same username).

    In general we have grown a lot since the Numerical Elixir effort started two years ago. Here are the main building blocks:

    * Nx (https://github.com/elixir-nx/nx/tree/main/nx#readme): equivalent to Numpy, deeply inspired by JAX. Runs on both CPU and GPU via Google XLA (also used by JAX/Tensorflow) and supports tensor serving out of the box

    * Axon (https://github.com/elixir-nx/axon): Nx-powered neural networks

    * Bumblebee (https://github.com/elixir-nx/bumblebee): Equivalent to HuggingFace Transformers. We have implemented several models and that's what powers the Machine Learning integration in Livebook (see the announcement for more info: https://news.livebook.dev/announcing-bumblebee-gpt2-stable-d...)

    * Explorer (https://github.com/elixir-nx/explorer): Series and DataFrames, as per this thread.

    * Scholar (https://github.com/elixir-nx/scholar): Nx-based traditional Machine Learning. This one is the most recent effort of them all. We are treading the same path as scikit-learn but quite early on. However, because we are built on Nx, everything is derivable, GPU-ready, distributable, etc.

    Regarding visualization, we have "smart cells" for VegaLite and MapLibre, similar to how we did "Data Transformations" in the video above. They help you get started with your visualizations and you can jump deep into the code if necessary.

    I hope this helps!

  • Distributed² Machine Learning Notebooks with Elixir and Livebook
    7 projects | news.ycombinator.com | 11 Apr 2023
    The current pipeline expects PCM audio and, if data is coming from a microphone in the browser, you can do the initial processing and conversion in the browser (see the JS in this single file Phoenix app speech to text example [0]).

    On the other hand, if you expect a variety of formats (mp3, wav, etc), then shelling out or embedding ffmpeg is probably the quickest path to achieve something. The Membrane Framework[1] is an option here too which includes streaming. I believe Lars is going to do a cool demo with Membrane at ElixirConf EU next week.

    [0]: https://github.com/elixir-nx/bumblebee/blob/main/examples/ph...

    [1]: https://membrane.stream/

  • Do I need to use Elixir from Go perspective?
    5 projects | /r/elixir | 9 Jan 2023
    Outside of that, Elixir can be used for data pipelines, audio-video processing, and it is making inroads on Machine Learning with projects like Livebook, Nx, and Bumblebee.
  • Riffusion – Stable Diffusion fine-tuned to generate Music
    7 projects | news.ycombinator.com | 15 Dec 2022
  • Can bumblebee be used in gleam?
    1 project | /r/gleamlang | 8 Dec 2022

broadway

Posts with mentions or reviews of broadway. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-09.
  • Switching to Elixir
    11 projects | news.ycombinator.com | 9 Nov 2023
    You can actually have "background jobs" in very different ways in Elixir.

    > I want background work to live on different compute capacity than http requests, both because they have very different resources usage

    In Elixir, because of the way the BEAM works (the unit of parallelism is much cheaper and consume a low amount of memory), "incoming http requests" and related "workers" are not as expensive (a lot less actually) compared to other stacks (for instance Ruby and Python), where it is quite critical to release "http workers" and not hold the connection (which is what lead to the creation of background job tools like Resque, DelayedJob, Sidekiq, Celery...).

    This means that you can actually hold incoming HTTP connections a lot longer without troubles.

    A consequence of this is that implementing "reverse proxies", or anything calling third party servers _right in the middle_ of your own HTTP call, is usually perfectly acceptable (something I've done more than a couple of times, the latest one powering the reverse proxy behind https://transport.data.gouv.fr - code available at https://github.com/etalab/transport-site/tree/master/apps/un...).

    As a consequence, what would be a bad pattern in Python or Ruby (holding the incoming HTTP connection) is not a problem with Elixir.

    > because I want to have state or queues in front of background work so there's a well-defined process for retry, error handling, and back-pressure.

    Unless you deal with immediate stuff like reverse proxying or cheap "one off async tasks" (like recording a metric), there also are solutions to have more "stateful" background works in Elixir, too.

    A popular background job queue is https://github.com/sorentwo/oban (roughly similar to Sidekiq at al), which uses Postgres.

    It handles retries, errors etc.

    But it's not the only solution, as you have other tools dedicated to processing, such as Broadway (https://github.com/dashbitco/broadway), which handles back-pressure, fault-tolerance, batching etc natively.

    You also have more simple options, such as flow (https://github.com/dashbitco/flow), gen_stage (https://github.com/elixir-lang/gen_stage), Task.async_stream (https://hexdocs.pm/elixir/1.12/Task.html#async_stream/5) etc.

    It allows to use the "right tool for the job" quite easily.

    It is also interesting to note there is no need to "go evented" if you need to fetch data from multiple HTTP servers: it can happen in the exact same process (even: in a background task attached to your HTTP server), as done here https://transport.data.gouv.fr/explore (if you zoom you will see vehicle moving in realtime, and ~80 data sources are being polled every 10 seconds & broadcasted to the visitors via pubsub & websockets).

  • My Love Letter to Rails (and Ruby) – Or, Why RoR Isn't Dead Yet
    6 projects | news.ycombinator.com | 24 Oct 2023
    While in general you are right, I'd strongly say "it depends".

    The raw BEAM ecosystem (things that come ootb) is huge in itself, many things that would require additional machinery/libs/infra/... in other tech stacks are simply covered right away with stuff like OTP.

    The machine-learning ecosystem is kinda thriving, not fully at python levels yet but catching up rapidly and already outshining most other tech stacks - especially factoring in again the BEAM underpinnings that allow stuff like https://elixir-broadway.org/ for data pipelines (which requires a lot of additional python machinery to even replicate), and I'd argue that iE LiveBook already is a much better story than Jupyter notebooks.

    The web framework story is already excellent, as you mentioned with Phoenix/Ecto/Liveview/Oban/... which are kinda best-of-breed in the industry right now. Not only for the first few days into a project (lots of tech stacks are compelling here for one reason or another), but the scaling up capabilities are flat out amazing, you can get _so much_ mileage out of the stack before even looking into anything like k8s or whatever and can focus on iteration features instead of spending time in optimizations/infra/... even when traffic peaks occur.

    What may be missing are some adjacent libs or QoL in many smaller places. But its getting better for a while... we now have a great storybook reimplementation that doesn't suck ass with nodejs ecosystem craziness/provisioning/slowness like the real storybook. We have usable solutions for i18n or auth that may not be fancy but do the job. And since being Elixir, many missing things are just a few macros away if you need it. Especially the last 2 years have been quite a ride, and I was a phoenix user since probably 1.2 years back, but recently things are stepping up.

    Right now I am eagerly waiting for BeaconCMS to mature enough, thats an absolute pain point to get solved since nearly every web platform at some point needs some CMS style free-style pages and right now I have to always implement an integration to some external system... can't wait to have this as a lib mounted in my app like everything else. Oh, and types of course, one of the few points that keep people from trying elixir and I (coming from Rust, Go, Typescript) learned to love. But it looks like we're getting there.

  • Unpacking Elixir: Concurrency
    9 projects | news.ycombinator.com | 25 Aug 2023
    > In other words, there is a subset of distributed problems that Distributed Erlang solves very well out of the box: homogeneous systems working on ephemeral data. And some of the scenarios above are very common.

    Speaking of which, I'm looking forward to using Broadway [1] in a new project here in my company. Here, people are using an enterprise integration engine specialized in the healthcare space [2], with built-in single-branch version control and all actions going through the UI.

    As I come from a background of several years with Ruby on Rails, I really hope to convince people to use this great library your company created, since RoR is severely lacking when handling heavy concurrency like when gluing multiple APIs in complex workflows. Software engineers are going to love it, but integration analysts are used to IDEs with GUIs, so we'll need to create a pretty admin dashboard to convince them to switch.

    [1] https://elixir-broadway.org/

  • Event Based System with Localstack (Elixir Edition): Notifing to SQS when a file its uploaded
    2 projects | dev.to | 23 Aug 2023
    To listen a message broker the most used library is broadway, this library helps to create GenServer's that listens a specific queue and process message by message (or by chunks).
  • Do I need to use Elixir from Go perspective?
    5 projects | /r/elixir | 9 Jan 2023
    Outside of that, Elixir can be used for data pipelines, audio-video processing, and it is making inroads on Machine Learning with projects like Livebook, Nx, and Bumblebee.
  • Como automatizamos a avaliação de projetos com Github Actions e o Broadway do Elixir.
    2 projects | dev.to | 8 Sep 2022
  • Controlling Elixir supervisors at runtime with feature flags
    4 projects | dev.to | 22 Jun 2022
    Like many applications, our infrastructure relies on queues to decouple various components. In our system we use AWS Kinesis as a data stream, consumed by Broadway consumers for some critical parts of our infrastructure. We have found that sometimes our Broadway consumers for AWS Kinesis fail in ways that do not gracefully recover when they crash. For example, each Kinesis shard has its own supervision tree managed by the Kinesis Broadway consumer. We found that if a shard consumer experienced a crash-inducing error, the shard would not restart and the crash would not cascade up to the Broadway producer. While we have worked on contributing to this consumer library, we decided that it would be important to have runtime control over stopping and starting consumers to respond to such failures just in case.
  • Um guia para uma arquitetura orientada a eventos em Elixir
    1 project | dev.to | 31 May 2022
  • A Guide to Event-Driven Architecture in Elixir
    2 projects | dev.to | 17 May 2022
    If you are looking for an even higher-level abstraction, Broadway is a good starting point. It is built on top of GenStage and offers several additional features, including consuming data from external queues like Amazon SQS, Apache Kafka, and RabbitMQ.
  • How we sync Stripe to Postgres
    1 project | dev.to | 8 Jul 2021
    This was a great excuse to use Elixir's Broadway. A Broadway pipeline consists of one producer and one or more workers. The producer is in charge of producing jobs. The workers consume and work those jobs, each working in parallel. Broadway gives us a few things out of the box:

What are some alternatives?

When comparing bumblebee and broadway you can also consider the following projects:

membrane_transcription - Prototype transcription for Membrane

oban - đź’Ž Robust job processing in Elixir, backed by modern PostgreSQL and SQLite3

sd-webui-riffusion - Riffusion extension for AUTOMATIC1111's SD Web UI

kafka_ex - Kafka client library for Elixir

lively

exq - Job processing library for Elixir - compatible with Resque / Sidekiq

musika - Fast Infinite Waveform Music Generation

kaffe - An opinionated Elixir wrapper around brod, the Erlang Kafka client, that supports encrypted connections to Heroku Kafka out of the box.

hitchstory - Type-safe YAML integration tests. Tests that write your docs. Tests that rewrite themselves.

conduit - A message queue framework, with support for middleware and multiple adapters.

livebook - Automate code & data workflows with interactive Elixir notebooks

amqp - Idiomatic Elixir client for RabbitMQ