@ivoflipse

11 Followers
66 Following
31 Posts

#Python and #PyTorch using #WebGPU in browsers, the future is now! 🤯

https://praeclarum.org/2023/05/19/webgpu-torch.html

How I Re-implemented PyTorch for WebGPU

TL;DR I’ve been working on a WebGPU optimized inference and autograd library called webgpu-torch with an API that matches PyTorch. The goal is to run neural networks in the browser at speeds comparable to a Linux workstation. Many kernels have been implemented and its design is easily extensible. It’s available on NPM now and works in both the browser and Node.js!

praeclarum
I have found the best ever TikTok video and it's honestly not even close https://www.tiktok.com/@unknowndazza/video/7204587065726520577
Dazza on TikTok

The Full Frod Story! It’s been a crazy journey from 0 to 60k people of Frodrick! Appreciate your ideas and support☺️ #Frodrick #startedfromthebottomnowwehere #FrodHouse

TikTok

I’ve been working on pygfx, a Python graphics library based on wgpu (the successor to OpenGL). I wrote a post on it's background https://almarklein.org/wgpu.html

This project is close to my heart, visualisation is what got me into Python. For scientific Pythonista’s pygfx might still a bit low-level - the idea is that others can build high-level libraries on top.

#python #viz

On WebGPU, wgpu-py, and pygfx

[announce] Pybi and Posy

pip install python Back in 2018 when Kushal first proposed PEP 582, several of us at the core devs sprint sat down and tried to brainstorm requirements for python workflow tooling that “grows with” users from novice to expert, and how well PEP 582 could meet them. (I posted notes.) One of Kushal’s main requirements, based on his experience teaching beginners, is that you should only have to install one thing to get started. So, that leaves two possibilities: either installing Python had to give ...

Discussions on Python.org

✨ If you are interested in Python and WebAssembly, @brettcannon wrote up a great article on getting started. There are even some new Trove classifiers for PyPI to mark packages as WebAssembly-friendly.

Testing a Python project using the WASI build of CPython with pytest - https://fosstodon.org/@brettcannon/109723994706754087

#python #webassembly

Brett Cannon (@[email protected])

Wrote a blog post about what it took to run the test suite for `packaging` using #Python #WASI : https://snarky.ca/testing-a-project-using-the-wasi-build-of-cpython-with-pytest/ As part of this work, PyPI got some new classifiers for WebAssembly: Environment :: WebAssembly Environment :: WebAssembly :: Emscripten Environment :: WebAssembly :: WASI They're a bit empty since they are literally 2 hours old. 🙂

Fosstodon

@anildash I don't think enough people have realized how incredibly valuable the robust universal sandboxing provided by WASM is going to be

I genuinely don't want to run code written by other people that's NOT in a sandbox at this point: even if I trust them, do I also trust them not to have written any bugs?

WASM to me represents the freedom to run code on my machines again!

PEP 703 by Sam Gross and sponsored by @ambv on Making the Global Interpreter Lock Optional in CPython is now a public draft:

https://peps.python.org/pep-0703/

Others and I contributed some context on why this would help improve the efficiency and maintainability of #Python code in the context of #DataScience, #MachineLearning #DeepLearning and more generally in scientific programming / #scipy contexts.

Feel free to discuss this draft here: https://discuss.python.org/t/pep-703-making-the-global-interpreter-lock-optional/22606

#PyData

PEP 703 – Making the Global Interpreter Lock Optional in CPython | peps.python.org

CPython’s global interpreter lock (“GIL”) prevents multiple threads from executing Python code at the same time. The GIL is an obstacle to using multi-core CPUs from Python efficiently. This PEP proposes adding a build configuration (--disable-gil) to...

Python Enhancement Proposals (PEPs)

PEP703: making the global interpreter lock (GIL) optional in CPython. Draft. This is big news. Many more hurdles ahead #python

https://github.com/python/peps/pull/2955

PEP 703: Making the Global Interpreter Lock Optional in CPython by colesbury ¡ Pull Request #2955 ¡ python/peps

Sponsor: Łukasz Langa Note that the "Discussions-To" field is a placeholder. I'll update the field once the PEP is an official draft and the corresponding thread is created on http://discuss.pytho...

GitHub
Baby boy
This seems like an appropriate first comic for mastodon.