# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/slhazfa
一文讀懂 PyTorch 顯存管理機制**
最近在做 RLHF 場景下的訓練和推理複用機器的優化,需要及時釋放掉不用的 GPU 資源。翻出了之前和同事一起寫的這篇文章,雖然過去 2 年了,但依然好看,因此轉載到這裏。本文使用的 PyTorch 源碼爲 master 分支,commit id 爲 a5b848aec10b15b1f903804308eed4140c5263cb。背景介紹----剖析 PyTorch 顯存管理機制主要是爲了減少顯 ⌘ Read more