Upload blocks.py with huggingface_hub
Browse files
blocks.py
CHANGED
|
@@ -1,86 +1,38 @@
|
|
| 1 |
-
from .
|
| 2 |
-
|
| 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 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
| 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 |
-
)
|
|
|
|
| 1 |
+
from .card import TaskCard
|
| 2 |
+
from .catalog import LocalCatalog
|
| 3 |
+
from .collections import ItemPicker, RandomPicker
|
| 4 |
+
from .common import CommonRecipe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
from .instructions import (
|
|
|
|
|
|
|
| 6 |
Instruction,
|
| 7 |
+
InstructionsDict,
|
| 8 |
+
InstructionsList,
|
| 9 |
TextualInstruction,
|
| 10 |
)
|
| 11 |
+
from .loaders import LoadHF
|
| 12 |
+
from .metrics import Accuracy
|
| 13 |
+
from .normalizers import NormalizeListFields
|
| 14 |
+
from .operators import AddFields, MapInstanceValues
|
| 15 |
+
from .processors import ToString
|
| 16 |
+
from .recipe import SequentialRecipe
|
| 17 |
+
from .splitters import RandomSampler, SliceSplit, SplitRandomMix, SpreadSplit
|
| 18 |
+
from .stream import MultiStream
|
| 19 |
+
from .task import FormTask
|
| 20 |
from .templates import (
|
| 21 |
+
AutoInputOutputTemplate,
|
| 22 |
+
InputOutputTemplate,
|
| 23 |
+
RenderAutoFormatTemplate,
|
| 24 |
+
RenderFormatTemplate,
|
| 25 |
+
RenderTemplatedICL,
|
| 26 |
Template,
|
| 27 |
+
TemplatesDict,
|
| 28 |
+
TemplatesList,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
)
|
| 30 |
|
| 31 |
# from .validate import (
|
| 32 |
# ValidateStandartSchema
|
| 33 |
# )
|
| 34 |
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
# from .metric import (
|
| 37 |
# MetricRecipe,
|
| 38 |
# )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|