File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,19 @@ def _get_shape_env() -> AlwaysHitShapeEnv:
290
290
# Dynamo metrics context, see method for more details.
291
291
stack .enter_context (self .metrics_context ())
292
292
293
+ # Disable remote caching. When these are on, on remote cache-hit,
294
+ # the monkey-patched functions never actually get called.
295
+ # vLLM today assumes and requires the monkey-patched functions to
296
+ # get hit.
297
+ # TODO(zou3519): we're going to replace this all with
298
+ # standalone_compile sometime.
299
+ if is_torch_equal_or_newer ("2.6" ):
300
+ stack .enter_context (
301
+ torch ._inductor .config .patch (fx_graph_remote_cache = False ))
302
+ stack .enter_context (
303
+ torch ._functorch .config .patch (
304
+ enable_remote_autograd_cache = False ))
305
+
293
306
compiled_graph = compile_fx (
294
307
graph ,
295
308
example_inputs ,
You can’t perform that action at this time.
0 commit comments