asadmasad commited on
Commit
c688783
1 Parent(s): dad6b8d

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -3,7 +3,7 @@ from typing import Any, Dict
3
  import torch
4
  from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig
5
 
6
- from peft import PeftConfig, PeftModel
7
 
8
 
9
  class EndpointHandler:
@@ -11,7 +11,7 @@ class EndpointHandler:
11
  # load model and processor from path
12
  self.tokenizer = AutoTokenizer.from_pretrained(path)
13
  # try:
14
- config = AutoConfig.from_pretrained(path)
15
  model = AutoModelForCausalLM.from_pretrained(
16
  path,
17
  # return_dict=True,
 
3
  import torch
4
  from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig
5
 
6
+ # from peft import PeftConfig, PeftModel
7
 
8
 
9
  class EndpointHandler:
 
11
  # load model and processor from path
12
  self.tokenizer = AutoTokenizer.from_pretrained(path)
13
  # try:
14
+ # config = AutoConfig.from_pretrained(path)
15
  model = AutoModelForCausalLM.from_pretrained(
16
  path,
17
  # return_dict=True,