PythonHub
2.44K subscribers
2.35K photos
49.4K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
How we optimized Python API server code 100x

Some of the tricks we used to speed up calls to our analytical API written in Python: played with asyncio, messed with SQLAlchemy, hacked deep in asyncpg, rewrote parts in Cython, found better data structures, replaced some pandas with pure numpy.

https://t.co/jiRKVYHkl0
BeeWare – write Python, run as native everywhere

https://beeware.org/
TIL: typing.Protocol Across Python Versions

How to seamlessly support typing.Protocol on Python versions older and newer than 3.8. At the same time.

https://hynek.me/til/typing-protocol/
GPT in PyTorch

In this video, we are going to implement the GPT2 model from scratch. We are only going to focus on the inference and not on the training logic. We will cover concepts like self attention, decoder blocks and generating new tokens.

https://www.youtube.com/watch?v=d7IRM40VMYM