mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[PR #32] [MERGED] Use PYTORCH_ALLOC_CONF instead of deprecated PYTORCH_CUDA_ALLOC_CONF #246
Labels
No labels
bug
enhancement
enhancement
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
p-e-w/heretic#246
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/p-e-w/heretic/pull/32
Author: @kldzj
Created: 11/20/2025
Status: ✅ Merged
Merged: 11/21/2025
Merged by: @p-e-w
Base:
master← Head:pytorch-deprecation-warning📝 Commits (2)
0fd42ecUsePYTORCH_ALLOC_CONFinstead of deprecatedPYTORCH_CUDA_ALLOC_CONFe1a3b6dstyle: reformat environment variable check📊 Changes
1 file changed (+5 additions, -2 deletions)
View changed files
📝
src/heretic/main.py(+5 -2)📄 Description
Problem
With #17 I introduced setting
PYTORCH_CUDA_ALLOC_CONFtoexpandable_segments:Trueto reduce memory fragmentation for the model. Even though PyTorch docs sometimes still mentionPYTORCH_CUDA_ALLOC_CONF, during runtime we get a deprecation warning.Solution
Use
PYTORCH_ALLOC_CONFinstead ofPYTORCH_CUDA_ALLOC_CONF.Result
Suppression of the deprecation warning.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.