PyTorch Memory Tuning
This article will focus on minimizing GPU memory footprint — for both optimization and inference workloads. Throughput and latency usually get all the attention, but reducing memory consumption without making architecture sacrifices is often just as valuable.
https://paulbridger.com/posts/pytorch-memory-tuning/
This article will focus on minimizing GPU memory footprint — for both optimization and inference workloads. Throughput and latency usually get all the attention, but reducing memory consumption without making architecture sacrifices is often just as valuable.
https://paulbridger.com/posts/pytorch-memory-tuning/
Paulbridger
PyTorch Memory Tuning
This article will focus on minimizing GPU memory footprint — for both optimization and inference workloads. Throughput and latency usually get all the attention, but reducing memory consumption without making architecture sacrifices is often just as valuable.
Patterns for Building LLM-based Systems & Products
This post is about practical patterns for integrating large language models (LLMs) into systems and products. We’ll draw from academic research, industry resources, and practitioner know-how, and try to distill them into key ideas and practices.
https://eugeneyan.com/writing/llm-patterns/
This post is about practical patterns for integrating large language models (LLMs) into systems and products. We’ll draw from academic research, industry resources, and practitioner know-how, and try to distill them into key ideas and practices.
https://eugeneyan.com/writing/llm-patterns/
eugeneyan.com
Patterns for Building LLM-based Systems & Products
Evals, RAG, fine-tuning, caching, guardrails, defensive UX, and collecting user feedback.
devlooper
A program synthesis agent that autonomously fixes its output by running tests!
https://github.com/modal-labs/devlooper
A program synthesis agent that autonomously fixes its output by running tests!
https://github.com/modal-labs/devlooper
GitHub
GitHub - modal-labs/devlooper: A program synthesis agent that autonomously fixes its output by running tests!
A program synthesis agent that autonomously fixes its output by running tests! - modal-labs/devlooper
The GIL Was Removed From Python!?
The GIL has been removed from Python! Has it though? Okay, let me clear some things up: Okay, allow ...
https://superfastpython.com/gil-removed-from-python/
The GIL has been removed from Python! Has it though? Okay, let me clear some things up: Okay, allow ...
https://superfastpython.com/gil-removed-from-python/
Super Fast Python
The GIL Was Removed From Python!? - Super Fast Python
The GIL has been removed from Python! Has it though? Okay, let me clear some things up: Okay, allow me to elaborate. Let’s get started. Python Global Interpreter Lock (GIL) The internals of the default Python interpreter (called CPython) are not thread-safe.…
Django: The perils of string_if_invalid in templates
https://adamj.eu/tech/2023/08/09/django-perils-string-if-invalid/
https://adamj.eu/tech/2023/08/09/django-perils-string-if-invalid/
adamj.eu
Django: The perils of string_if_invalid in templates - Adam Johnson
Django’s template engine has a string_if_invalid option that replaces missing variable lookups with a string of your choice:
Behind "Hello World" on Linux
When you run a simple "Hello World" Python program on Linux, a lot more happens behind the scenes than you might think. This post explores the different steps that take place when you run a "Hello World" program, from parsing the command line to executing the code.
https://jvns.ca/blog/2023/08/03/behind--hello-world/
When you run a simple "Hello World" Python program on Linux, a lot more happens behind the scenes than you might think. This post explores the different steps that take place when you run a "Hello World" program, from parsing the command line to executing the code.
https://jvns.ca/blog/2023/08/03/behind--hello-world/
Julia Evans
Behind "Hello World" on Linux
Llama from scratch
A tutorial on how to implement a paper and debug your model.
https://blog.briankitano.com/llama-from-scratch/
A tutorial on how to implement a paper and debug your model.
https://blog.briankitano.com/llama-from-scratch/
Brian Kitano
Llama from scratch (or how to implement a paper without crying)
I want to provide some tips from my experience implementing a paper. I'm going to cover my tips so far from implementing a dramatically scaled-down versio...
Parameters, options and flags for Python scripts
SummaryWhile there are various ways of making a script configurable in Python, argparse is a very ...
https://www.bitecode.dev/p/parameters-options-and-flags-for
SummaryWhile there are various ways of making a script configurable in Python, argparse is a very ...
https://www.bitecode.dev/p/parameters-options-and-flags-for
www.bitecode.dev
Parameters, options and flags for Python scripts
Theory and practice
PokerKit
An open-source Python library for poker simulations and hand evaluations.
https://github.com/uoftcprg/pokerkit
An open-source Python library for poker simulations and hand evaluations.
https://github.com/uoftcprg/pokerkit
GitHub
GitHub - uoftcprg/pokerkit: An open-source Python library for poker game simulations, hand evaluations, and statistical analysis
An open-source Python library for poker game simulations, hand evaluations, and statistical analysis - uoftcprg/pokerkit
Creating a context manager in Python
Objects with
https://www.pythonmorsels.com/creating-a-context-manager/
Objects with
__enter__
and __exit__
methods can be used as context managers in Python. This article discusses most of what you'll want to know when creating your own context managers.https://www.pythonmorsels.com/creating-a-context-manager/
Pythonmorsels
Creating a context manager in Python
Objects with __enter__ and __exit__ methods can be used as context managers in Python.
Python SDK for the Uniswap Universal Router
The object of this library is to easily decode & encode the transaction input sent to the latest Uniswap router.
https://github.com/Elnaril/uniswap-universal-router-decoder
The object of this library is to easily decode & encode the transaction input sent to the latest Uniswap router.
https://github.com/Elnaril/uniswap-universal-router-decoder
GitHub
GitHub - Elnaril/uniswap-universal-router-decoder: Uniswap Universal Router SDK - Decode and Encode Transactions - Uniswap V2,…
Uniswap Universal Router SDK - Decode and Encode Transactions - Uniswap V2, V3 & V4 - Elnaril/uniswap-universal-router-decoder
Show HN: Pykoi – a Python library for LLM data collection and fine tuning
https://www.cambioml.com/pykoi/
https://www.cambioml.com/pykoi/
Killing the ProcessPoolExecutor
A story about the Python GIL, threading, and fixing code that already works.
https://www.tinybird.co/blog-posts/killing-the-processpoolexecutor
A story about the Python GIL, threading, and fixing code that already works.
https://www.tinybird.co/blog-posts/killing-the-processpoolexecutor
www.tinybird.co
Killing the ProcessPoolExecutor
This is a story about the Python GIL, threads and processes, and fixing code that already works. The result? 50% less memory used and many more lessons learned.
Building and Evaluating Medical AI Models
Learn how to build and evaluate medical AI models with TensorFlow. This is a great, real world project for improving your machine learning skills. You will use TensorFlow to evaluate chest x-rays.
https://www.youtube.com/watch?v=8m3LvPg8EuI
Learn how to build and evaluate medical AI models with TensorFlow. This is a great, real world project for improving your machine learning skills. You will use TensorFlow to evaluate chest x-rays.
https://www.youtube.com/watch?v=8m3LvPg8EuI
YouTube
TensorFlow Course – Building and Evaluating Medical AI Models
Learn how to build and evaluate medical AI models with TensorFlow. This is a great, real world project for improving your machine learning skills. You will use TensorFlow to evaluate chest x-rays.
✏️ Dr. Jason Adleberg teaches this course.
Jason on Twitter:…
✏️ Dr. Jason Adleberg teaches this course.
Jason on Twitter:…
Function Calling: Integrate Your GPT Chatbot With Anything
Learn about GPT new function calling feature which allows chatbots to interact with anything, opening up new possibilities for AI-powered applications.
https://semaphoreci.com/blog/function-calling
Learn about GPT new function calling feature which allows chatbots to interact with anything, opening up new possibilities for AI-powered applications.
https://semaphoreci.com/blog/function-calling
Semaphore
Function Calling: Integrate Your GPT Chatbot With Anything - Semaphore
Learn about GPT new function calling feature which allows chatbots to interact with anything, opening up new possibilities for AI-powered applications.
Python in Visual Studio Code – August 2023 Release
This release includes the following announcements:
https://devblogs.microsoft.com/python/python-in-visual-studio-code-august-2023-release/
This release includes the following announcements:
https://devblogs.microsoft.com/python/python-in-visual-studio-code-august-2023-release/
Microsoft News
Python in Visual Studio Code – August 2023 Release
The August 2023 release of the Python and Jupyter extensions for Visual Studio Code are now available. This month's updates include a pre-configured dev container for the Python extension, a new debug configuration, an npm package for the Python extension…