Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-QuantizationToolkit > INT8 Kernel Config

ComfyUI Node: INT8 Kernel Config

Class Name

INT8KernelConfigTuner

Category
loaders
Author
SparknightLLC (Account age: 725days)
Extension
ComfyUI-QuantizationToolkit
Latest Updated
2026-08-04
Github Stars
0.05K

How to Install ComfyUI-QuantizationToolkit

Install this extension via the ComfyUI Manager by searching for ComfyUI-QuantizationToolkit
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-QuantizationToolkit in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

INT8 Kernel Config Description

Specialized node optimizing INT8 model performance through Triton kernel settings configuration for enhanced matrix multiplication efficiency and microbenchmarking.

INT8 Kernel Config:

The INT8KernelConfigTuner is a specialized node designed to optimize the performance of INT8 models by configuring Triton kernel settings. This node allows you to fine-tune the kernel parameters to achieve the best possible performance for your specific model and hardware setup. By leveraging the capabilities of Triton, a high-performance deep learning compiler, this node can significantly enhance the efficiency of matrix multiplication operations, which are crucial in many AI models. The node provides an option to run a microbenchmark to determine the most efficient kernel configuration, ensuring that your model runs as fast as possible. This is particularly beneficial for AI artists who want to maximize the performance of their models without delving into the complexities of kernel optimization.

INT8 Kernel Config Input Parameters:

model

This parameter represents the INT8 model whose Triton kernel settings need to be synchronized during sampling. It is crucial for ensuring that the model's performance is optimized according to the selected kernel configuration.

run_microbench

This boolean parameter, with a default value of False, determines whether a benchmark of candidate kernel settings should be run. If set to True, the node will execute a microbenchmark to identify the fastest kernel configuration for the model, potentially improving performance.

block_m

This integer parameter specifies the Triton BLOCK_M tile size for fixed INT8 matrix multiplication kernels. It has a default value of 128, with a range from 16 to 512, adjustable in steps of 16. This parameter influences the size of the matrix tiles processed in parallel, affecting the kernel's performance.

block_n

Similar to block_m, this integer parameter defines the Triton BLOCK_N tile size, with the same default, range, and step values. It impacts the parallel processing of matrix tiles, contributing to the overall efficiency of the kernel.

block_k

This parameter sets the Triton BLOCK_K reduction tile size for fixed INT8 matrix multiplication kernels. With a default value of 64, it ranges from 16 to 512 in steps of 16. It affects the reduction operations within the kernel, influencing performance.

group_size_m

This integer parameter, with a default value of 8, specifies the Triton GROUP_SIZE_M launch grouping value for fixed INT8 matrix multiplication kernels. It ranges from 1 to 64, adjustable in steps of 1, and determines the grouping of threads during kernel execution.

num_warps

This parameter defines the number of Triton warps per program for fixed INT8 matrix multiplication kernels. It has a default value of 4, with a range from 1 to 16, adjustable in steps of 1. It influences the parallelism and efficiency of the kernel execution.

num_stages

This integer parameter specifies the number of Triton pipeline stages for fixed INT8 matrix multiplication kernels. With a default value of 4, it ranges from 1 to 8, adjustable in steps of 1. It affects the pipelining of operations within the kernel, impacting performance.

bench_m

This parameter sets the M dimension used by the optional synthetic kernel microbenchmark. It has a default value of 2048, with a range from 64 to 16384, adjustable in steps of 64. It determines the size of the matrix used in benchmarking, influencing the accuracy of performance measurements.

bench_k

This parameter defines the K dimension for the optional synthetic kernel microbenchmark, with a default value of 4096. It ranges from 64 to 16384, adjustable in steps of 64, and affects the benchmarking matrix size.

bench_n

Similar to bench_k, this parameter sets the N dimension for the optional synthetic kernel microbenchmark. It shares the same default, range, and step values, impacting the benchmarking matrix size.

bench_warmup

This integer parameter specifies the number of warmup iterations before timing each candidate kernel configuration. With a default value of 2, it ranges from 1 to 20, adjustable in steps of 1. It ensures that the benchmark results are not skewed by initial setup overheads.

bench_iterations

This parameter defines the number of timed iterations per candidate kernel configuration. It has a default value of 6, with a range from 2 to 100, adjustable in steps of 1. It determines the number of times each configuration is tested, affecting the reliability of the benchmark results.

bench_include_scalar

This boolean parameter, with a default value of False, indicates whether scalar-weight kernel candidates should be included in the benchmark. It is usually left off for per-row INT8 models, as including scalar candidates may not be beneficial.

INT8 Kernel Config Output Parameters:

MODEL

The output parameter is the MODEL, which represents the INT8 model with the applied Triton kernel configuration. This output is crucial as it reflects the optimized model ready for deployment, ensuring improved performance based on the selected kernel settings.

INT8 Kernel Config Usage Tips:

  • To achieve optimal performance, consider enabling the run_microbench option to automatically select the best kernel configuration for your model.
  • Adjust the block_m, block_n, and block_k parameters to match the typical matrix sizes used in your model, as this can significantly impact performance.
  • Use the num_warps and num_stages parameters to fine-tune the parallelism and pipelining of the kernel, which can lead to better utilization of your hardware resources.

INT8 Kernel Config Common Errors and Solutions:

Triton kernel module unavailable

  • Explanation: This error occurs when the Triton kernel module is not available or cannot be imported.
  • Solution: Ensure that the Triton library is correctly installed and accessible in your environment. Check for any installation issues or missing dependencies.

INT8 Kernel Config: microbench failed

  • Explanation: This error indicates that the microbenchmarking process encountered an issue and could not complete successfully.
  • Solution: Verify that the input parameters for the benchmark are correctly set and within valid ranges. Check for any hardware or software limitations that might affect the benchmarking process.

INT8 Kernel Config Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-QuantizationToolkit
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

INT8 Kernel Config