@@ -63,7 +63,7 @@ def remove_timing_cache(path=TIMING_CACHE_PATH):
6363# in a subsequent compilation, either as part of this session or a new session, the cache will
6464# pull the built engine and **refit** the weights which can reduce compilation times by orders of magnitude.
6565# As such, in order to insert a new engine into the cache (i.e. ``cache_built_engines=True``),
66- # the engine must be refittable (``make_refittable=True ``). See :ref:`refit_engine_example` for more details.
66+ # the engine must be refittable (``immutable_weights=False ``). See :ref:`refit_engine_example` for more details.
6767
6868
6969def torch_compile (iterations = 3 ):
@@ -97,7 +97,7 @@ def torch_compile(iterations=3):
9797 "enabled_precisions" : enabled_precisions ,
9898 "debug" : debug ,
9999 "min_block_size" : min_block_size ,
100- "make_refittable " : True ,
100+ "immutable_weights " : False ,
101101 "cache_built_engines" : cache_built_engines ,
102102 "reuse_cached_engines" : reuse_cached_engines ,
103103 },
@@ -157,7 +157,7 @@ def dynamo_compile(iterations=3):
157157 enabled_precisions = enabled_precisions ,
158158 debug = debug ,
159159 min_block_size = min_block_size ,
160- make_refittable = True ,
160+ immutable_weights = False ,
161161 cache_built_engines = cache_built_engines ,
162162 reuse_cached_engines = reuse_cached_engines ,
163163 engine_cache_size = 1 << 30 , # 1GB
@@ -268,7 +268,7 @@ def torch_compile_my_cache(iterations=3):
268268 "enabled_precisions" : enabled_precisions ,
269269 "debug" : debug ,
270270 "min_block_size" : min_block_size ,
271- "make_refittable " : True ,
271+ "immutable_weights " : False ,
272272 "cache_built_engines" : cache_built_engines ,
273273 "reuse_cached_engines" : reuse_cached_engines ,
274274 "custom_engine_cache" : engine_cache ,
0 commit comments