Avik Chaudhuri

1.3K posts

Avik Chaudhuri banner
Avik Chaudhuri

Avik Chaudhuri

@__avik

Creator of @flowtype. Hacker on @PyTorch compiler. ML explorer. Rusty PL researcher. Amateur chef. Soccer dad. Blogging at https://t.co/KRv2Q5Adsd

San Francisco Bay Area Katılım Mart 2014
312 Takip Edilen1.1K Takipçiler
Sabitlenmiş Tweet
Avik Chaudhuri
Avik Chaudhuri@__avik·
Episode 1 of a new video series on #PyTorch Compiler topics is now out! In future episodes I'll be hosting other people on the team to share tips and tricks that help you get the max out of torch.compile, torch.export, and related technologies, while enjoying a glimpse into all the cool engineering work that goes on behind the scenes. Stay tuned! We will drop new videos pretty frequently on this channel. Lots of great content incoming.
PyTorch@PyTorch

We're kicking off a new PyTorch Compiler video series 🎬 In the first episode, Avik Chaudhuri discusses a few simple principles that drive the programming model for export & illustrates them via a series of examples. 🔍 Export creates ahead-of-time IR representations of PyTorch models that provide higher safety and coverage than previous technologies like TorchScript and FX. Exported IR can be further lowered and optimized to run on heterogeneous hardware by runtimes such as ONNX, TensorRT, ExecuTorch, and AOTInductor. 📺 Watch now: hubs.la/Q03plFhR0

