mirror of
https://github.com/deepseek-ai/Janus.git
synced 2026-11-05 00:57:18 +00:00
[PR #87] Adding memory management capabilities #213
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/Janus#213
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/deepseek-ai/Janus/pull/87
Author: @ElkanaBaris
Created: 1/29/2025
Status: 🔄 Open
Base:
main← Head:memory_management📝 Commits (2)
cab2784adding memory monitoring decoratoredd64d8adding memory monitoring to janus flow📊 Changes
8 files changed (+116 additions, -13 deletions)
View changed files
📝
generation_inference.py(+27 -13)📝
janus/janusflow/models/clip_encoder.py(+4 -0)📝
janus/janusflow/models/modeling_vlm.py(+2 -0)📝
janus/janusflow/models/processing_vlm.py(+2 -0)📝
janus/models/clip_encoder.py(+4 -0)📝
janus/models/modeling_vlm.py(+5 -0)📝
janus/models/processing_vlm.py(+4 -0)➕
janus/utils/cuda_memory_manager.py(+68 -0)📄 Description
In order to support low-cost development and training,
this PR add memory management decorators to memory-heavy operations.
This enables users to better control and reduce memory footprint in low-mem low-cost environments.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.