Skip to content

fix: yaml parsing converts floats like 1.0 into integer 1 causing assertion failure#536

Merged
dushyantbehl merged 3 commits into
foundation-model-stack:mainfrom
HarikrishnanBalagopal:fix/sampling
Apr 25, 2025
Merged

fix: yaml parsing converts floats like 1.0 into integer 1 causing assertion failure#536
dushyantbehl merged 3 commits into
foundation-model-stack:mainfrom
HarikrishnanBalagopal:fix/sampling

Conversation

@HarikrishnanBalagopal
Copy link
Copy Markdown
Contributor

@HarikrishnanBalagopal HarikrishnanBalagopal commented Apr 24, 2025

Description of the change

Yaml parsing converts floats like 1.0 into integer 1 causing assertion failure of sampling ratio. This patch fixes the assertion condition.

Related issue number

How to verify the PR

Was the PR tested

  • I have added >=1 unit test(s) for every new method I have added.
  • I have ensured all unit tests pass

@github-actions
Copy link
Copy Markdown

Thanks for making a pull request! 😃
One of the maintainers will review and advise on the next steps.

@github-actions github-actions Bot added the fix label Apr 24, 2025
kmehant
kmehant previously approved these changes Apr 24, 2025
Copy link
Copy Markdown
Collaborator

@kmehant kmehant left a comment

Choose a reason for hiding this comment

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

Thanks for the update.

Comment thread tuning/data/data_config.py Outdated
Copy link
Copy Markdown
Collaborator

@dushyantbehl dushyantbehl left a comment

Choose a reason for hiding this comment

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

Please update PR description with the error you encountered and the reason to fix this.

…ertion failure

Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
Copy link
Copy Markdown
Collaborator

@dushyantbehl dushyantbehl left a comment

Choose a reason for hiding this comment

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

LGTM.

@dushyantbehl dushyantbehl merged commit 0585642 into foundation-model-stack:main Apr 25, 2025
9 checks passed
dushyantbehl added a commit to dushyantbehl/fms-hf-tuning that referenced this pull request Jun 23, 2025
…ertion failure (foundation-model-stack#536)

Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
Co-authored-by: Dushyant Behl <dushyantbehl@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants