Update handler.py
Browse files- handler.py +3 -0
handler.py
CHANGED
@@ -7,6 +7,9 @@ from utils import find_layers, DEV
|
|
7 |
from transformers import AutoTokenizer, LlamaConfig, LlamaForCausalLM
|
8 |
import os
|
9 |
|
|
|
|
|
|
|
10 |
class EndpointHandler:
|
11 |
def __init__(self,
|
12 |
path="",
|
|
|
7 |
from transformers import AutoTokenizer, LlamaConfig, LlamaForCausalLM
|
8 |
import os
|
9 |
|
10 |
+
import os
|
11 |
+
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
|
12 |
+
|
13 |
class EndpointHandler:
|
14 |
def __init__(self,
|
15 |
path="",
|