Erik Bernhardsson is the founder and CEO of Modal, a cloud platform for running data, AI and machine learning applications on its own serverless infrastructure. Before Modal, Bernhardsson ran the technology team at Better.com from 2015 to 2021 and spent six years at Spotify, where Bernhardsson built the first version of its music recommendation system and created the open-source Annoy library and, with Elias Freider, the Luigi workflow engine.12345
At a glance
- Current role
- Founder and CEO
- Company
- Modal
- Sector
- Company
- Work listed
- 2
- Sources cited
- 8
- Profile reviewed
Career
Bernhardsson spent six years at Spotify, first managing its Analytics team and then building up and managing the machine learning team. Bernhardsson built the first version of Spotify's music recommendations, including features such as Related Artists, Radio and Discover Weekly.1
From February 2015 to January 2021, Bernhardsson ran the technology team at Better.com, a mortgage company. Bernhardsson then founded Modal with Akshat Bubna; Modal's blog lists Bernhardsson as CEO and co-founder, and the company describes building its own file system, container runtime, scheduler and image builder to make cloud development faster.123
Open-source work and writing
At Spotify, Bernhardsson open-sourced Annoy, a library for approximate nearest neighbor search that Spotify used to find similar users and items for music recommendations, and co-created Luigi, a workflow engine for batch pipelines. Bernhardsson writes a blog, has given talks on approximate nearest neighbors, Luigi and machine learning for music recommendations, and co-organizes the NYC Machine Learning meetup.451
In May 2026 Bernhardsson co-authored, with Charles Frye, Jonathon Belotti and Akshat Bubna, Modal's engineering post on how the company achieved serverless GPUs, covering idle GPU buffers, a custom filesystem for lazily loading container images, and related techniques.7
Work and contributions
Annoy Open-source code
Built Annoy, a C++/Python library for approximate nearest neighbor search in high-dimensional spaces, during a Spotify hack week; Bernhardsson is the package's listed author on PyPI.481
Luigi Open-source code
Built Luigi, a Python workflow engine for task scheduling and dependency resolution, at Spotify mainly with Elias Freider; it was open-sourced in late 2012.51
Timeline
- Luigi, built at Spotify mainly by Bernhardsson and Elias Freider, was open-sourced.5
- Published the first release of Annoy on PyPI.8
- Began running the technology team at Better.com.1
- Left Better.com after six years leading its technology team.1
- Co-authored Modal's engineering post on achieving serverless GPUs.7
Other documented roles
Roles the sources document that are not confirmed as current.
Where they work
- Modal 3 people in the wiki
Related people
- Akshat BubnaAlso at Modal
- Thomas J. FanAlso at Modal
- 0xSeroInference and serving · Developer tools
- Piotr WilkinInference and serving · Developer tools
- Davide EynardInference and serving · Developer tools
- Aldehir RojasInference and serving · Developer tools
- Erik GafniDeveloper tools · Inference and serving
- Dane KnechtInference and serving · Developer tools
- Olivier ChafikDeveloper tools · Inference and serving
- Tim DavisDeveloper tools · Inference and serving
Suggest a correction or removal
Profiles cover public professional work only, and each statement cites a source. If something is out of date, missing or wrong, tell us and link a source. People can also ask for their profile to be corrected or removed.
References
8 sources · profile reviewed Oct 22, 2026 · data updated Oct 22, 2026