asyml / asyml/texar

Is there anyway to empty cache/memory after loading get-2 into our model?

Open
#271 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
2.4k
Forks
367
PR merge metrics
No merged PRs in 30d

Description

I wonder if there is any strategy to empty cache after loading (Restoring) gpt2 parameters into our model? I am getting OOM error for batch_size and I wonder how if there is anyway to get around that when using massive pre-trained models?

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or entry point is named. Start by reproducing the OOM while restoring GPT-2 parameters with the reported batch size and inspect the TensorFlow loading path. Done would require a confirmed memory-release approach or a documented way to avoid the OOM for massive pretrained models.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.