ssaroya commited on
Commit
5e4faa3
·
1 Parent(s): 320d690

Update handler.py

Browse files
Files changed (1) hide show
  1. 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="",