AI People Wiki

Builders & open source

Erik Bernhardsson

Founder and CEO, Modal

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

  1. Luigi, built at Spotify mainly by Bernhardsson and Elias Freider, was open-sourced.5
  2. Published the first release of Annoy on PyPI.8
  3. Began running the technology team at Better.com.1
  4. Left Better.com after six years leading its technology team.1
  5. Co-authored Modal's engineering post on achieving serverless GPUs.7

Other documented roles

Roles the sources document that are not confirmed as current.

  • Ran the technology team (February 2015 to January 2021), Better.com1
  • Managed the Analytics team and then the machine learning team, Spotify1

Where they work

  • Modal 3 people in the wiki

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

  1. About · Erik BernhardssonErik Bernhardsson · Official page · accessed Oct 22, 2026
  2. Modal — CompanyModal · Official page · accessed Oct 22, 2026
  3. Modal Blog (author listings)Modal · Official page · accessed Oct 22, 2026
  4. spotify/annoy READMEspotify/annoy (GitHub repository) · Repository · accessed Oct 22, 2026
  5. spotify/luigi READMEspotify/luigi (GitHub repository) · Repository · accessed Oct 22, 2026
  6. erikbern (Erik Bernhardsson) on GitHubGitHub · Official page · accessed Oct 22, 2026
  7. How we achieved truly serverless GPUs (Modal Blog)Modal · Announcement · published May 12, 2026 · accessed Oct 22, 2026
  8. annoy on PyPI (package metadata and release history)Python Package Index · Release notes · accessed Oct 22, 2026