We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Implementing Machine Learning with Elixir on Fly.io GPUs
185
clicks
Source: fly.io
The article details a walkthrough of using GPUs provided by Fly.io to implement a semantic search engine for the Elixir community's HexDocs. It describes the process of collecting HexDocs into a SQLite database, generating embeddings with Bumblebee.Text.TextEmbedding.text_embedding, and indexing them with hnswlib. The author illustrates setting up a Fly.io GPU-powered environment using Livebook, scripting the embedding and vector indexing in Elixir, querying the index, and returning relevant document results. The experience covers the challenges from understanding GPU workings to bug fixing in Elixir packages. Additionally, the author highlights the importance of writing results to the disk and the utility of the Erlref Slack #machine-learning channel for guidance.
Related posts
© HashMerge 2024