Nodes/ComfyUI-BerniniR Wrapper/Bernini-R Compile Model
ComfyUI Node

Bernini-R Compile Model

Store torch.compile config on a Bernini-R model handle. Applied when the sampler loads the model.

By xiaolibai-sys·Created about a month ago·Updated 28 days ago· 8
Bernini-R Compile Model
  • model_handle
  • model_handle
compile_modenone
fullgraphfalse
dynamic_shapestrue
purge_cachefalse
CategoryBernini-R/Loaders

Inputs (5)

NameTypeDefaultDescription
model_handleBERNINI_MODEL_HANDLEBernini-R model handle
compile_modeCOMBOnonetorch.compile mode. 'none' = eager, 'default' = trace w/ graph breaks, 'reduce-overhead' → auto-downgraded to 'default' on Windows
fullgraphBOOLEANfalseRequire zero graph breaks (will likely fail with custom attention ops)
dynamic_shapesBOOLEANtrueAllow variable-length sequences in compiled graph
purge_cacheoptBOOLEANfalseDelete Bernini-R's isolated torch.compile cache before compiling (after a code update, or if compiled output looks stale)

Outputs (1)

NameTypeDescription
model_handleBERNINI_MODEL_HANDLE