Piecewise Cuda Graph set default (#16331)
This commit is contained in:
@@ -1967,7 +1967,7 @@ class DeepseekV2Model(nn.Module):
|
||||
# NOTE: torch dynamo does not support graph break in context manager
|
||||
ctx = (
|
||||
nullcontext()
|
||||
if get_global_server_args().enable_piecewise_cuda_graph
|
||||
if not get_global_server_args().disable_piecewise_cuda_graph
|
||||
else get_global_expert_distribution_recorder().with_current_layer(i)
|
||||
)
|
||||
with ctx:
|
||||
|
||||
Reference in New Issue
Block a user