Skip to content

Hotfix: Device errors#94

Merged
shibshib merged 12 commits intomainfrom
device_errors
Jul 13, 2023
Merged

Hotfix: Device errors#94
shibshib merged 12 commits intomainfrom
device_errors

Conversation

@Eugene-hu
Copy link
Contributor

  • rewards should be detached and sent to cpu during normalization
  • this prevents a device issue when running a seperate gpu
  • --gating.num_uids was set as metagraph.n instead of the command line value

@Eugene-hu Eugene-hu changed the title Device errors Hotfix: Device errors Jul 11, 2023
Copy link
Contributor

@isabella618033 isabella618033 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

if model_name is not None:
config.gating.model_name = model_name
config.gating.num_uids = num_uids if num_uids is not None else metagraph.n
config.gating.num_uids = num_uids if num_uids is not None else config.gating.num_uids
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how would we handle it when the gating.num_uids is < or > metagraph.n ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, we should set the gating.num_uids to be greater than metagraph.n. That way the gating model will have enough embeddings in its linear layer for any increases in uids

@shibshib shibshib changed the base branch from main to staging July 13, 2023 15:08
@shibshib shibshib changed the base branch from staging to main July 13, 2023 16:11
@shibshib shibshib merged commit 1394831 into main Jul 13, 2023
@p-ferreira p-ferreira deleted the device_errors branch August 1, 2023 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants