You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python container components (build_python_component) lacks many features that Lightweight components (func_to_container_op) support:
Multiple outputs (already added)
Non-primitive types
Default values
Optional parameters
Dependency capture (code pickling)
There are some reports of user confusion since there are two ways to create component from a python function and they have slight implementation differences.
We should change kfp.compiler.build_python_component to use the same code generator as func_to_container_op. We should later merge the APIs and deprecate one of the functions so that there is only one way to make component from a python function.
For linux platforms, infer cpu-limit for the container from 'cfs_quota_us'
and 'cfs_quota_us' files. Use min(32, cpu_count + 4) to limit number of
max asyncio workers. Refer https://bugs.python.org/issue35279 for formula
source.
Python (and asyncio) is not container aware and thus ends up creating
asyncio workers proportional to cpu core count of the machine and not the
container. This spawns too many asyncio workers on high cpu core machines
running containers with low cpu-limit causing throttling.
Python container components (
build_python_component
) lacks many features that Lightweight components (func_to_container_op
) support:Multiple outputs(already added)There are some reports of user confusion since there are two ways to create component from a python function and they have slight implementation differences.
We should change
kfp.compiler.build_python_component
to use the same code generator asfunc_to_container_op
. We should later merge the APIs and deprecate one of the functions so that there is only one way to make component from a python function.Related issues: #1580
The text was updated successfully, but these errors were encountered: