As an open-source developer, the question I hear the most

Seewar
7 min readNov 28, 2020

In the field of AI, there are many reasons why opensource is key. First, the code for building models does not give away any competitive advantage because the value comes from models+your own data. Second, it lets the whole world help you find and correct mistakes. Imagine building a house where every architect in the world can contribute one tiny idea. But more importantly, AI is a really hard problem to solve.

The problems in the field cannot be solved by any one individual or group.

In AI we opensource everything from datasets to models to frameworks that give users incredible sophistication to build machine learning models. As the original creator of one of these frameworks (PyTorch Lightning), I’ve had the fortune to see the beauty of opensource from the inside.

It’s all about the community.

PyTorch Lightning has its humble beginnings as a project that I developed during the first few years of my Ph.D. at NYU CILVR and later at Facebook AI Research. At NYU it gained the powers of rapid iteration and standardization that makes Lightning a pleasure to work with today — it standardizes AI research code so everyone’s code can be formatted the same way, and thus it becomes more readable and reproducible. At FAIR it learned how to train massive neural networks across hundreds of GPUs.

But had I remained the only developer of the project it would be nowhere near where it is today as a quickly rising favorite for deep learning research. Our first non-facebook contributor Jirka, forced much-needed formatting and structuring to the internals.

But then something magical happened. Tens of thousands of people adopted Lightning to build super-advanced AI models. But the magic is not the adoption but how the community worked with Lightning. Lightning became a living, breathing organism where many of the world’s top AI researchers and PhD students started contributing their own features back.

Lightning became the AI research community’s framework.

What exists today is a highly-tuned, rigorously tested a world-class framework for building AI models. It helps Ph.D. students create new papers, research scientists try insanely creative ideas and data scientists build complex scalable AI production systems.

Lightning is more than a framework now, it’s a community.

The opensource core values.

Building on top of previous work is how we advance. (credit: pxhere with permission).

Opensource is centered around honesty, transparency, and building on top of each other’s work.

I’ve always considered myself to be an honest person with a strong internal moral compass. But as I learned as a young trainee undergoing US Navy SEAL training in 2007, what you believe your internal compass differs from what you actually do in situations with real consequences. SEAL training taught me a few hard lessons along the way. Integrity is what you do when no one is looking. Courage is how you react when every muscle and mental fiber of your body is aching for you to quit.

