pixano_inference.ray.utils
Utility functions for Ray Serve infrastructure.
build_runtime_env(pip_packages=None, working_dir=None, auto_detect=True)
Build a Ray runtime environment configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pip_packages
|
list[str] | None
|
Explicit list of pip packages to install. If None and auto_detect is True, packages will be auto-detected. |
None
|
working_dir
|
str | None
|
Working directory for Ray workers. |
None
|
auto_detect
|
bool
|
Whether to auto-detect installed packages if pip_packages is None. |
True
|
Returns:
| Type | Description |
|---|---|
dict | None
|
Runtime environment dictionary for Ray, or None if empty. |
Source code in pixano_inference/ray/utils.py
detect_optional_packages()
Auto-detect installed optional dependencies for Ray workers.
Returns:
| Type | Description |
|---|---|
list[str]
|
List of pip package names to install in Ray workers. |