NVIDIA / NVIDIA/apex

Related to 392

Open
#513 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9k
Forks
1.5k
Avg merge
2d 4h
Merged PRs (30d)
3

Description

I am running into the same issue as https://github.com/NVIDIA/apex/issues/392.

Using APEX over cross validation leads to OOM.

I just wanted to check the work around solution.

Instantiate model, optimizer.

apex initialize

for k in cross_vals:
         train(model, optimizer)
         reset( model) 

Is that correct?

Problem is that I am using a transformer, so resetting the model indicates losing the transfer learning.

I wasnt clear on how to use the previous version of APEX either. Any suggestions would be appreciated.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading issue 392 and compare its reported behavior with the cross-validation sequence described here. Investigate how APEX initialization, model reset, and transfer learning interact in that sequence; done should include a confirmed workaround or a clearly documented reason the proposed sequence cannot avoid the OOM.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.