Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: get_logprobs of base env (reason why TB was not training well) #251

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

alexhernandezgarcia
Copy link
Owner

@alexhernandezgarcia alexhernandezgarcia commented Nov 16, 2023

The clone of policy_outputs into logits in get_logprobs() of the base environment was incorrectly detached, preventing the correct propagation of gradients.

Sanity checks seem fine now: https://wandb.ai/alexhg/gfn_sanity_checks


This was the commit to blame: 67a8bc3

@alexhernandezgarcia alexhernandezgarcia merged commit cb4bf18 into ccrystal Nov 17, 2023
1 check passed
@josephdviviano josephdviviano deleted the fix-get_logprobs-base branch February 7, 2024 15:44
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.

1 participant