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

Update GenerationNode.model_to_gen_from_name #2407

Closed
wants to merge 2 commits into from

Conversation

saitcakmak
Copy link
Contributor

Summary: Updates the behavior to match the docstring. Previously, this would call model_spec_to_gen_from, which could lead to fitting multiple models if the node had multiple model specs. The return type was always str rather than Optional[str] suggested by the type hints.

Differential Revision: D56735619

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Apr 30, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.31%. Comparing base (198b247) to head (b6f77f4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2407   +/-   ##
=======================================
  Coverage   95.31%   95.31%           
=======================================
  Files         497      497           
  Lines       48501    48507    +6     
=======================================
+ Hits        46227    46233    +6     
  Misses       2274     2274           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

saitcakmak and others added 2 commits May 1, 2024 15:41
Summary: The current setup uses `node.model_spec_to_gen_from.model_key` to get the default name for a given node, which will attempt to fit models for GenNodes with multiple `model_spec`s. This diff avoids the `model_spec_to_gen_from` call for node-based GS and uses it only for step-based GS, where this is not an issue.

Differential Revision: D56732974

Reviewed By: mgarrard
Summary: Updates the behavior to match the docstring. Previously, this would call `model_spec_to_gen_from`, which could lead to fitting multiple models if the node had multiple model specs. The return type was always `str` rather than `Optional[str]` suggested by the type hints.

Reviewed By: mgarrard

Differential Revision: D56735619
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56735619

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 9ba941c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants