§
    -`ƒi×  ã                   óN   — d dl mZ d dlmZmZ d dlmZmZ  G d„ de¦  «        ZdS )é    )ÚCallable)ÚAnyÚProtocol)ÚCUDAGraphModeÚ
VllmConfigc            
       óR   — e Zd ZdZdedef         dedededdf
d	„Zd
ededefd„Z	dS )ÚAbstractStaticGraphWrapperzu
    StaticGraphWrapper interface that allows platforms to wrap a callable
    to be captured as a static graph.
    Úrunnable.Úvllm_configÚruntime_modeÚkwargsÚreturnNc                 ó   — t           ‚)a¹  
        Initializes the StaticGraphWrapper class with graph capturing and
        execution-related configurations.

        Args:
            runnable (Callable): The callable to be wrapped and captured.
            vllm_config (VllmConfig): Global configuration for vLLM.
            runtime_mode (CUDAGraphMode): The style of the static
                graph runtime. See CUDAGraphMode in vllm/config.py.
                Note that only the subset enum `NONE`, `PIECEWISE` and `FULL`
                are used as concrete runtime mode for cudagraph dispatching.
        Keyword Args:
            kwargs: Additional keyword arguments for platform-specific
                configurations.
        ©ÚNotImplementedError)Úselfr
   r   r   r   s        úv/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/vllm/compilation/base_static_graph.pyÚ__init__z#AbstractStaticGraphWrapper.__init__   s
   € õ, "Ð!ó    Úargsc                 ó   — t           ‚)a;  
        Executes the wrapped callable.

        If the current runtime mode in the ForwardContext matches the runtime
        mode of this instance, it replays the CUDAGraph or captures it using
        the callable if it hasn't been captured yet. Otherwise, it calls the
        original callable directly.

        Args:
            *args: Variable length input arguments to be passed into the
                callable.
            **kwargs: Keyword arguments to be passed into the callable.

        Returns:
            Any: Output of the executed callable.
        r   )r   r   r   s      r   Ú__call__z#AbstractStaticGraphWrapper.__call__(   s
   € õ" "Ð!r   )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   © r   r   r	   r	   
   s”   € € € € € ðð ð
"à˜3 ˜8Ô$ð"ð  ð"ð $ð	"ð
 ð"ð 
ð"ð "ð "ð "ð0"˜cð "¨Sð "°Sð "ð "ð "ð "ð "ð "r   r	   N)	Úcollections.abcr   Útypingr   r   Úvllm.configr   r   r	   r   r   r   ú<module>r!      s}   ðð %Ð $Ð $Ð $Ð $Ð $Ø  Ð  Ð  Ð  Ð  Ð  Ð  Ð  à 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1Ð 1ð/"ð /"ð /"ð /"ð /" ñ /"ô /"ð /"ð /"ð /"r   