forked from jina-ai/dalle-flow
-
Notifications
You must be signed in to change notification settings - Fork 1
/
flow.yml
38 lines (38 loc) · 1.32 KB
/
flow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
jtype: Flow
with:
protocol: grpc
port: 51005
monitoring: true # enable prometheus & grafana
env:
JINA_LOG_LEVEL: debug
executors:
- name: dalle
uses: executors/dalle/config.yml
timeout_ready: -1 # slow download speed often leads to timeout
env:
CUDA_VISIBLE_DEVICES: 0 # change this if you have multiple GPU
XLA_PYTHON_CLIENT_ALLOCATOR: platform # https://jax.readthedocs.io/en/latest/gpu_memory_allocation.html
replicas: 1 # change this if you have larger VRAM
- name: clip_encoder
uses: jinahub+docker://CLIPTorchEncoder/latest-gpu
needs: [gateway]
- name: diffusion
uses: executors/glid3/config.yml
timeout_ready: -1 # slow download speed often leads to timeout
env:
CUDA_VISIBLE_DEVICES: 0 # change this if you have multiple GPU
XLA_PYTHON_CLIENT_ALLOCATOR: platform # https://jax.readthedocs.io/en/latest/gpu_memory_allocation.html
replicas: 1 # change this if you have larger VRAM
needs: [clip_encoder]
- name: rerank
uses: jinahub+docker://CLIPTorchEncoder/latest-gpu
uses_requests:
'/': rank
needs: [dalle, diffusion]
- name: upscaler
uses: executors/swinir/config.yml
env:
CUDA_VISIBLE_DEVICES: 0 # change this if you have multiple GPU
- name: store
uses: executors/store/config.yml
floating: true