Skip to content

Conversation

joecummings
Copy link
Member

@joecummings joecummings commented Oct 10, 2025

Context

We previously had a custom class called EngineConfig that would selectively map variables to vLLM's EngineArgs. While this was nice for conversion to/fro dictionary structs, it was an additional redirect for the user to understand what knobs were actually available for creating the vLLM engine.

Changes

  • Deleted EngineConfig, instead relying directly on EngineArgs.
  • Added a debug log of the resolved EngineArgs
  • Updated naming in all configs, tests, etc
  • Added a link to the vLLM EngineArgs in every config

Testing

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 10, 2025
@joecummings joecummings marked this pull request as ready for review October 10, 2025 22:43
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 3.03030% with 32 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@136a5d6). Learn more about missing BASE report.

Files with missing lines Patch % Lines
tests/unit_tests/test_policy_config.py 0.00% 21 Missing ⚠️
src/forge/actors/policy.py 9.09% 10 Missing ⚠️
tests/integration_tests/test_policy_update.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #381   +/-   ##
=======================================
  Coverage        ?   64.49%           
=======================================
  Files           ?       79           
  Lines           ?     7709           
  Branches        ?        0           
=======================================
  Hits            ?     4972           
  Misses          ?     2737           
  Partials        ?        0           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@Jack-Khuu Jack-Khuu left a comment

Choose a reason for hiding this comment

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

It's friday

if isinstance(engine_config, Mapping):
engine_config = EngineConfig.from_dict(engine_config)
if isinstance(engine_args, Mapping):
engine_args = EngineArgs(**engine_args)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same flag as the other PR, when folks want to use the richer nested fields in EngineArgs we'll need to support it

@joecummings joecummings merged commit b9c3d34 into meta-pytorch:main Oct 10, 2025
8 checks passed
@joecummings joecummings deleted the whoops-v2 branch October 10, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Cleanup] Consolidate weird split between custom EngineArgs and SamplingConfig

3 participants