forked from meta-llama/llama-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
datasets.py
28 lines (21 loc) · 809 Bytes
/
datasets.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement.
from dataclasses import dataclass
@dataclass
class samsum_dataset:
dataset: str = "samsum_dataset"
train_split: str = "train"
test_split: str = "validation"
input_length: int = 2048
@dataclass
class grammar_dataset:
dataset: str = "grammar_dataset"
train_split: str = "ft_datasets/grammar_dataset/gtrain_10k.csv"
test_split: str = "ft_datasets/grammar_dataset/grammar_validation.csv"
input_length: int = 2048
@dataclass
class alpaca_dataset:
dataset: str = "alpaca_dataset"
train_split: str = "train"
test_split: str = "val"
data_path: str = "ft_datasets/alpaca_data.json"