0

🤖 tldr; This blog post details the creation of "Useless Art," a project that self-hosts open-weight AI models to generate daily art. The author uses Elixir and Phoenix to build a web application that leverages the Phi3 language model (via Ollama's API) to generate art prompts, and the Stable Diffusion 1.4 model (via Bumblebee in Elixir) to generate images from those prompts. Image generation is scheduled nightly using Oban. The author chose Elixir due to personal preference and the ease of using Bumblebee for integrating with the Stable Diffusion model. While acknowledging the simplicity and potential cost-effectiveness of using APIs from established AI companies, the author highlights the feasibility and efficiency of self-hosting open models using readily available tooling.

Be the first one to comment!