mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-01-22 06:19:35 -05:00
fix(tests): ensure_available on tests
Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
@@ -32,7 +32,7 @@ def flan_t5_id() -> str:
|
||||
|
||||
|
||||
def test_small_flan(qa_prompt: str, flan_t5_id: str):
|
||||
llm = openllm.AutoLLM.for_model("flan-t5", model_id=flan_t5_id)
|
||||
llm = openllm.AutoLLM.for_model("flan-t5", model_id=flan_t5_id, ensure_available=True)
|
||||
generate = llm(qa_prompt)
|
||||
assert generate
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ def opt_id() -> str:
|
||||
|
||||
|
||||
def test_small_opt(qa_prompt: str, opt_id: str):
|
||||
llm = openllm.AutoLLM.for_model("opt", model_id=opt_id)
|
||||
llm = openllm.AutoLLM.for_model("opt", model_id=opt_id, ensure_available=True)
|
||||
generate = llm(qa_prompt)
|
||||
assert generate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user