Elron commited on
Commit
e7ab33e
1 Parent(s): f2b3434

Upload blocks.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. blocks.py +86 -0
blocks.py ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from .recipe import (
2
+ SequentialRecipe,
3
+ )
4
+
5
+ from .loaders import (
6
+ LoadHF,
7
+ )
8
+
9
+ from .splitters import (
10
+ SplitRandomMix,
11
+ SliceSplit,
12
+ SpreadSplit,
13
+ RandomSampler,
14
+ )
15
+
16
+ from .task import (
17
+ FormTask,
18
+ )
19
+
20
+ from .templates import (
21
+ RenderAutoFormatTemplate,
22
+ RenderFormatTemplate,
23
+ RenderTemplatedICL,
24
+ TemplatesList,
25
+ InputOutputTemplate,
26
+ AutoInputOutputTemplate,
27
+ )
28
+
29
+ from .catalog import (
30
+ LocalCatalog,
31
+ )
32
+
33
+ from .operators import (
34
+ AddFields,
35
+ MapInstanceValues,
36
+ )
37
+
38
+ from .normalizers import (
39
+ NormalizeListFields,
40
+ )
41
+
42
+ from .instructions import (
43
+ InstructionsList,
44
+ InstructionsDict,
45
+ Instruction,
46
+ TextualInstruction,
47
+ )
48
+
49
+ from .templates import (
50
+ TemplatesList,
51
+ TemplatesDict,
52
+ Template,
53
+ )
54
+
55
+ from .card import (
56
+ TaskCard,
57
+ )
58
+
59
+ from .collections import (
60
+ ItemPicker,
61
+ RandomPicker,
62
+ )
63
+
64
+ from .common import (
65
+ CommonRecipe,
66
+ )
67
+
68
+ # from .validate import (
69
+ # ValidateStandartSchema
70
+ # )
71
+
72
+ from .stream import (
73
+ MultiStream,
74
+ )
75
+
76
+ # from .metric import (
77
+ # MetricRecipe,
78
+ # )
79
+
80
+ from .processors import (
81
+ ToString,
82
+ )
83
+
84
+ from .metrics import (
85
+ Accuracy,
86
+ )