From f0399e7fce242a6b777286124b0c41cee91c28f6 Mon Sep 17 00:00:00 2001 From: Arpit Kalla Date: Tue, 17 Feb 2026 12:46:36 -0800 Subject: [PATCH] Fix compilation of position encoding Summary: When running with compile=True, we were getting the following error: P2186079344 Swapping to not use cudagraphs for a quik fix. Will follow up with swapping the Position embedding impl to not cache. Reviewed By: raedle Differential Revision: D93508585 fbshipit-source-id: 0eaa29fcf826611b6a652811a6f2472399014b84 --- sam3/model/sam3_video_inference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sam3/model/sam3_video_inference.py b/sam3/model/sam3_video_inference.py index 6f031be..18cd387 100644 --- a/sam3/model/sam3_video_inference.py +++ b/sam3/model/sam3_video_inference.py @@ -627,7 +627,7 @@ class Sam3VideoInference(Sam3VideoBase): ## Compile Tracker model components self.tracker.maskmem_backbone.forward = compile_wrapper( self.tracker.maskmem_backbone.forward, - mode="max-autotune", + mode="max-autotune-no-cudagraphs", fullgraph=True, dynamic=False, )