accelerate
Context manager fixes
#2450
Merged

Context manager fixes #2450

muellerzr merged 4 commits into huggingface:main from akx:context-mgr-fixes
akx
akx akx force pushed from 6a3f3231 to 8ab9a230 2 years ago
HuggingFaceDocBuilderDev
akx
akx akx force pushed from 8ab9a230 to 57f9dcb7 2 years ago
BenjaminBossan
BenjaminBossan commented on 2024-02-15
akx akx force pushed from 57f9dcb7 to c1181691 2 years ago
akx akx requested a review from BenjaminBossan BenjaminBossan 2 years ago
BenjaminBossan
BenjaminBossan approved these changes on 2024-02-16
BenjaminBossan BenjaminBossan requested a review from muellerzr muellerzr 2 years ago
akx akx force pushed from c1181691 to d0efbf44 2 years ago
akx Ban use of `os.*env`
968b1158
akx Fix `clear_environment` to actually clear environment variables
4b56d80d
akx Have environment context managers restore state even if the block raises
4adcc151
akx Add tests for environment CMs
ca4b3f7c
akx akx force pushed from d0efbf44 to ca4b3f7c 2 years ago
akx
akx akx requested a review from BenjaminBossan BenjaminBossan 2 years ago
muellerzr
muellerzr approved these changes on 2024-02-26
BenjaminBossan
BenjaminBossan approved these changes on 2024-02-26
muellerzr muellerzr merged 34fdddd7 into main 2 years ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone