-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
I noticed the pip install steps of @fal.function
was slower than I'd expect it to run on data center bandwidth and caching.
fal/projects/fal/src/fal/api.py
Line 678 in bc14436
kind: Literal["virtualenv"] = "virtualenv", |
def function(
kind: Literal["virtualenv"] = "virtualenv", # expand this to include 'uv venv' and then 'uv pip install...'
Modal recently introduced https://modal.com/docs/reference/modal.Image#uv_pip_install which is really nice.
The success criteria would be:
- for all usages
uv_venv
andvirtualenv
should have no functional or package solver difference, just that fal would benefit fromuv
performance gains. - Fal's backend should have some sort of background cache for
uv
(https://docs.astral.sh/uv/concepts/cache/#caching-in-continuous-integration), so that even when the user is not trying to cache, the upstream index/wheels are coming from a fast local cache thatuv
uses (some sort of mount that user can readonly)
Alternatively, perhaps users can submit our own installation scripts to be run, and from that we can setup the venv with whatever we want (uv, poetry, hatch, tox, anything from the ecosystem)
As far as I can tell, the fal
repo does not encompass the server side implementation of the "virtualenv" step, so I think the change cannot be contributed in open source alone.
Metadata
Metadata
Assignees
Labels
No labels