Upload common.py with huggingface_hub
Browse files
common.py
CHANGED
@@ -1,17 +1,16 @@
|
|
1 |
-
from
|
2 |
-
|
3 |
from .card import TaskCard
|
4 |
-
from .splitters import SliceSplit, SpreadSplit, RandomSampler
|
5 |
-
from .recipe import SequentialRecipe, Recipe
|
6 |
from .collections import ItemPicker, RandomPicker
|
7 |
-
from .
|
|
|
8 |
from .schema import ToUnitxtGroup
|
9 |
-
|
10 |
-
from
|
|
|
11 |
|
12 |
|
13 |
class CommonRecipe(Recipe, SourceOperator):
|
14 |
-
|
15 |
card: TaskCard
|
16 |
demos_pool_name: str = "demos_pool"
|
17 |
demos_pool_size: int = None
|
|
|
1 |
+
from typing import Union
|
2 |
+
|
3 |
from .card import TaskCard
|
|
|
|
|
4 |
from .collections import ItemPicker, RandomPicker
|
5 |
+
from .operator import SourceOperator
|
6 |
+
from .recipe import Recipe, SequentialRecipe
|
7 |
from .schema import ToUnitxtGroup
|
8 |
+
from .splitters import RandomSampler, SliceSplit, SpreadSplit
|
9 |
+
from .stream import MultiStream
|
10 |
+
from .templates import RenderTemplatedICL
|
11 |
|
12 |
|
13 |
class CommonRecipe(Recipe, SourceOperator):
|
|
|
14 |
card: TaskCard
|
15 |
demos_pool_name: str = "demos_pool"
|
16 |
demos_pool_size: int = None
|