Skip to content

Commit

Permalink
Add registry for ICL datasets (#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjari-orb authored Jun 14, 2024
1 parent 9b9fc24 commit 1a2fac0
Show file tree
Hide file tree
Showing 6 changed files with 537 additions and 428 deletions.
12 changes: 12 additions & 0 deletions llmfoundry/eval/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@
tokenizer_needs_prefix_space,
trim_context,
)
from llmfoundry.registry import icl_datasets

icl_datasets.register(
'multiple_choice',
func=InContextLearningMultipleChoiceTaskDataset,
)
icl_datasets.register('schema', func=InContextLearningSchemaTaskDataset)
icl_datasets.register('language_modeling', func=InContextLearningLMTaskDataset)
icl_datasets.register(
'generation_task_with_answers',
func=InContextLearningGenerationTaskWithAnswersDataset,
)

__all__ = [
'InContextLearningDataset',
Expand Down
Loading

0 comments on commit 1a2fac0

Please sign in to comment.