Wolf369 commited on
Commit
63464ea
1 Parent(s): 690145e

Testing inference

Browse files
Files changed (1) hide show
  1. main.py +6 -1
main.py CHANGED
@@ -13,4 +13,9 @@ def read_root():
13
  "The future of AI is",
14
  ]
15
  sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
16
- return {"output": sampling_params}
 
 
 
 
 
 
13
  "The future of AI is",
14
  ]
15
  sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
16
+
17
+ llm = LLM(model="facebook/opt-125m")
18
+
19
+ outputs = llm.generate(prompts, sampling_params)
20
+
21
+ return {"outputs": outputs}