vllm.kernels.helion.config_manager
¶
Configuration management for Helion kernels.
This module provides centralized configuration file management for Helion custom operations, including naming conventions, directory resolution, and file I/O.
Config File Structure¶
Each kernel has a directory: {kernel_name}/ Inside, each GPU platform has its own JSON file: {kernel_name}/{platform}.json
Platform files store config entries as a JSON array::
[
{"key": {}, "config": {...}},
{"key": {"intermediate": 2048, "numtokens": 256}, "config": {...}},
...,
]
Config keys are CaseKey instances mapping parameter names to
values. The default config uses CaseKey.default().
Classes:
-
ConfigManager–File-level configuration management for Helion kernels (global singleton).
-
ConfigSet–In-memory collection of Helion configs with lookup/query capabilities.
ConfigManager
¶
File-level configuration management for Helion kernels (global singleton).
Methods:
-
reset_instance–For testing purposes only.
-
save_configs–Save configs for a kernel/platform, merging with existing.
ConfigSet
¶
In-memory collection of Helion configs with lookup/query capabilities.
Configs are stored keyed by CaseKey. The default config
uses CaseKey.default() as its key.
Methods:
-
to_config_entries–Serialize to config entries format for JSON output.
-
to_dict–Return configs as a nested dict (platform -> key -> config).