KTransformers

Environment Variables

Most users should not need environment variables for normal serving. Use them only for debugging or controlled experiments.

kt-kernel

VariableRole
KT_KERNEL_CPU_VARIANTOverride automatic CPU variant selection for testing.
KT_KERNEL_DEBUGPrint CPU detection and loading details.

Example:

export KT_KERNEL_DEBUG=1
python -c "import kt_kernel"

Model and Cache Paths

Use standard Hugging Face and Python environment variables as needed for model cache placement. If your environment needs a proxy, configure it explicitly in that runtime.

When sharing a run, include any non-default environment variable in the runtime configuration.