fhelium.knobs
Process settings taken from environment variables.
Each attribute reads its environment variable when it is accessed. Assigning an attribute overrides the variable for the current process, and deleting the attribute returns to the variable. The settings describe the machine and deployment of a process: the persistent cache location, the compile bypass, logging, shadow execution, the Triton compilation threads and the launcher's process ranks.
cache_dir(FHELIUM_CACHE_DIR): root of the persistent compile cache,~/.cache/fheliumwhen unset;None, which disables persistence, when set to"","0"or"off".compile_disable(FHELIUM_COMPILE_DISABLE):Truefor1,true,yesoron; calls of compiled callables then run their source functions with Eager operations.log(FHELIUM_LOG): comma-separated log components;compilelogs each prepared specialization andkeyseach evaluation key that an Engine generates or copies on demand.loggerreturns the logger of an enabled component.shadow(FHELIUM_SHADOW):Truefor1,true,yesoron; Eager Ciphertext operators then also evaluate their plaintext reference and record the error of every result (fhelium.testing).compile_threads(FHELIUM_COMPILE_THREADS): worker threads of concurrent Triton kernel compilation;Nonekeeps the executor default.rank,world_sizeandlocal_rank(RANK,WORLD_SIZE,LOCAL_RANK): the launcher's process ranks,0,1and0when unset.
cache_dir
data View source
python
cache_dir: Path | None1
compile_disable
data View source
python
compile_disable: bool1
compile_threads
data View source
python
compile_threads: int | None1
local_rank
data View source
python
local_rank: int1
log
data View source
python
log: frozenset[str]1
logger
function View source
python
def logger(component: str) -> logging.Logger | None: ...1
Return the fhelium.<component> logger when :data:log names component, otherwise None.
A logger without handlers receives one on standard error at level INFO.
rank
data View source
python
rank: int1
shadow
data View source
python
shadow: bool1
world_size
data View source
python
world_size: int1