THU CSST 2023 Spring
选题派生于2023年OS能力挑战赛赛题proj202-Serverless-WASM-AIGC
。
graph TD;
dispatcher ----> OpenFaaS ----> K8s -----> k3d;
k3d -----> K8s -----> OpenFaaS -----> dispatcher;
Path | Description |
---|---|
batching |
Implementation of batching strategy (OTP) |
figs |
Figures used in this README |
functions |
Implementation of functions and dockerfiles |
gpt-2 |
Implementation of GPT-2 model from another repo. |
stable-diffusion |
Implementation of Stable Diffusion model from another repo. |
test |
Test scripts |
Tetris |
Official code of Tetris* from another repo. |
* Li, J., L. Zhao, Y. Yang, K. Zhan and K. Li (2022). Tetris: Memory-efficient Serverless Inference through Tensor Sharing. USENIX Annual Technical Conference.
Please refer to Wiki in this repo for pre-requisites and server setup.
-
To require text generation service, run:
python test/demo_gpt2.py
-
To require image generation service, run:
python test/demo_sd.py
-
To require code generation service, run:
python test/demo_codegen.py
Please refer to Wiki in this repo.
Recommended Citation: -