PythonHub
2.43K subscribers
2.35K photos
49.2K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
stable-diffusion

Stable Diffusion is a latent text-to-image diffusion model. Similar to Google's Imagen, this model uses a frozen CLIP ViT-L/14 text encoder to condition the model on text prompts. With its 860M UNet and 123M text encoder, the model is relatively lightweight and runs on a GPU with at least 10GB VRAM.

https://github.com/CompVis/stable-diffusion
Accelerate Python code 100x by import taichi as ti

There is no universal solution to all optimization problems. That's partially why Python is fascinating. You can always find/create an easy-to-use tool that can precisely solve your problem at hand. In terms of scientific computing, Taichi is an ideal option within Python that can help you achieve performance comparable to C/C++.

https://docs.taichi-lang.org/blog/accelerate-python-code-100x
Multiprocessing Pool in Python

This guide provides a detailed and comprehensive review of the multiprocessing.Pool in Python, including how it works, how to use it, common questions, and best practices.

https://superfastpython.com/multiprocessing-pool-python/
Someone’s Been Messing With My Subnormals!

After noticing an annoying warning, I went on an absurd yak shave, and discovered that because of a tiny handful of Python packages built with an appealing-sounding but dangerous compiler option, more than 2,500 Python packages—some with more than a million downloads per month—could end up causing any program that uses them to compute incorrect numerical results.

https://moyix.blogspot.com/2022/09/someones-been-messing-with-my-subnormals.html
Python Type Hints Are Turing Complete

https://arxiv.org/abs/2208.14755
Building modern Python API backends in 2022

This guide comes from experience building api backends for a variety of startups in different industries, it serves as a starting point for what the state of “best practise” is for how we think about organising Python projects, structuring code, testing, and common libraries we’ve reused across projects.

https://backfill.dev/blog/2022-08-21-modern-python-backends/