vllm.entrypoints.serve.sagemaker.api_router
¶
Functions:
-
attach_router–Attach the SageMaker hosting endpoints to the API server.
-
sagemaker_standards_bootstrap–Bootstrap the app with the SageMaker hosting standards.
_attach_router(app, supported_tasks, model_config=None)
¶
Register the SageMaker hosting routes (/ping, /invocations) on the app.
Source code in vllm/entrypoints/serve/sagemaker/api_router.py
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | |
_required_fields(request_type)
¶
The required top-level fields of each model that request_type
accepts. A union contributes one set per member.
Source code in vllm/entrypoints/serve/sagemaker/api_router.py
_restore_handler_levels(snapshot)
¶
Restore handler levels from a snapshot.
_snapshot_handler_levels()
¶
Snapshot handler levels for loggers that may be affected by third-party logging configuration side effects (e.g. model_hosting_container_standards calling configure_root_logger() at import time).
Source code in vllm/entrypoints/serve/sagemaker/api_router.py
attach_router(app, supported_tasks, model_config=None)
¶
Attach the SageMaker hosting endpoints to the API server.
Handler levels are snapshotted and restored because importing model_hosting_container_standards may reconfigure root logging.
Source code in vllm/entrypoints/serve/sagemaker/api_router.py
sagemaker_standards_bootstrap(app)
¶
Bootstrap the app with the SageMaker hosting standards.
Handler levels are restored right after the import because importing model_hosting_container_standards may reconfigure root logging, and bootstrap must run with the original levels.