mamkkl commited on
Commit
bc1f27f
·
verified ·
1 Parent(s): 84cca03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -101,10 +101,10 @@ def loadModel():
101
  device_map="auto",
102
  quantization_config=quantization_config,
103
  max_memory={
104
- 0: "10GB", # GPU 0 with 20GB memory
105
- 1: "10GB", # GPU 0 with 20GB memory
106
- 2: "10GB", # GPU 0 with 20GB memory
107
- 3: "10GB", # GPU 0 with 20GB memory
108
  "cpu": "40GB" # CPU with 100GB memory
109
  },
110
  )
 
101
  device_map="auto",
102
  quantization_config=quantization_config,
103
  max_memory={
104
+ 0: "5GB", # GPU 0 with 20GB memory
105
+ 1: "20GB", # GPU 0 with 20GB memory
106
+ 2: "20GB", # GPU 0 with 20GB memory
107
+ 3: "20GB", # GPU 0 with 20GB memory
108
  "cpu": "40GB" # CPU with 100GB memory
109
  },
110
  )