dataflex 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dataflex/__init__.py +4 -0
- dataflex/cli.py +202 -0
- dataflex/configs/components.yaml +151 -0
- dataflex/core/__init__.py +0 -0
- dataflex/core/registry.py +32 -0
- dataflex/launcher.py +147 -0
- dataflex/offline_selector/offline_near_selector.py +195 -0
- dataflex/offline_selector/offline_tsds_selector.py +251 -0
- dataflex/train/__init__.py +0 -0
- dataflex/train/data/__init__.py +0 -0
- dataflex/train/data/loader.py +164 -0
- dataflex/train/dataset/__init__.py +3 -0
- dataflex/train/dataset/mixed_proportion_manager.py +167 -0
- dataflex/train/hparams/__init__.py +0 -0
- dataflex/train/hparams/dynamic_data_params.py +200 -0
- dataflex/train/hparams/dynamic_params.py +649 -0
- dataflex/train/mixer/__init__.py +5 -0
- dataflex/train/mixer/base_mixer.py +21 -0
- dataflex/train/mixer/doremi_mixer.py +312 -0
- dataflex/train/mixer/dynamic_moe_mixer.py +381 -0
- dataflex/train/mixer/odm_mixer.py +278 -0
- dataflex/train/mixer/random_mixer.py +27 -0
- dataflex/train/mixer/static_mixer.py +47 -0
- dataflex/train/selector/__init__.py +8 -0
- dataflex/train/selector/base_selector.py +56 -0
- dataflex/train/selector/custom_selector.py +38 -0
- dataflex/train/selector/delta_loss_selector.py +271 -0
- dataflex/train/selector/less_selector.py +389 -0
- dataflex/train/selector/loss_selector.py +197 -0
- dataflex/train/selector/near_selector.py +83 -0
- dataflex/train/selector/nice_selector.py +658 -0
- dataflex/train/selector/random_selector.py +59 -0
- dataflex/train/selector/tsds_selector.py +45 -0
- dataflex/train/trainer/__init__.py +0 -0
- dataflex/train/trainer/mix_trainer.py +1102 -0
- dataflex/train/trainer/select_trainer.py +887 -0
- dataflex/train/trainer/weight_trainer.py +773 -0
- dataflex/train/weighter/__init__.py +3 -0
- dataflex/train/weighter/base_weighter.py +147 -0
- dataflex/train/weighter/custom_weighter.py +52 -0
- dataflex/train/weighter/loss_weighter.py +133 -0
- dataflex/utils/__init__.py +0 -0
- dataflex/utils/load_component.py +24 -0
- dataflex/utils/logging.py +6 -0
- dataflex/utils/selector_io.py +43 -0
- dataflex/version.py +21 -0
- dataflex-1.0.0.dist-info/METADATA +385 -0
- dataflex-1.0.0.dist-info/RECORD +52 -0
- dataflex-1.0.0.dist-info/WHEEL +5 -0
- dataflex-1.0.0.dist-info/entry_points.txt +2 -0
- dataflex-1.0.0.dist-info/licenses/LICENSE +200 -0
- dataflex-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# 文件:llamafactory/data/mixture_dataset_runtime.py
|
|
2
|
+
import numpy as np
|
|
3
|
+
from typing import Dict, List, Any, Optional, Tuple
|
|
4
|
+
from torch.utils.data import Dataset as TorchDataset
|
|
5
|
+
from datasets import Dataset as HFDataset
|
|
6
|
+
|
|
7
|
+
class _MixedSnapshot(TorchDataset):
|
|
8
|
+
"""一次 rebuild 结果的只读快照,可直接喂给 DataLoader。"""
|
|
9
|
+
def __init__(self, names: List[str], sources: Dict[str, HFDataset], index_table: List[Tuple[int, int]]):
|
|
10
|
+
self.names = names
|
|
11
|
+
self.sources = sources
|
|
12
|
+
self.index_table = index_table
|
|
13
|
+
def __len__(self): return len(self.index_table)
|
|
14
|
+
def __getitem__(self, idx: int) -> Dict[str, Any]:
|
|
15
|
+
si, row = self.index_table[idx]
|
|
16
|
+
name = self.names[si]
|
|
17
|
+
item = self.sources[name][row]
|
|
18
|
+
# Add domain_id to track which domain this sample belongs to
|
|
19
|
+
# This is needed by DoReMi mixer to compute per-domain excess losses
|
|
20
|
+
if isinstance(item, dict):
|
|
21
|
+
item['domain_id'] = si
|
|
22
|
+
return item
|
|
23
|
+
|
|
24
|
+
class MixedProportionManager:
|
|
25
|
+
"""
|
|
26
|
+
混合管理器:
|
|
27
|
+
- 传入:各来源的『已预处理』HF Dataset(字段已与 collator/模板对齐)
|
|
28
|
+
- set_proportions([...]):更新比例
|
|
29
|
+
- rebuild(num_samples=None, seed=None) -> Dataset:返回新的快照 Dataset
|
|
30
|
+
"""
|
|
31
|
+
def __init__(
|
|
32
|
+
self,
|
|
33
|
+
per_source: Dict[str, HFDataset],
|
|
34
|
+
sample_rule: str = "mixture",
|
|
35
|
+
proportions: Optional[List[float]] = None,
|
|
36
|
+
seed: int = 42,
|
|
37
|
+
slice_list: Optional[List[str]] = None,
|
|
38
|
+
logger=None,
|
|
39
|
+
):
|
|
40
|
+
assert len(per_source) > 0
|
|
41
|
+
self.logger = logger
|
|
42
|
+
all_names = list(per_source.keys())
|
|
43
|
+
if slice_list:
|
|
44
|
+
names = [n for n in all_names if n in set(slice_list)]
|
|
45
|
+
else:
|
|
46
|
+
names = all_names
|
|
47
|
+
self.names = names
|
|
48
|
+
self.k = len(names)
|
|
49
|
+
self.sources = {k: per_source[k] for k in names}
|
|
50
|
+
self.sample_rule = sample_rule
|
|
51
|
+
self._seed = seed
|
|
52
|
+
self.rng = np.random.default_rng(seed)
|
|
53
|
+
self.sizes = {k: len(v) for k, v in self.sources.items()}
|
|
54
|
+
|
|
55
|
+
# Store initial proportions for mixers to access
|
|
56
|
+
self.initial_proportions = proportions.copy() if proportions is not None else None
|
|
57
|
+
|
|
58
|
+
self.set_proportions(proportions)
|
|
59
|
+
|
|
60
|
+
def set_proportions(self, proportions: Optional[List[float]]):
|
|
61
|
+
k = self.k
|
|
62
|
+
if self.sample_rule == "mixture":
|
|
63
|
+
# mixture: 用用户指定比例,否则均匀
|
|
64
|
+
if proportions is None:
|
|
65
|
+
probs = np.repeat(1.0 / k, k)
|
|
66
|
+
else:
|
|
67
|
+
assert len(proportions) == k, f"proportions 长度 {len(proportions)} != 源数 {k}"
|
|
68
|
+
probs = np.array(proportions, dtype=float)
|
|
69
|
+
probs = probs / probs.sum()
|
|
70
|
+
|
|
71
|
+
elif self.sample_rule == "stratified":
|
|
72
|
+
# stratified: 按源数据集大小比例分层
|
|
73
|
+
sizes = np.array([self.sizes[n] for n in self.names], dtype=float)
|
|
74
|
+
probs = sizes / sizes.sum()
|
|
75
|
+
|
|
76
|
+
elif self.sample_rule == "uniform":
|
|
77
|
+
# uniform: 强制均匀分布
|
|
78
|
+
probs = np.repeat(1.0 / k, k)
|
|
79
|
+
|
|
80
|
+
else:
|
|
81
|
+
raise ValueError(f"Unknown sample_rule={self.sample_rule}")
|
|
82
|
+
|
|
83
|
+
self.probs = probs
|
|
84
|
+
|
|
85
|
+
def _current_probs(self) -> np.ndarray:
|
|
86
|
+
"""
|
|
87
|
+
根据当前 sample_rule 计算“应当使用”的比例,不依赖 self.probs,
|
|
88
|
+
确保在 stratified/uniform 下不会受到旧状态影响。
|
|
89
|
+
仅用作信息打印
|
|
90
|
+
"""
|
|
91
|
+
k = self.k
|
|
92
|
+
if self.sample_rule == "mixture":
|
|
93
|
+
# mixture 下仍然使用 set_proportions 设定的 self.probs
|
|
94
|
+
return np.array(self.probs, dtype=float)
|
|
95
|
+
|
|
96
|
+
elif self.sample_rule == "stratified":
|
|
97
|
+
sizes = np.array([self.sizes[n] for n in self.names], dtype=float)
|
|
98
|
+
return sizes / sizes.sum()
|
|
99
|
+
|
|
100
|
+
elif self.sample_rule == "uniform":
|
|
101
|
+
return np.repeat(1.0 / k, k)
|
|
102
|
+
|
|
103
|
+
else:
|
|
104
|
+
raise ValueError(f"Unknown sample_rule={self.sample_rule}")
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def rebuild(self, num_samples: Optional[int] = None, seed: Optional[int] = None) -> TorchDataset:
|
|
109
|
+
if seed is not None:
|
|
110
|
+
self._seed = int(seed)
|
|
111
|
+
self.rng = np.random.default_rng(self._seed)
|
|
112
|
+
|
|
113
|
+
sizes = np.array([self.sizes[n] for n in self.names], dtype=int)
|
|
114
|
+
|
|
115
|
+
# Safety check: validate self.probs before using
|
|
116
|
+
probs = self.probs
|
|
117
|
+
if (not np.all(np.isfinite(probs))) or probs.sum() <= 0:
|
|
118
|
+
if self.logger:
|
|
119
|
+
self.logger.warning("[MixedProportionManager] probs invalid, reset to uniform")
|
|
120
|
+
probs = np.ones_like(probs, dtype=float) / len(probs)
|
|
121
|
+
self.probs = probs
|
|
122
|
+
|
|
123
|
+
# 按比例计算每个数据源的数量,使用更稳定的计算方式避免溢出
|
|
124
|
+
# 先计算每个比例对应的样本数,避免大数相乘
|
|
125
|
+
n_per = np.zeros(len(probs), dtype=np.int64) # 使用 int64 避免溢出
|
|
126
|
+
remaining = num_samples
|
|
127
|
+
|
|
128
|
+
for i in range(len(probs) - 1):
|
|
129
|
+
# 计算当前域的样本数,取整
|
|
130
|
+
n_i = int(np.floor(num_samples * probs[i]))
|
|
131
|
+
# 确保不超过剩余样本数
|
|
132
|
+
n_i = min(n_i, remaining)
|
|
133
|
+
n_per[i] = n_i
|
|
134
|
+
remaining -= n_i
|
|
135
|
+
|
|
136
|
+
# 最后一个域得到剩余的所有样本
|
|
137
|
+
n_per[-1] = remaining
|
|
138
|
+
|
|
139
|
+
# Additional safety check: ensure no negative values
|
|
140
|
+
if (n_per < 0).any() or not np.all(np.isfinite(n_per)):
|
|
141
|
+
if self.logger:
|
|
142
|
+
self.logger.warning("[MixedProportionManager] n_per invalid, reset to uniform allocation")
|
|
143
|
+
n_per = np.full_like(n_per, num_samples // len(n_per), dtype=int)
|
|
144
|
+
n_per[-1] += num_samples - n_per.sum()
|
|
145
|
+
|
|
146
|
+
# 确保没有负数(理论上不应该发生,但作为安全检查)
|
|
147
|
+
n_per = np.maximum(n_per, 0)
|
|
148
|
+
|
|
149
|
+
index_table: list[tuple[int, int]] = []
|
|
150
|
+
|
|
151
|
+
for si, (name, take) in enumerate(zip(self.names, n_per)):
|
|
152
|
+
cap = self.sizes[name]
|
|
153
|
+
# 无论 take 是否超过 cap,都直接从 0..cap-1 中抽样
|
|
154
|
+
# replace=True 可以保证数量足够
|
|
155
|
+
rows = self.rng.choice(cap, size=take, replace=True).tolist()
|
|
156
|
+
index_table.extend((si, r) for r in rows)
|
|
157
|
+
|
|
158
|
+
# 打乱最终索引表
|
|
159
|
+
perm = self.rng.permutation(len(index_table))
|
|
160
|
+
index_table = [index_table[i] for i in perm]
|
|
161
|
+
|
|
162
|
+
if self.logger:
|
|
163
|
+
plan = list(zip(self.names, self.probs.tolist(), n_per.tolist(), sizes.tolist()))
|
|
164
|
+
assert len(index_table) == num_samples
|
|
165
|
+
self.logger.info(f"[Mixture] plan (name, prob, take, cap): {plan}; total={len(index_table)}")
|
|
166
|
+
|
|
167
|
+
return _MixedSnapshot(self.names, self.sources, index_table)
|
|
File without changes
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# Copyright 2025 HuggingFace Inc. and the LlamaFactory team.
|
|
2
|
+
#
|
|
3
|
+
# This code is inspired by the HuggingFace's transformers library.
|
|
4
|
+
# https://github.com/huggingface/transformers/blob/v4.40.0/examples/pytorch/language-modeling/run_clm.py
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
|
|
18
|
+
from dataclasses import asdict, dataclass, field
|
|
19
|
+
from typing import Any, Literal, Optional
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@dataclass
|
|
23
|
+
class DataArguments:
|
|
24
|
+
r"""Arguments pertaining to what data we are going to input our model for training and evaluation."""
|
|
25
|
+
|
|
26
|
+
template: Optional[str] = field(
|
|
27
|
+
default=None,
|
|
28
|
+
metadata={"help": "Which template to use for constructing prompts in training and inference."},
|
|
29
|
+
)
|
|
30
|
+
dataset: Optional[str] = field(
|
|
31
|
+
default=None,
|
|
32
|
+
metadata={"help": "The name of dataset(s) to use for training. Use commas to separate multiple datasets."},
|
|
33
|
+
)
|
|
34
|
+
eval_dataset: Optional[str] = field(
|
|
35
|
+
default=None,
|
|
36
|
+
metadata={"help": "The name of dataset(s) to use for evaluation. Use commas to separate multiple datasets."},
|
|
37
|
+
)
|
|
38
|
+
dataset_dir: str = field(
|
|
39
|
+
default="data",
|
|
40
|
+
metadata={"help": "Path to the folder containing the datasets."},
|
|
41
|
+
)
|
|
42
|
+
media_dir: Optional[str] = field(
|
|
43
|
+
default=None,
|
|
44
|
+
metadata={"help": "Path to the folder containing the images, videos or audios. Defaults to `dataset_dir`."},
|
|
45
|
+
)
|
|
46
|
+
cutoff_len: int = field(
|
|
47
|
+
default=2048,
|
|
48
|
+
metadata={"help": "The cutoff length of the tokenized inputs in the dataset."},
|
|
49
|
+
)
|
|
50
|
+
train_on_prompt: bool = field(
|
|
51
|
+
default=False,
|
|
52
|
+
metadata={"help": "Whether or not to disable the mask on the prompt."},
|
|
53
|
+
)
|
|
54
|
+
mask_history: bool = field(
|
|
55
|
+
default=False,
|
|
56
|
+
metadata={"help": "Whether or not to mask the history and train on the last turn only."},
|
|
57
|
+
)
|
|
58
|
+
streaming: bool = field(
|
|
59
|
+
default=False,
|
|
60
|
+
metadata={"help": "Enable dataset streaming."},
|
|
61
|
+
)
|
|
62
|
+
buffer_size: int = field(
|
|
63
|
+
default=16384,
|
|
64
|
+
metadata={"help": "Size of the buffer to randomly sample examples from in dataset streaming."},
|
|
65
|
+
)
|
|
66
|
+
mix_strategy: Literal["concat", "interleave_under", "interleave_over"] = field(
|
|
67
|
+
default="concat",
|
|
68
|
+
metadata={"help": "Strategy to use in dataset mixing (concat/interleave) (undersampling/oversampling)."},
|
|
69
|
+
)
|
|
70
|
+
interleave_probs: Optional[str] = field(
|
|
71
|
+
default=None,
|
|
72
|
+
metadata={"help": "Probabilities to sample data from datasets. Use commas to separate multiple datasets."},
|
|
73
|
+
)
|
|
74
|
+
overwrite_cache: bool = field(
|
|
75
|
+
default=False,
|
|
76
|
+
metadata={"help": "Overwrite the cached training and evaluation sets."},
|
|
77
|
+
)
|
|
78
|
+
preprocessing_batch_size: int = field(
|
|
79
|
+
default=1000,
|
|
80
|
+
metadata={"help": "The number of examples in one group in pre-processing."},
|
|
81
|
+
)
|
|
82
|
+
preprocessing_num_workers: Optional[int] = field(
|
|
83
|
+
default=None,
|
|
84
|
+
metadata={"help": "The number of processes to use for the pre-processing."},
|
|
85
|
+
)
|
|
86
|
+
max_samples: Optional[int] = field(
|
|
87
|
+
default=None,
|
|
88
|
+
metadata={"help": "For debugging purposes, truncate the number of examples for each dataset."},
|
|
89
|
+
)
|
|
90
|
+
eval_num_beams: Optional[int] = field(
|
|
91
|
+
default=None,
|
|
92
|
+
metadata={"help": "Number of beams to use for evaluation. This argument will be passed to `model.generate`"},
|
|
93
|
+
)
|
|
94
|
+
ignore_pad_token_for_loss: bool = field(
|
|
95
|
+
default=True,
|
|
96
|
+
metadata={"help": "Whether or not to ignore the tokens corresponding to the pad label in loss computation."},
|
|
97
|
+
)
|
|
98
|
+
val_size: float = field(
|
|
99
|
+
default=0.0,
|
|
100
|
+
metadata={"help": "Size of the validation set, should be an integer or a float in range `[0,1)`."},
|
|
101
|
+
)
|
|
102
|
+
eval_on_each_dataset: bool = field(
|
|
103
|
+
default=False,
|
|
104
|
+
metadata={"help": "Whether or not to evaluate on each dataset separately."},
|
|
105
|
+
)
|
|
106
|
+
packing: Optional[bool] = field(
|
|
107
|
+
default=None,
|
|
108
|
+
metadata={"help": "Enable sequences packing in training. Will automatically enable in pre-training."},
|
|
109
|
+
)
|
|
110
|
+
neat_packing: bool = field(
|
|
111
|
+
default=False,
|
|
112
|
+
metadata={"help": "Enable sequence packing without cross-attention."},
|
|
113
|
+
)
|
|
114
|
+
tool_format: Optional[str] = field(
|
|
115
|
+
default=None,
|
|
116
|
+
metadata={"help": "Tool format to use for constructing function calling examples."},
|
|
117
|
+
)
|
|
118
|
+
default_system: Optional[str] = field(
|
|
119
|
+
default=None,
|
|
120
|
+
metadata={"help": "Override the default system message in the template."},
|
|
121
|
+
)
|
|
122
|
+
enable_thinking: Optional[bool] = field(
|
|
123
|
+
default=True,
|
|
124
|
+
metadata={"help": "Whether or not to enable thinking mode for reasoning models."},
|
|
125
|
+
)
|
|
126
|
+
tokenized_path: Optional[str] = field(
|
|
127
|
+
default=None,
|
|
128
|
+
metadata={
|
|
129
|
+
"help": (
|
|
130
|
+
"Path to save or load the tokenized datasets. "
|
|
131
|
+
"If tokenized_path not exists, it will save the tokenized datasets. "
|
|
132
|
+
"If tokenized_path exists, it will load the tokenized datasets."
|
|
133
|
+
)
|
|
134
|
+
},
|
|
135
|
+
)
|
|
136
|
+
data_shared_file_system: bool = field(
|
|
137
|
+
default=False,
|
|
138
|
+
metadata={"help": "Whether or not to use a shared file system for the datasets."},
|
|
139
|
+
)
|
|
140
|
+
# Dynamic data mixing params
|
|
141
|
+
mixture_sample_rule: Optional[str] = field(
|
|
142
|
+
default=None,
|
|
143
|
+
metadata={"help": "Rule to sample from per-source datasets, e.g. 'proportional', 'fixed'."},
|
|
144
|
+
)
|
|
145
|
+
init_mixture_proportions: Optional[list[float]] = field(
|
|
146
|
+
default=None,
|
|
147
|
+
metadata={"help": "Initial proportions for sampling from each dataset in mixture."},
|
|
148
|
+
)
|
|
149
|
+
mixer_eval_dataset: Optional[str] = field(
|
|
150
|
+
default=None,
|
|
151
|
+
metadata={"help": "Independent eval dataset(s) for dynamic mixer (e.g. gate load evaluation). Use commas to separate multiple datasets."},
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
def __post_init__(self):
|
|
155
|
+
def split_arg(arg):
|
|
156
|
+
if isinstance(arg, str):
|
|
157
|
+
return [item.strip() for item in arg.split(",")]
|
|
158
|
+
return arg
|
|
159
|
+
|
|
160
|
+
self.dataset = split_arg(self.dataset)
|
|
161
|
+
self.eval_dataset = split_arg(self.eval_dataset)
|
|
162
|
+
self.mixer_eval_dataset = split_arg(self.mixer_eval_dataset)
|
|
163
|
+
|
|
164
|
+
if self.media_dir is None:
|
|
165
|
+
self.media_dir = self.dataset_dir
|
|
166
|
+
|
|
167
|
+
if self.dataset is None and self.val_size > 1e-6:
|
|
168
|
+
raise ValueError("Cannot specify `val_size` if `dataset` is None.")
|
|
169
|
+
|
|
170
|
+
if self.eval_dataset is not None and self.val_size > 1e-6:
|
|
171
|
+
raise ValueError("Cannot specify `val_size` if `eval_dataset` is not None.")
|
|
172
|
+
|
|
173
|
+
if self.interleave_probs is not None:
|
|
174
|
+
if self.mix_strategy == "concat":
|
|
175
|
+
raise ValueError("`interleave_probs` is only valid for interleaved mixing.")
|
|
176
|
+
|
|
177
|
+
self.interleave_probs = list(map(float, split_arg(self.interleave_probs)))
|
|
178
|
+
if self.dataset is not None and len(self.dataset) != len(self.interleave_probs):
|
|
179
|
+
raise ValueError("The length of dataset and interleave probs should be identical.")
|
|
180
|
+
|
|
181
|
+
if self.eval_dataset is not None and len(self.eval_dataset) != len(self.interleave_probs):
|
|
182
|
+
raise ValueError("The length of eval dataset and interleave probs should be identical.")
|
|
183
|
+
|
|
184
|
+
if self.streaming and self.val_size > 1e-6 and self.val_size < 1:
|
|
185
|
+
raise ValueError("Streaming mode should have an integer val size.")
|
|
186
|
+
|
|
187
|
+
if self.streaming and self.max_samples is not None:
|
|
188
|
+
raise ValueError("`max_samples` is incompatible with `streaming`.")
|
|
189
|
+
|
|
190
|
+
if self.mask_history and self.train_on_prompt:
|
|
191
|
+
raise ValueError("`mask_history` is incompatible with `train_on_prompt`.")
|
|
192
|
+
|
|
193
|
+
if self.neat_packing:
|
|
194
|
+
self.packing = True
|
|
195
|
+
|
|
196
|
+
if self.packing:
|
|
197
|
+
self.cutoff_len -= 1 # avoid pad_to_multiple_of, needs improve
|
|
198
|
+
|
|
199
|
+
def to_dict(self) -> dict[str, Any]:
|
|
200
|
+
return asdict(self)
|