yonikremer commited on
Commit
8cb460c
1 Parent(s): 3b92fdb

testing using small models

Browse files
Files changed (1) hide show
  1. tests.py +2 -6
tests.py CHANGED
@@ -1,7 +1,6 @@
1
  import pytest as pytest
2
  from grouped_sampling import GroupedSamplingPipeLine, UnsupportedModelNameException
3
 
4
- from available_models import AVAILABLE_MODELS
5
  from hanlde_form_submit import create_pipeline, on_form_submit
6
 
7
 
@@ -20,11 +19,8 @@ def test_on_form_submit():
20
  on_form_submit(unsupported_model_name, output_length, prompt)
21
 
22
 
23
- @pytest.mark.parametrize(
24
- "model_name",
25
- AVAILABLE_MODELS,
26
- )
27
- def test_create_pipeline(model_name: str):
28
  pipeline: GroupedSamplingPipeLine = create_pipeline(model_name, 5)
29
  assert pipeline is not None
30
  assert pipeline.model_name == model_name
 
1
  import pytest as pytest
2
  from grouped_sampling import GroupedSamplingPipeLine, UnsupportedModelNameException
3
 
 
4
  from hanlde_form_submit import create_pipeline, on_form_submit
5
 
6
 
 
19
  on_form_submit(unsupported_model_name, output_length, prompt)
20
 
21
 
22
+ def test_create_pipeline():
23
+ model_name = "gpt2"
 
 
 
24
  pipeline: GroupedSamplingPipeLine = create_pipeline(model_name, 5)
25
  assert pipeline is not None
26
  assert pipeline.model_name == model_name