https://www.acc-d.org/rdx/hub/m-v-j-box.html
https://www.suncarecentral.com/sites/webform/m-v-j-boxe.html
https://www.cbre-ea.com/sites/webform/m-v-j.html
https://www.acc-d.org/rdx/hub/S-v-A.html
https://www.suncarecentral.com/sites/webform/S-v-A-ncaa.html
https://www.cbre-ea.com/sites/webform/S-v-A-nc.html
https://www.acc-d.org/rdx/hub/M-v-O.html
https://www.suncarecentral.com/sites/webform/M-v-O-nca.html
https://www.cbre-ea.com/sites/webform/M-v-O-na.html
https://www.acc-d.org/rdx/hub/S-v-ncaa.html
https://www.suncarecentral.com/sites/webform/S-v-nc.html
https://www.cbre-ea.com/sites/webform/S-v-B.html
https://www.suncarecentral.com/ntv/tr-vs-app-st-li.html
https://www.suncarecentral.com/ntv/tr-vs-app-st-li0.html
https://www.suncarecentral.com/ntv/Nor-Tex-vs-UT-lv.html
https://www.suncarecentral.com/ntv/Nor-Tex-vs-UT-lv-tv.html
https://www.suncarecentral.com/ntv/Roy-v-Mike-figh.html
https://www.suncarecentral.com/ntv/Roy-v-Mike-figh-0.html
https://www.suncarecentral.com/sites/vfx/Coastal-Carolina-v-Texas-State.html
https://www.suncarecentral.com/sites/vfx/C-C-v-Te-S.html
https://www.suncarecentral.com/sites/vfx/P-v-C.html
https://www.suncarecentral.com/sites/vfx/Pitts-v-Clem.html
https://www.suncarecentral.com/sites/vfx/Louisville-v-Boston-College-TV.html
https://www.suncarecentral.com/sites/vfx/L-v-B-C_00.html
https://www.suncarecentral.com/sites/vfx/Mike-Tyson-v-Roy-Jones-FiGht_01.html
https://www.suncarecentral.com/sites/vfx/Mike-Tyson-v-Roy-Jones.html
https://www.suncarecentral.com/sites/vfx/Tyso-v-Jone.html
https://www.suncarecentral.com/sites/vfx/Tyson-v-Jones-Mvc2.html
https://www.suncarecentral.com/sites/vfx/Tyson-v-Jones-Mvc0.html
https://www.cbre-ea.com/sites/files/C-C-v-Te-S-ft.html
https://www.cbre-ea.com/sites/files/Pitts-v-Clem-2020.html
https://www.cbre-ea.com/sites/files/L-v-B-C.html
https://www.cbre-ea.com/sites/files/Mike-Tyson-v-Roy-Jones-FiGht.html
https://www.cbre-ea.com/sites/files/Tyson-v-Jones-Mvc1.html
https://www.acc-d.org/rdx/vfx/Coas-Caro-v-Tex-St.html
https://www.acc-d.org/rdx/vfx/Pitts-v-Clem-tv.html
https://www.acc-d.org/rdx/vfx/Louisville-v-Boston-College.html
https://www.acc-d.org/rdx/vfx/Mike-Tyson-v-Roy-Jones-FiGht_00.html
https://www.acc-d.org/rdx/vfx/Tyson-v-Jones-Mvc6.html
https://www.acc-d.org/rdx/vfx/Tyson-v-Jones-Mvc5.html
https://www.acc-d.org/rdx/vfx/Tyson-v-Jones-Mvc4.html
https://www.acc-d.org/rdx/vfx/Tyson-v-Jones-Mvc3.html
https://www.acc-d.org/dol/tr-vs-app-st-li1.html
https://www.acc-d.org/dol/tr-vs-app-st-li2.html
https://www.acc-d.org/dol/Nor-Tex-vs-UT-lv-tv1.html
https://www.acc-d.org/dol/Nor-Tex-vs-UT-lv-tv2.html
https://www.acc-d.org/dol/Roy-v-Mike-figh-1.html
https://www.acc-d.org/dol/Roy-v-Mike-figh-2.html
https://www.acc-d.org/dol/m-v-j.html
https://www.acc-d.org/dol/m-v-j1.html
https://www.acc-d.org/dol/m-v-j2.html
https://www.cbre-ea.com/sites/snf/tr-vs-app-st-li3.html
https://www.cbre-ea.com/sites/snf/tr-vs-app-st-li4.html
https://www.cbre-ea.com/sites/snf/Nor-Tex-vs-UT-lv-tv3.html
https://www.cbre-ea.com/sites/snf/Nor-Tex-vs-UT-lv-tv4.html
https://www.cbre-ea.com/sites/snf/Nor-Tex-vs-UT-lv-tv5.html
https://www.cbre-ea.com/sites/snf/Roy-v-Mike-figh-3.html
https://www.cbre-ea.com/sites/snf/Roy-v-Mike-figh-4.html
https://www.cbre-ea.com/sites/files/Mami-v-kron-Liv_04.html
https://www.cbre-ea.com/sites/files/Mami-v-kron-Liv_05.html
https://www.cbre-ea.com/sites/files/Aub-v-Ala-xyz3.html
https://www.cbre-ea.com/sites/files/gers-v-Pur-tvs03.html
https://www.cbre-ea.com/sites/files/Mik-v-Roy-Box-livtv05.html
https://www.cbre-ea.com/sites/files/Mik-v-Roy-Box-livtv06.html
https://www.cbre-ea.com/sites/files/Ty-v-Jr-ft-liv03.html
https://www.acc-d.org/rdx/vfx/Mami-v-kron-Liv_00.html
https://www.acc-d.org/rdx/vfx/Mami-v-kron-Liv_01.html
https://www.acc-d.org/rdx/vfx/Aub-v-Ala-xyz1.html
https://www.acc-d.org/rdx/vfx/gers-v-Pur-tvs01.html
https://www.acc-d.org/rdx/vfx/Mik-v-Roy-Box-livtv01.html
https://www.acc-d.org/rdx/vfx/Mik-v-Roy-Box-livtv02.html
https://www.acc-d.org/rdx/vfx/Ty-v-Jr-ft-liv01.html
https://www.acc-d.org/rdx/vfx/Ty-v-Jr-ft-liv02.html
https://www.suncarecentral.com/sites/vfx/Mami-v-kron-Liv_02.html
https://www.suncarecentral.com/sites/vfx/Mami-v-kron-Liv_03.html
https://www.suncarecentral.com/sites/vfx/Aub-v-Ala-xyz2.html
https://www.suncarecentral.com/sites/vfx/gers-v-Pur-tvs02.html
https://www.suncarecentral.com/sites/vfx/Mik-v-Roy-Box-livtv03.html
https://www.suncarecentral.com/sites/vfx/Mik-v-Roy-Box-livtv04.html
https://www.cbre-ea.com/cmv/Pitt-vs-Clem-hq-tvs-url1.html
https://www.cbre-ea.com/cmv/Pitt-vs-Clem-hq-tvs1.html
https://www.cbre-ea.com/cmv/Pitt-vs-Clem-hq-tvs2.html
https://www.cbre-ea.com/cmv/Pitt-vs-Clem-hq-1.html
https://www.cbre-ea.com/cmv/Pitt-vs-Clem-hq-2.html
https://www.cbre-ea.com/cmv/Auburn-vs-Alab-football-ncaaf-game-1.html
https://www.cbre-ea.com/cmv/Auburn-vs-Alab-football-ncaaf-game-2.html
https://www.cbre-ea.com/cmv/Auburn-vs-Alab-football-ncaaf-0.html
https://www.cbre-ea.com/cmv/Auburn-vs-Alab-football-ncaaf-01.html
https://www.suncarecentral.com/sites/vmc/West-vs-Sheff-ON.html
https://www.suncarecentral.com/sites/vmc/West-vs-Sheff-liv-1.html
https://www.suncarecentral.com/sites/vmc/West-vs-Sheff-liv-2.html
https://www.suncarecentral.com/sites/vmc/North-vs-Michi-cbs-tvs1.html
https://www.suncarecentral.com/sites/vmc/North-vs-Michi-cbs-tvs2.html
https://www.suncarecentral.com/sites/vmc/North-vs-Michi-cbs-tvs-ON.html
https://www.suncarecentral.com/sites/vmc/North-vs-Michi-cbs-tvs-2020.html
https://www.acc-d.org/rdx/runner/Ala-vs-Ark1.html
https://www.acc-d.org/rdx/runner/Ala-vs-Ark2.html
https://www.acc-d.org/rdx/runner/Ala-vs-Ark3.html
https://www.acc-d.org/rdx/runner/Ala-vs-Ark-Q1.html
https://www.cbre-ea.com/vnm/clemson-v-pittsburgh-pk-tvs01.html
https://www.cbre-ea.com/vnm/texas-v-utsa-pk-tvs01.html
https://www.cbre-ea.com/vnm/clemson-v-pittsburgh-pk-tvs02.html
https://www.cbre-ea.com/vnm/texas-v-utsa-pk-tvs02.html
https://www.cbre-ea.com/vnm/clemson-v-pittsburgh-pk-tvs03.html
https://www.cbre-ea.com/vnm/texas-v-utsa-pk-tvs03.html
https://www.cbre-ea.com/vnm/clemson-v-pittsburgh-pk-tvs04.html
https://www.cbre-ea.com/vnm/texas-v-utsa-pk-tvs04.html
https://www.cbre-ea.com/vnm/clemson-v-pittsburgh-pk-tvs05.html
https://www.cbre-ea.com/vnm/texas-v-utsa-pk-tvs05.html
https://www.suncarecentral.com/sites/vmc/Mike-vs-Ro-1.html
https://www.suncarecentral.com/sites/vmc/Mike-vs-Ro-2.html
https://www.suncarecentral.com/sites/vmc/Mike-vs-Ro-3.html
https://www.cbre-ea.com/sites/csb/south-alabama-vs-arkansas-state-li-tv01.html
https://www.cbre-ea.com/sites/csb/south-alabama-vs-arkansas-state-li-tv02.html
https://www.cbre-ea.com/sites/csb/south-alabama-vs-arkansas-state-li-tv03.html
https://www.cbre-ea.com/sites/csb/south-alabama-vs-arkansas-state-li-tv04.html
https://www.cbre-ea.com/sites/csb/south-alabama-vs-arkansas-state-li-tv05.html
https://www.cbre-ea.com/sites/csb/south-alabama-vs-arkansas-state-li-tv06.html
https://www.cbre-ea.com/sites/csb/south-alabama-vs-arkansas-state-li-tv07.html
https://www.cbre-ea.com/sites/csb/south-alabama-vs-arkansas-state-li-tv08.html
https://www.cbre-ea.com/sites/csb/south-alabama-vs-arkansas-state-li-tv09.html
https://www.cbre-ea.com/sites/csb/m-v-j01.html
https://www.cbre-ea.com/sites/csb/m-v-j02.html
https://www.cbre-ea.com/sites/csb/m-v-j03.html
https://www.acc-d.org/rdx/fox/Mise-v-Ol-nfljds01.html
https://www.acc-d.org/rdx/fox/Mise-v-Ol-nfljds02.html
https://www.acc-d.org/rdx/fox/Mise-v-Ol-nfljds03.html
https://www.acc-d.org/rdx/fox/Mise-v-Ol-nfljds04.html
https://www.acc-d.org/rdx/fox/Mise-v-Ol-nfljds05.html
https://www.suncarecentral.com/sites/cds/Mise-v-Ol-nfljds06.html
https://www.suncarecentral.com/sites/cds/Mise-v-Ol-nfljds07.html
https://www.suncarecentral.com/sites/cds/Mise-v-Ol-nfljds08.html
https://www.suncarecentral.com/sites/cds/Mise-v-Ol-nfljds09.html

These principles are behind a lot of how I approach building Lightning and interact with the AI community. There have been many times during the development of the project where I’ve had to enforce the integrity of our project by having a zero-tolerance policy for copying code from other projects.

For example here, one of our contributors took code from another project and copy-pasted it into Lightning.

Now, it’s clear that the contributor did not have bad intentions, but nevertheless, this is not the Lightning way.

We don’t copy, we create.

This particular event was resolved positively.

Now, you might wonder why I care so much about this given that “opensource copying is fair game.” But opensource was designed so that we can build on top of each other’s works. The objective is not to pull pieces of projects to the point where you just end up duplicating functionality.

Building on top of each other is why the field of AI is the fastest-growing field today. This principle is also at the core of the scientific community. Peer reviews, attribution, citations.

It is in the DNA of science.

In my opinion, slowly copying chunks of functionality instead of building on existing work, is counter to these principles and has no room in the AI research community.

Lightning is built by creators, researchers and innovators for those who want to build the next big thing in AI. I hope future projects continue to build on our work to advance the field. I’ve learned a lot from friends and contributors of Kornia, NVIDIA NeMo, and other amazing projects. Integrating as partners has helped us all deliver exponentially better experiences for users.

--

--