-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Streamlit demo | ||
|
||
## Instructions | ||
|
||
1. Build and install FlexFlow, or build and run `source ./set_python_envs.sh` from the build folder | ||
2. Edit the FlexFlow/inference/python/streamlit/fastapi_incr.py to configure the model to run and the system configs (num gpus, amount of memory, etc) | ||
3. In one terminal, launch the LLM engine with the commands below, and wait until the model's weights loading completes | ||
``` | ||
cd FlexFlow/inference/python/streamlit | ||
python fastapi_incr.py | ||
``` | ||
4. In another terminal, launch the streamlit app: | ||
``` | ||
cd FlexFlow/inference/python/streamlit | ||
streamlit run app.py | ||
``` | ||
5. Open the URL printed to the terminal, e.g. `http://localhost:8501` and interact with the app via browser | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters