This week in Python, the community explored programming a robotic hand with language models, multi-threaded parallel inference on PyTorch models, and the process of async Python migration. Interesting projects included 'agent-file', an open file format for serializing stateful agents, and 'AI Runner', a local-first tool for running open-source large language models. Articles discussed principles for writing less brittle Python code, building your first Streamlit app, and the native Python support added to CUDA by Nvidia. Wishing you a productive week and happy coding!
Programming a Robotic Hand to Crawl
This video demonstrates using a robotic hand to perform gestures like rock, paper, and scissors, programmed with the help of language models, highlighting the model's ability to understand and execute these gestures even if they aren't explicitly defined in the hand's code. The creator explores how language models can abstract and translate general knowledge into specific robotic actions...
PyTorch and Python Free-Threading
This post examines multi-threaded parallel inference on PyTorch models using the new No-GIL, free-threaded version of Python. Using a simple 124M parameter GPT2 model that we train from scratch, we explore the novel new territory unlocked by free-threaded Python: parallel PyTorch model inference, where multiple threads, unimpeded by the Python GIL, attempt to generate text from a transfo...
How we started our async python migration
Have you ever wanted to try an Async Python migration, but were unsure where to start? Read this post to find out!
agent-file
An open file format for serializing stateful agents with persistent memory and behavior. Share, checkpoint, and version control agents across compatible frameworks.
AI Runner
AI Runner is a local-first tool that allows you to run open-source large language models (LLM) and AI image generators (Stable Diffusion) on your own hardware, without the need for a web server or cloud service.
I Really HATE Brittle Python Functions
This video explains principles for writing less brittle Python code by avoiding type constraints, using value constraints inside functions, and carefully considering optional values. It also advocates for raising errors instead of returning None when a function expects to find an object by ID but cannot.
Getting Started with Streamlit
Build your first Streamlit app and explore some basic features.
Nvidia adds native Python support to CUDA
Is Python Code Sensitive to CPU Caching? (2024)
microsoft / RD-Agent
Research and development (R&D) is crucial for the enhancement of industrial productivity, especially in the AI era, where the core aspects of R&D are mainly focused on data and models. We are committed to automating these high-value generic R&D processes through our open source R&D automation tool RD-Agent, which lets AI drive data-driven AI.
Deploy Django 5.2 from Scratch. Complete Guide
This video provides a tutorial on deploying a Django project to Railway using modern deployment practices and covers setting up Python environments, Git, and configuring Django for production. It demonstrates how to use Railway's platform services to host and deploy Django applications with proper configurations, using Nixpacks or custom Dockerfiles.
Training and Finetuning Reranker Models with Sentence Transformers v4
This post explains how to train and fine-tune reranker models using Sentence Transformers v4, detailing components like datasets, loss functions, and evaluators. It demonstrates that fine tuning models on specific domains outperforms general-purpose models, providing practical examples for improving relevance in information retrieval.
Doing the Prospero-Challenge in RPython
FastMCP
The fast, Pythonic way to build Model Context Protocol servers.
Dockerpyze
Python applications to Docker, automatically.
trustcall
Tenacious tool calling built on LangGraph.
Emigo
Agentic AI Development in Emacs.
nova-act
Amazon Nova Act is a research preview of a new AI model for developers to build agents that take actions in web browsers.
Project by Ruslan Keba. Since 2012. Powered by Python. Made in ๐บ๐ฆUkraine.