maxent_grpo.training.rollout.vllm_adapter¶
vLLM-focused helpers split away from the local generation path.
Functions
|
Broadcast python objects even when Accelerate lacks the helper. |
|
|
|
|
|
Gather Python lists across ranks with graceful Accelerate fallbacks. |
|
Return TRL's VLLMClient using the provided import fn (defaults to optional_import). |
|
Return True if accelerate.utils reports that the model uses PEFT adapters. |
|
|
|
Import a module if available without triggering import errors. |
|
|
|
|
|
Scatter python objects from src to all ranks. |
|
|
|
|
|
|
|
|
|
Public alias for broadcasting Python objects across ranks. |
|
Public alias for gathering Python objects across ranks. |
|
Public alias for scattering Python objects across ranks. |
Classes
|
All vLLM-specific plumbing extracted from the main generator. |
- class maxent_grpo.training.rollout.vllm_adapter.VLLMGenerationMixin(ctx)[source]¶
Bases:
objectAll vLLM-specific plumbing extracted from the main generator.
- Parameters:
ctx (GenerationContext)
- ctx: GenerationContext¶
- maxent_grpo.training.rollout.vllm_adapter.broadcast_object_list(accelerator, payload, *, src=0)[source]¶
Public alias for broadcasting Python objects across ranks.