Update app.py
Browse files
app.py
CHANGED
@@ -101,7 +101,10 @@ def loadModel():
|
|
101 |
device_map="auto",
|
102 |
quantization_config=quantization_config,
|
103 |
max_memory={
|
104 |
-
0: "
|
|
|
|
|
|
|
105 |
"cpu": "40GB" # CPU with 100GB memory
|
106 |
},
|
107 |
)
|
|
|
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 |
)
|