Upload card.py with huggingface_hub
Browse files
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
|