• Stars
    star
    519
  • Rank 85,261 (Top 2 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created 11 months ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

⚡ Fastest way to serve open source ML models to millions

fal

fal is a serverless Python runtime that lets you run and scale code in the cloud with no infra management.

With fal, you can build pipelines, serve ML models and scale them up to many users. You scale down to 0 when you don't use any resources.

Quickstart

First, you need to install the fal package. You can do so using pip:

pip install fal

Then you need to authenticate:

fal auth login

You can also use fal keys that you can get from our dashboard.

Now can use the fal package in your Python scripts as follows:

import fal

@fal.function(
    "virtualenv",
    requirements=["pyjokes"],
)
def tell_joke() -> str:
    import pyjokes

    joke = pyjokes.get_joke()
    return joke

print("Joke from the clouds: ", tell_joke())

A new virtual environment will be created by fal in the cloud and the set of requirements that we passed will be installed as soon as this function is called. From that point on, our code will be executed as if it were running locally, and the joke prepared by the pyjokes library will be returned.

Next steps

If you would like to find out more about the capabilities of fal, check out to the docs. You can learn more about persistent storage, function caches and deploying your functions as API endpoints.

More Repositories

1

dbt-fal

do more with dbt. dbt-fal helps you run Python alongside dbt, so you can send Slack alerts, detect anomalies and build machine learning models.
Python
851
star
2

sdxl-lightning-demo-app

A demo application using fal.realtime and the lightning fast SDXL API provided by fal
JavaScript
523
star
3

fal-swift

Swift client for the fal.ai model APIs
Swift
163
star
4

edit-anything-app

The source of the demo app for fal-serverless + Next.js
TypeScript
118
star
5

isolate

🛡️ Managed isolated environments for Python
Python
75
star
6

fal-js

The JavaScript client and utilities to fal-serverless with built-in TypeScript definitions
TypeScript
75
star
7

awesome

List of awesome projects powered by fal.ai
44
star
8

text-to-image

A single API for text-to-image, built on fal that supports all Stable Diffusion variants
Python
42
star
9

dbt_feature_store

Build your feature store with macros right within your dbt repository
Python
37
star
10

stable-diffusion-benchmarks

Comparison of different stable diffusion implementations and optimizations
Python
36
star
11

fal-with-react-native

AI inference using fal.ai on a React Native app
TypeScript
28
star
12

interactive-3d-demo-app

Interactive 3d demo of 3d and image AI inference provided by fal.ai
TypeScript
24
star
13

dbt-cloud-action

This action lets you trigger a job run on dbt Cloud.
JavaScript
23
star
14

fal_dbt_examples

Examples showing real-life use cases for fal + dbt
Jupyter Notebook
17
star
15

lcm-websocket-demo

JavaScript
12
star
16

upscaler-battleground-demo-app

Upscaler demo app showing the different available upscaling models served by fal.ai
TypeScript
10
star
17

fal-java

A JVM-compatible, Java & Kotlin, client for the fal.ai model APIs
Java
10
star
18

chat-with-fal-app

TypeScript
8
star
19

fal-teller

An Apache Arrow native dynamic storage proxy layer for query engines.
Python
7
star
20

fal-dart

The fal.ai serverless client for Dart and Flutter
Dart
6
star
21

dbt-datafusion

Python
6
star
22

workflow-utils

Python
6
star
23

fal-nextjs-template

TypeScript
5
star
24

serverless-vscode

The VS Code extension for fal-serverless.
TypeScript
5
star
25

dbt_fal_ml_example

Jupyter Notebook
4
star
26

fal-bot

Python
4
star
27

fal_bike_example

Example of using the dbt-cloud-action to run with fal run in GH Actions
Python
4
star
28

dbt_feature_store_example

3
star
29

poe-fal-video-maker

A video maker Poe bot powered by fal.ai
Python
3
star
30

dbt_fal_ml_example2

Jupyter Notebook
2
star
31

tldraw-fal

TypeScript
2
star
32

zendesk_example

Python
1
star
33

fal-sagemaker-example

Example dbt project using fal and Sagemaker
Python
1
star
34

fal_dbt_test

Python
1
star
35

dbt-fal-serverless-demo

Python
1
star
36

fal-poe-bots

Python
1
star