PythonHub
2.36K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
smolGPT

A minimal PyTorch implementation for training your own small LLM from scratch. Designed for educational purposes and simplicity, featuring efficient training, flash attention, and modern sampling techniques.

https://github.com/Om-Alve/smolGPT
LLM Course – Build a Semantic Book Recommender (Python, OpenAI, LangChain, Gradio)

Discover how to build an intelligent book recommendation system using the power of large language models and Python. Learn to transform book descriptions into mathematical representations that enable precise content-based matching. By the end of this course, you'll have built a recommendation engine that helps readers discover their next favorite book.

https://www.youtube.com/watch?v=Q7mS1VHm3Yw
Portable Python Bundles on Windows

Packaging Python applications for Windows can be challenging. This post proposes "Python Bundles for Windows," a portable, lightweight convention resembling virtual environments but transferable across machines. It uses simple folder structures and scripts without new tools, offering flexibility and automation potential.

https://dev.to/treehouse/portable-python-bundles-on-windows-41ac
Dynamic Forms with Flask

The article discusses how to create dynamic forms in Flask using WTForms, allowing for flexible form generation based on user input or other conditions. It demonstrates techniques for adding or removing form fields dynamically, both on the server-side and client-side, enhancing the interactivity and functionality of web applications.

https://blog.miguelgrinberg.com/post/dynamic-forms-with-flask
Vyper and Python Smart Contracts on Blockchain

This video covers blockchain software development from scratch using Python and Vyper, covering smart contract creation, Python scripting, and interaction with contracts. It also includes advanced topics like fuzzing, NFTs, algorithmic trading, AI, ERC20s, and DeFi, making it suitable for beginners and those looking to expand their blockchain development skills.

https://www.youtube.com/watch?v=nWsLw_1OpE0
The surprising way to save memory with BytesIO

If you want to save memory when reading from a BytesIO, getvalue() is surprisingly a good choice.

https://pythonspeed.com/articles/bytesio-reduce-memory-usage/
1
PyPI Now Supports Project Archival

PyPI now supports project archival, allowing maintainers to mark projects as not expecting future updates, helping users make informed decisions about dependencies. Archiving doesn't delete or prevent installation of projects, but signals their status and prevents new uploads, with options for maintainers to provide context and unarchive if needed.

https://blog.pypi.org/posts/2025-01-30-archival/
Building Machine Learning Systems for a Trillion Trillion Floating Point Operations

Over the past decade, Machine Learning has become ubiquitous, transforming industries and scientific research, while requiring massive computational infrastructure. The talk will explore the evolution of ML systems like PyTorch, discussing how they've adapted to meet growing training demands, optimizing single-GPU performance, and scaling to thousands of GPUs.

https://www.youtube.com/watch?v=139UPjoq7Kw