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

[Bugfix] Pass config to wandb, trace interval type check #30

Merged

Conversation

anmolagarwalcp810
Copy link
Contributor

@anmolagarwalcp810 anmolagarwalcp810 commented Aug 24, 2024

There were few bugs:

  1. Passing self._config.to_dict() to config parameter of wandb.init() resulted in error, because MetricsConfig does not have to_dict() function.
  2. Wrong type comparison for trace request interval generator type in SyntheticRequestGenerator class.
  3. Simply running python -m vidur.main (without any CLI args) resulted in error mentioned in point 2. It tried to run vidur with trace request interval generator type, but we don't have dataset for that.

Fixes:

  1. Directly pass SimulationConfig to MetricStore constructor.
  2. Fixed type comparison with RequestIntervalGeneratorType enum.
  3. Changed num_requests to some value instead of None for Synthetic request generator type, so that python -m vidur.main runs without any additional args.

vidur/simulator.py Outdated Show resolved Hide resolved
@AgrawalAmey
Copy link
Contributor

@nitinkedia7 can you approve the PR

@nitinkedia7 nitinkedia7 self-requested a review August 24, 2024 15:52
@nitinkedia7 nitinkedia7 merged commit 8afeaf0 into microsoft:main Aug 24, 2024
2 checks passed
Hanchenli pushed a commit to XbzOnGit/vidur that referenced this pull request Nov 8, 2024
* Bug fix: trace type, wandb config

* make format

* directly use SimulationConfig

* make format
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.

3 participants