Elron commited on
Commit
65349c8
1 Parent(s): a1c657e

Upload card.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. card.py +9 -0
card.py CHANGED
@@ -14,3 +14,12 @@ class TaskCard(Artifact):
14
  preprocess_steps: Optional[List[StreamingOperator]] = None
15
  templates: Union[TemplatesList, TemplatesDict] = None
16
  instructions: Union[InstructionsList, InstructionsDict] = None
 
 
 
 
 
 
 
 
 
 
14
  preprocess_steps: Optional[List[StreamingOperator]] = None
15
  templates: Union[TemplatesList, TemplatesDict] = None
16
  instructions: Union[InstructionsList, InstructionsDict] = None
17
+
18
+ class ICLCard(Artifact):
19
+ demos_pool_name: str = "demos_pool"
20
+ demos_pool_size: int = None
21
+ demos_field: str = "demos"
22
+ num_demos: int = None
23
+ sampler_type: str = "random"
24
+ instruction_item: Union[str, int] = None
25
+ template_item: Union[str, int] = None