IlyasMoutawwakil HF staff commited on
Commit
049539c
1 Parent(s): 4d99b49

add some tiny models for testing

Browse files
Files changed (2) hide show
  1. app.py +9 -2
  2. config_store.py +1 -1
app.py CHANGED
@@ -29,10 +29,17 @@ DEVICE = "cpu"
29
  LAUNCHER = "process"
30
  SCENARIO = "inference"
31
  BACKENDS = ["pytorch", "openvino"]
32
- MODELS = ["google-bert/bert-base-uncased", "openai-community/gpt2"]
 
 
 
 
 
33
  MODELS_TO_TASKS = {
34
- "google-bert/bert-base-uncased": "text-classification",
35
  "openai-community/gpt2": "text-generation",
 
 
 
36
  }
37
  TASKS = set(TASKS_TO_OVMODEL.keys()) & set(TASKS_TO_MODEL_LOADERS.keys())
38
 
 
29
  LAUNCHER = "process"
30
  SCENARIO = "inference"
31
  BACKENDS = ["pytorch", "openvino"]
32
+ MODELS = [
33
+ "openai-community/gpt2",
34
+ "google-bert/bert-base-uncased",
35
+ "hf-internal-testing/tiny-random-LlamaForCausalLM",
36
+ "hf-internal-testing/tiny-random-BertForSequenceClassification",
37
+ ]
38
  MODELS_TO_TASKS = {
 
39
  "openai-community/gpt2": "text-generation",
40
+ "google-bert/bert-base-uncased": "text-classification",
41
+ "hf-internal-testing/tiny-random-LlamaForCausalLM": "text-generation",
42
+ "hf-internal-testing/tiny-random-BertForSequenceClassification": "text-classification",
43
  }
44
  TASKS = set(TASKS_TO_OVMODEL.keys()) & set(TASKS_TO_MODEL_LOADERS.keys())
45
 
config_store.py CHANGED
@@ -54,7 +54,7 @@ def get_inference_config():
54
  ),
55
  "inference.input_shapes": gr.Textbox(
56
  label="inference.input_shapes",
57
- value="{'batch_size': 1, 'sequence_length': 128}",
58
  info="Input shapes to use for the benchmark",
59
  ),
60
  "inference.generate_kwargs": gr.Textbox(
 
54
  ),
55
  "inference.input_shapes": gr.Textbox(
56
  label="inference.input_shapes",
57
+ value="{'batch_size': 2, 'sequence_length': 16}",
58
  info="Input shapes to use for the benchmark",
59
  ),
60
  "inference.generate_kwargs": gr.Textbox(