PythonHub
2.33K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Building an LLM from scratch

Learn how to build a modern language model with all the bells and whistles completely from scratch: from vanilla Python to functional coding assistant

https://bclarkson-code.github.io/posts/llm-from-scratch-scalar-autograd/post.html
Vega-Altair: Declarative Visualization in Python

https://altair-viz.github.io/index.html
Algorithmic Art with Python

In this talk we’re going to start from nothing and build out our own tools for making art in Python, no AI needed! We’ll show how Python’s expressiveness allows us to describe graphics elegantly and use that to make some unique art programmatically.

https://www.youtube.com/watch?v=_XeRM-4DZz0
How to dockerize a Django, Preact, and PostgreSQL Application

Dockerizing your Django application can be intimidating, but the rewards outweigh the risks. In this guide, Charlie Macnamara walks you through the setup process so you can get the most out of your applications.

https://www.honeybadger.io/blog/dockerize-django-preact-postgres
Tracing System Calls in Python

The article discusses the author's development of a tool added to Cirron that enables the tracing of system calls made by Python code. It provides an example of tracing the "print" function and explains the tool's implementation using the strace tool for effective analysis. The article also outlines the initial intention to use the ptrace syscall for implementation and the subsequent uti...

https://blog.mattstuchlik.com/2024/02/16/counting-syscalls-in-python.html
The simplest way to add a Django worker (Using AWS Chalice)

The article discusses the utilization of AWS Chalice to incorporate a Django worker, enabling the use of a lambda function as a serverless background worker for any application. This approach allows the lambda function to run in the background without blocking the main thread of the app, and it can call an endpoint on the Django app when completed, offering the advantage of using any Pyt...

https://www.photondesigner.com/articles/lambda-for-django
Let's build the GPT Tokenizer

The Tokenizer, essential for Large Language Models (LLMs), translates between strings and tokens, operating as a distinct stage with separate training sets and algorithms. This lecture builds the GPT series Tokenizer from scratch, uncovering peculiar behaviors in LLMs linked to tokenization. We explore these issues, attributing them to tokenization, and consider the ideal scenario of eli...

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