English
1
1
11
3.4K
Steven Strogatz
Steven Strogatz@stevenstrogatz·
If you set your calculator to radian mode and then repeatedly press the cosine button, you always end up with numbers approaching 0.739…, no matter what number you started with. Do you understand why?
English
64
26
583
117K
Avik Chaudhuri
Avik Chaudhuri@__avik·
@Anthony_Bonato Gosh, kids these days. Don’t care about “whither”, jumping to “whence”, the nerve!
English
0
0
0
109
Anthony Bonato
Anthony Bonato@Anthony_Bonato·
Reading math papers is like reading Dickens or Austen or Brontë: -henceforth -whence -therein -thereof -whereby -herein -thereupon -whereupon -whilst -indeed -evidently -hence -shall …
English
9
7
94
4.1K
Avik Chaudhuri
Avik Chaudhuri@__avik·
Thanks. I'm frankly at a loss on what she should be doing with her life, but she's very into math and physics right now. Strangely (relative to her peers), not into coding - I mean she can code, but not with passion, you know, the kind I had when I was young. I'll just let her fly, of course - what do I know about the future. But if you have any wisdom to share, do let me know. :)
English
1
0
1
44
Avik Chaudhuri retweetledi
Avik Chaudhuri retweetledi
Ken Ono
Ken Ono@KenOno691·
Today is Maryam Mirzakhani’s birthday, a day to celebrate women in mathematics. Her life and work remind us of the power of imagination, courage, and beauty.
Ken Ono tweet media
English
18
101
640
14K
Avik Chaudhuri
Avik Chaudhuri@__avik·
It’s also interesting to note that Rust took off in Meta much more than OCaml partly during the time the Rust team broke off at Mozilla Research and Meta hired some key contributors. While at the same time rewriting some of the core DevInfra tooling around source control and other highly scalable stuff from Python to Rust. Coincidences galore.
English
0
0
1
30
Avik Chaudhuri
Avik Chaudhuri@__avik·
Choosing OCaml initially for Hack/Flow frankly was more random than you think. The original author of Hack (@JulienVerlaguet) is French; the original author of Flow (me) happened to do an internship during undergrad at INRIA, and my mentor happened to be one of the academic ancestors of OCaml and Rocq. One cannot underestimate cultural bias. Zooming out of Rust vs. OCaml, there was another trend at the time to "bootstrap" a language implementation in itself - something that TypeScript followed. We rejected that option in Flow because of scaling requirements at the time, although it came with significant difficulty - having to "replicate" core libraries in your implementation language instead of just "calling into" them (think module resolution as an example). This is something to think about in Pyrefly as well. E.g., the recent tensor shapes implementation allows writing some specifications in a subset of Python, which would be sweet to "dynamically load" instead of compiling into a binary.
English
2
0
1
37
Sam Goldman
Sam Goldman@nontrivialzeros·
In August 2024, @ndm_haskell and I announced "minipyre" internally. A new Rust-based Python type checker that would replace Pyre, our existing OCaml-based one. Very proud to announce Pyrefly v1.0 is available now, ready for production use! pyrefly.org/blog/v1.0/
English
2
0
8
979
Satnam Singh
Satnam Singh@satnam6502·
Maki di roti and saag was my actual 60th birthday dinner, which I had at my mum's house along with my sister Churnjeet. It was important for me to celebrate this significant birthday with my mum, and reflect upon the journey we've taken together, and apart.
Satnam Singh tweet media
English
20
2
181
6.5K
Avik Chaudhuri retweetledi
Meta Open Source
Meta Open Source@MetaOpenSource·
We’re thrilled to share that Pyrefly, our open source type checker and language server for Python, has officially reached v1.0! This has been a huge team effort. Since our beta release last November, we've shipped over 60 updates, fixed hundreds of bugs, and added features the community has been asking for. Check out our latest video and blog walking through what you can expect from the latest release: Video: youtube.com/watch?v=_o0TZG… Blog: pyrefly.org/blog/v1.0/ We also want say a huge thank-you to the open-source community for helping us get here. 🙏
YouTube video
YouTube
English
4
24
102
17K
Avik Chaudhuri
Avik Chaudhuri@__avik·
Tomorrow at @pycon Typing Summit (us.pycon.org/2026/events/ty…), I'll be presenting our recent work on tensor shapes in #Pyrefly. Come check it out! Tracking tensor shapes through your @PyTorch models has never been easier. Super excited to see how model development evolves with tool use in the age of AI.
English
0
1
2
120
Avik Chaudhuri
Avik Chaudhuri@__avik·
It has been an immense pleasure working with @nontrivialzeros, @ndm_haskell, and others on this huge milestone! We announced experimental support for tensor shapes in #Pyrefly as part of this release: pyrefly.org/en/docs/tensor…. A hobby project I started in November led to a demo to the team in December - and it's so exciting to see that just a few months later, we can release it to the world to play with. With just a few annotations at module boundaries, @PyTorch developers can now enjoy inlay typehints showing tensor shapes throughout their code. Check out the examples linked in the docs, which include 28 OSS models with a variety of architectures with end-to-end coverage. No longer do you need to track tensor shapes in your head as you type. And you can let your AI agent refactor your code with the peace of mind that comes with static verification! Fun story - I hired Sam into working with me on @flowtype a decade back. How life comes full circle - couldn't be prouder to work with Sam again.
Sam Goldman@nontrivialzeros

In August 2024, @ndm_haskell and I announced "minipyre" internally. A new Rust-based Python type checker that would replace Pyre, our existing OCaml-based one. Very proud to announce Pyrefly v1.0 is available now, ready for production use! pyrefly.org/blog/v1.0/

English
0
1
6
800
Avik Chaudhuri retweetledi
Tim Hopper
Tim Hopper@tdhopper·
Meta’s fast new Python type checker is now 1.0. If you’re on mypy, it’s an easy migration. Highly recommend checking this out. pydevtools.com/blog/pyrefly-1…
English
1
6
39
4.3K
Avik Chaudhuri retweetledi
rex ledesma
rex ledesma@rexrledesma·
Pyrefly is now 1.0! It's been such a joy rolling this out at @poolsideai :D Super excited for the new tensor type checking features pyrefly.org/blog/v1.0/
English
0
2
4
570
Avik Chaudhuri
Avik Chaudhuri@__avik·
The cute part comes out in the second half, where things like composition of layouts reduce to composition of diagrams modulo some factoring. Paper here: arxiv.org/pdf/2601.05972
English
0
0
0
53
Trefor Bazett
Trefor Bazett@TreforBazett·
Cool and simple proof: Are there two irrationals a & b such that a^b is rational? Consider √2^√2. If it's rational, we're done. If it's irrational then √2^√2^√2=√2^2=2 is rational, we're done. This is a non-constructive existence proof!
English
9
23
196
20.1K