PythonHub
2.44K subscribers
2.35K photos
49.3K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
vLLM with torch.compile: Efficient LLM inference on PyTorch

Learn how to optimize PyTorch code with minimal effort using torch.compile, a just-in-time compiler that generates optimized kernels automatically.

https://developers.redhat.com/articles/2025/09/03/vllm-torchcompile-efficient-llm-inference-pytorch
sync-with-uv

The sync-with-uv package automates version synchronization between uv.lock and .pre-commit-config.yaml, ensuring consistent dependency management for tools like black, ruff, and mypy. It integrates as a pre-commit hook, streamlining workflows by aligning versions from a single source while leaving unspecified tools unchanged.

https://github.com/tsvikas/sync-with-uv
PydanticAI: the AI Agent Framework Winner

The video showcases how to use Pydantic AI to build Python applications with AI-powered agents that provide validated, structured outputs by integrating large language models like GPT-5. It demonstrates a healthcare triage assistant that personalizes responses using domain data, dependencies, and customizable prompts, enabling robust, real-world AI integration beyond simple chatbots.

https://www.youtube.com/watch?v=-WB0T0XmDrY
How to Build Python Code with Bazel (and Why)

The post details how Bazel can optimize building Python projects by managing dependencies accurately, avoiding unnecessary rebuilds, and supporting multi-language setups like adding Rust extensions. Bazel’s declarative build configurations enable efficient and consistent builds, improving CI turnaround times and scalability as projects growattached file.

https://ohadravid.github.io/posts/2025-09-hello-bazel/
Intro to Fine-Tuning Large Language Models

This course explores key techniques for adapting pre-trained LLMs to specialized tasks, including supervised fine-tuning, RLHF, and efficient QLoRA-based methods. It covers both theory and hands-on implementation, guiding viewers through practical steps to fine-tune and deploy massive language models using Python, PyTorch, and Hugging Face tools

https://www.youtube.com/watch?v=H-oCV5brtU4
Testing the compiler optimizations your code relies on

Sometimes you can trick the compiler into generating more efficient code. How can you test this optimization continues to be applied?

https://pythonspeed.com/articles/testing-compiler-optimizations/
10 Standard Library Modules That Make Python Insanely Powerful

The video highlights 10 powerful, sometimes overlooked Python standard library modules such as dataclasses for reducing boilerplate, pathlib for modern file path handling, functools for caching and functional utilities, and tomllib for parsing TOML configs. It showcases practical code examples illustrating how these modules can simplify development, improve performance, and reduce depend...

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