BeveledCube commited on
Commit
054e3fb
·
verified ·
1 Parent(s): c585aae

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -5
main.py CHANGED
@@ -12,8 +12,6 @@ app = FastAPI()
12
  name = "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
13
  customGen = False
14
 
15
- # TinyLlama/TinyLlama-1.1B-Chat-v1.0
16
-
17
  # microsoft/DialoGPT-small
18
  # microsoft/DialoGPT-medium
19
  # microsoft/DialoGPT-large
@@ -24,9 +22,6 @@ customGen = False
24
  model = AutoModelForCausalLM.from_pretrained(name)
25
  tokenizer = AutoTokenizer.from_pretrained(name)
26
 
27
- gpt2model = GPT2LMHeadModel.from_pretrained(name)
28
- gpt2tokenizer = GPT2Tokenizer.from_pretrained(name)
29
-
30
  class req(BaseModel):
31
  prompt: str
32
  length: int
 
12
  name = "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
13
  customGen = False
14
 
 
 
15
  # microsoft/DialoGPT-small
16
  # microsoft/DialoGPT-medium
17
  # microsoft/DialoGPT-large
 
22
  model = AutoModelForCausalLM.from_pretrained(name)
23
  tokenizer = AutoTokenizer.from_pretrained(name)
24
 
 
 
 
25
  class req(BaseModel):
26
  prompt: str
27
  length: int