AI People Wiki

Builders & open source

Nicolas Hug

ML engineer, working on PyTorch, Meta

  • ML engineer, working on PyTorch, Meta AI1

Nicolas Hug is an ML engineer working on PyTorch at Meta AI. The PyTorch governance documentation lists Hug as a maintainer of TorchVision, the computer vision library of datasets, transforms and models, and of TorchCodec, which handles media decoding and encoding for PyTorch. Hug is also listed among the emeritus maintainers of scikit-learn, and Hug's GitHub account hosts Surprise, a Python toolkit for building and analyzing recommender systems.12345

At a glance

Current role
ML engineer, working on PyTorch
Company
Meta
Sector
Company
Work listed
3
Sources cited
12
Profile reviewed

Open-source work

Hug describes the current work as part of the PyTorch team at Meta, focused on preprocessing and performance, and as the primary developer of TorchVision and TorchCodec. PyTorch's governance documentation lists Hug as a maintainer of both libraries: TorchVision provides datasets, transforms and models for computer vision, and TorchCodec handles media decoding and encoding for PyTorch.6234

Before joining Meta, Hug was a postdoc and part of scikit-learn's core development team for several years, and is now listed among its emeritus maintainers. In scikit-learn 0.21 Hug added the histogram-based gradient boosting estimators HistGradientBoostingClassifier and HistGradientBoostingRegressor, an implementation inspired by LightGBM.657

During a PhD, Hug developed Surprise, a Python library for building and analyzing recommender systems, which Hug described in a 2020 paper in the Journal of Open Source Software.68

Teaching and writing

Hug's blog explains technical topics in machine learning, including a four-part 2017 series on matrix factorization for recommendation, 2019 posts on gradient boosting and on Cython, and a 2022 deep dive into the internals of the FFCV data-loading library.9

Work and contributions

  • TorchVision Open-source code

    Listed as a TorchVision maintainer on the PyTorch Governance "Maintainers" page; TorchVision provides datasets, model architectures and image transformations for computer vision.21310

  • TorchCodec Open-source code

    Listed as a TorchCodec maintainer on the PyTorch Governance "Maintainers" page; TorchCodec provides media decoding and encoding for PyTorch.21411

  • scikit-learn Open-source code

    Listed among the emeritus maintainers on the scikit-learn About page.512

Timeline

  1. Began a four-part blog series on matrix factorization for recommendation.9
  2. Added histogram-based gradient boosting estimators to scikit-learn in version 0.21.7
  3. Published a blog post explaining gradient boosting as gradient descent.9
  4. Published a Journal of Open Source Software paper on the Surprise recommender systems library.8
  5. Published a deep dive into the internals of the FFCV data-loading library.9

Where they work

  • Meta 106 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

12 sources · profile reviewed Oct 21, 2026 · data updated Oct 21, 2026

  1. NicolasHug (Nicolas Hug) on GitHubGitHub · Official page · accessed Oct 21, 2026
  2. PyTorch Governance | Maintainers (PyTorch 2.14 documentation)PyTorch · Documentation · accessed Oct 21, 2026
  3. pytorch/vision README (datasets, transforms and models for computer vision)pytorch (GitHub repository) · Repository · accessed Oct 21, 2026
  4. meta-pytorch/torchcodec README (media decoding and encoding for PyTorch)meta-pytorch (GitHub repository) · Repository · accessed Oct 21, 2026
  5. scikit-learn — About us (maintainers and history)scikit-learn · Documentation · accessed Oct 21, 2026
  6. About — Nicolas HugNicolas Hug · Official page · accessed Oct 21, 2026
  7. Release Highlights and changelog for scikit-learn 0.21scikit-learn · Release notes · accessed Oct 21, 2026
  8. Surprise: A Python library for recommender systemsJournal of Open Source Software · Paper · published Aug 5, 2020 · accessed Oct 21, 2026
  9. Blog — Nicolas HugNicolas Hug · Official page · accessed Oct 21, 2026
  10. pytorch/vision LICENSE (BSD 3-Clause License)pytorch (GitHub repository) · License · accessed Oct 21, 2026
  11. meta-pytorch/torchcodec LICENSE (BSD 3-Clause License)meta-pytorch (GitHub repository) · License · accessed Oct 21, 2026
  12. scikit-learn/scikit-learn COPYING (BSD 3-Clause License)scikit-learn (GitHub repository) · License · accessed Oct 21, 2026