Update handler.py
Browse files- handler.py +1 -0
handler.py
CHANGED
@@ -16,6 +16,7 @@ class EndpointHandler():
|
|
16 |
|
17 |
model = AutoModelForCausalLM.from_pretrained(
|
18 |
config.base_model_name_or_path,
|
|
|
19 |
trust_remote_code=True,
|
20 |
device_map="auto"
|
21 |
)
|
|
|
16 |
|
17 |
model = AutoModelForCausalLM.from_pretrained(
|
18 |
config.base_model_name_or_path,
|
19 |
+
load_in_8bit=True,
|
20 |
trust_remote_code=True,
|
21 |
device_map="auto"
|
22 |
)
|