BBQGOD / os_course_project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OS Course Project

THU CSST 2023 Spring

1. Introduction

选题派生于2023年OS能力挑战赛赛题proj202-Serverless-WASM-AIGC

实验目标

mission

2. Design

2.1. Architecture

graph TD;
    dispatcher ----> OpenFaaS ----> K8s -----> k3d;
    k3d -----> K8s -----> OpenFaaS -----> dispatcher;
Loading

2.2. OTP Dispatcher

rebatching

2.3. Repository Structure

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.

3. Usage

3.1. Quick Start

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

3.2. Replication

Please refer to Wiki in this repo.

4. Reference

Recommended Citation: -

About


Languages

Language:Python 91.4%Language:Dockerfile 8.1%Language:Shell 0.6%