PythonHub
2.4K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Let’s optimize! Running 15× faster with a situation-specific algorithm

Sometimes the best way to speed up your algorithm is to adjust it to the specifics of your data.

https://pythonspeed.com/articles/lets-optimize-median-local-threshold/
👍1
CPython Garbage Collection: The Internal Mechanics and Algorithms

A detailed code walkthrough of how CPython implements memory management, including reference counting and garbage collection.

https://blog.codingconfessions.com/p/cpython-garbage-collection-internals
👍3
Inspectus

Inspectus is a versatile visualization tool for large language models. It runs smoothly in Jupyter notebooks via an easy-to-use Python API. Inspectus provides multiple views, offering diverse insights into language model behaviors.

https://github.com/labmlai/inspectus
Let's reproduce GPT-2 (124M)

In this video, Andrej Karpathy demonstrates how to reproduce the GPT-2 (124M) model, covering topics like parameter sharing, model initialization, mixed precision training, optimizations like flash attention, and hyperparameter tuning.

https://www.youtube.com/watch?v=l8pRSuU81PU
Optimal SQLite settings for Django

The article provides optimal SQLite settings for Django applications, aimed at enhancing performance and reliability for smaller deployments. It includes specific PRAGMA configurations and a simple backup strategy, highlighting the potential of SQLite when correctly tuned for production use.

https://gcollazo.com/optimal-sqlite-settings-for-django/
Cracking the Scheduling Code in Hay Day

Learn how to solve the scheduling problem in the Hay Day game using Mixed-integer linear programming and Google OR-Tools.

https://thinhcorner.com/blog/hayday-game-schedule