notebooks icon indicating copy to clipboard operation
notebooks copied to clipboard

TypeError: object.__init__() takes exactly one argument (the instance to initialize)

Open masapasa opened this issue 2 years ago • 0 comments
trafficstars

question_answering_ort.ipynb

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ in :2 │ │ │ │ 1 model_name = model_checkpoint.split("/")[-1] │ │ ❱ 2 args = ORTTrainingArguments( │ │ 3 │ output_dir=f"{model_name}-finetuned-squad", │ │ 4 │ evaluation_strategy = "epoch", │ │ 5 │ learning_rate=2e-5, │ │ in init:111 │ │ │ │ /home/Startupcolors/doze/wound/notebooks/.venv/lib/python3.8/site-packages/optimum/onnxruntime/t │ │ raining_args.py:306 in post_init │ │ │ │ 303 │ │ │ │ │ 304 │ │ │ # will be used later by the Trainer │ │ 305 │ │ │ # note: leave self.deepspeed unmodified in case a user relies on it not to b │ │ ❱ 306 │ │ │ self.hf_deepspeed_config = HfTrainerDeepSpeedConfig(self.deepspeed) │ │ 307 │ │ │ self.hf_deepspeed_config.trainer_config_process(self) │ │ 308 │ │ │ │ 309 │ │ if self.push_to_hub_token is not None: │ │ │ │ /home/Startupcolors/doze/wound/notebooks/.venv/lib/python3.8/site-packages/transformers/deepspee │ │ d.py:77 in init │ │ │ │ 74 │ """ │ │ 75 │ │ │ 76 │ def init(self, config_file_or_dict): │ │ ❱ 77 │ │ super().init(config_file_or_dict) │ │ 78 │ │ self._dtype = None │ │ 79 │ │ self.mismatches = [] │ │ 80 │ │ │ │ /home/Startupcolors/doze/wound/notebooks/.venv/lib/python3.8/site-packages/transformers/deepspee │ │ d.py:67 in init │ │ │ │ 64 │ │ set_hf_deepspeed_config(self) │ │ 65 │ │ dep_version_check("accelerate") │ │ 66 │ │ dep_version_check("deepspeed") │ │ ❱ 67 │ │ super().init(config_file_or_dict) │ │ 68 │ │ 69 │ │ 70 class HfTrainerDeepSpeedConfig(HfDeepSpeedConfig): │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ TypeError: object.init() takes exactly one argument (the instance to initialize)

masapasa avatar May 04 '23 17:05 masapasa