PythonHub
2.41K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
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
Show HN: Koda, a Typesafe Functional Toolkit for Python

https://pypi.org/project/koda/
A Comprehensive Guide to Slicing in Python

Python Slicing is a powerful tool to access sequences. To learn more about the inner mechanics of slices, read this post.

https://bas.codes/posts/python-slicing
django-idom

django-idom allows Django to integrate with IDOM, a reactive Python web framework for building interactive websites without needing a single line of Javascript.

https://github.com/idom-team/django-idom
Creating Beautiful Tracebacks with Python's Exception Hooks

Debugging can become an enjoyable experience with beautiful traceback messages created with Python’s custom exception hooks.

https://martinheinz.dev/blog/66