vllm_omni.lora.utils ¶
stable_lora_int_id ¶
Return a deterministic positive integer ID for a LoRA adapter.
vLLM uses lora_int_id as the adapter's cache key. Python's built-in hash() is intentionally randomized per process (PYTHONHASHSEED), which makes it unsuitable for persistent IDs. This helper derives a stable 63-bit positive integer from the adapter path.