OssamaLafhel commited on
Commit
8764899
·
1 Parent(s): 038c683

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -2
handler.py CHANGED
@@ -158,9 +158,8 @@ transformers.models.gptj.modeling_gptj.GPTJBlock = GPTJBlock # monkey-patch GPT
158
 
159
 
160
  # -----------------------------------------> API <---------------------------------------
161
- path=""
162
  tokenizer = transformers.AutoTokenizer.from_pretrained("EleutherAI/gpt-j-6B")
163
- model = GPTJForCausalLM.from_pretrained(path, low_cpu_mem_usage=True)
164
  device = 0 if torch.cuda.is_available() else -1
165
 
166
 
 
158
 
159
 
160
  # -----------------------------------------> API <---------------------------------------
 
161
  tokenizer = transformers.AutoTokenizer.from_pretrained("EleutherAI/gpt-j-6B")
162
+ model = GPTJForCausalLM.from_pretrained("Kanpredict/gptj-6b-8bits", low_cpu_mem_usage=True)
163
  device = 0 if torch.cuda.is_available() else -1
164
 
165