github huggingface/huggingface_hub v0.16.4
v0.16.4 - Hot-fix: Do not share request.Session between processes

latest releases: v0.25.0, v0.25.0.rc1, v0.25.0.rc0...
14 months ago

Full Changelog: v0.16.3...v0.16.4

Hotfix to avoid sharing requests.Session between processes. More information in #1545. Internally, we create a Session object per thread to benefit from the HTTPSConnectionPool (i.e. do not reopen connection between calls). Due to an implementation bug, the Session object from the main thread was shared if a fork of the main process happened. The shared Session gets corrupted in the process, leading to some random ConnectionErrors in rare occasions.

Check out these release notes to learn more about the v0.16 release.

Don't miss a new huggingface_hub release

NewReleases is sending notifications on new releases.