Tried out Python 3.11 from conda-forge due to rumoured performance improvements. For a very simple (yet real) workload I had 97s for v3.9 but 62s for v3.11. Pypy naturally blew past at ~7.4s, but the 3.11 hype is real and hopefully will lead to speedups in many workflows.
#python #python311
Today I learned https://bjoernricks.github.io/posts/til-230207/ #python #python311
Got #Speechbrain on #pytorch2 within #python311 up and running. So far just recipe tested, but seems to run faster whilst CPU decoding.
Building it was not that easy though. First, I experienced troubles while linking against glibc, but it was due to switching back and forth to conda environment, because I needed gcc 11.1 (my Fedora 36 has gcc 12+, and it has issues preprocessing some templates among the pytorch dependencies). Moreover, I needed linkage to the system's #cuda12, which was present at a conda repository
I was too lazy to find the way through, exporting correct variables and/or setting correct paths here and there. So I decided to first build custom gcc 11.1 and eventually pytorch.
I visited https://ftp.gnu.org/gnu/gcc/gcc-11.1.0/, but then I struggled once again. Now it was compiling gcc itself. Even then I had very little patience finding the true reason, but was lucky enough to find a patch enabling succesful compilation of the gcc: https://reviews.llvm.org/D129471
#speechbrain #pytorch2 #python311 #cuda12
Here is a quick read on how I created a Python Web App and deployed code directly from a GitHub... https://dev.to/holger/azure-sdk-for-python-how-to-create-a-python-azure-web-app-and-deploy-code-from-a-github-repository-le3
#python #azure #azuresdk #python311
Python 3.11 improvement:
This is a graph of CPU utilization for the web services that power #PyPI.
▶️ They upgraded from python 3.10 to 3.11
▶️ a significant and correlated drop in CPU usage
#pypi #python #python3 #pythonprogramming #programming #python311
RT FastAPI ⚡ by Sebastián Ramírez #tiangolo
Here we go! 🔖
Just released: #FastAPI 0.86.0 with official support for #Python 3.11 😎🐍
Go get that extra #performance and beautiful #traceback errors 🚀
#tiangolo #fastapi #python #performance #traceback #python311