maxent_grpo.training.generation.vllm_weight_sync¶
Weight synchronization helpers split out from the main vLLM helper.
Functions
|
|
|
|
|
Return TRL's VLLMClient using the provided import helper. |
|
Return |
|
|
|
|
|
|
|
|
|
Import a module using the shared optional import helper. |
|
|
|
|
|
|
|
Return a callable that gathers parameters when ZeRO-3 is active. |
Classes
Group weight sync helpers separately from retry/resilience logic. |
|
|
Lightweight callable wrapper to keep static analyzers satisfied. |
- class maxent_grpo.training.generation.vllm_weight_sync.VLLMWeightSyncMixin[source]¶
Bases:
objectGroup weight sync helpers separately from retry/resilience logic.
- maybe_sync_weights(ensure_client=None, sync_model=None)[source]¶
Synchronize weights to the vLLM server if configured.
- Parameters:
ensure_client (Callable[[], bool] | None) – Optional callable that prepares the vLLM client.
sync_model (Callable[[Any], None] | None) – Optional callable invoked to push model weights.
- Return type:
None