Introduction to Private Serverless Models
As mentioned earlier, each fal function runs in an isolated environment that gets voided right after their invocation (unless keep_alive
is set). But for certain use cases, it may be important to persist certain results after the run is over. In such scenarios, you can use the /data
volume, which is mounted on each machine and is shared across all your functions running at any point in time linked to your FAL account.
When you invoke this function for the first time, you will notice that Torch downloads the test dataset. However, subsequent invocations - even those not covered by the invocation’s keep_alive
- will skip the download and proceed directly to your logic.