You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shutil.SameFileError: '/root/.cache/huggingface/modules/transformers_modules/Phi-3-mini-128k-instruct/configuration_phi3.py' and PosixPath('/content/olive-demo/fine-tuning/cache/default_workflow/runs/9d51c530/models/configuration_phi3.py') are the same file[2024-10-30 16:36:53,864] [WARNING] [engine.py:343:run_accelerator] Failed to run Olive on gpu-cuda.Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/olive/engine/engine.py", line 331, in run_accelerator output_footprint = self.run_no_search(input_model_config, input_model_id, accelerator_spec, output_dir) File "/usr/local/lib/python3.10/dist-packages/olive/engine/engine.py", line 409, in run_no_search should_prune, signal, model_ids = self._run_passes( File "/usr/local/lib/python3.10/dist-packages/olive/engine/engine.py", line 673, in _run_passes model_config, model_id = self._run_pass( File "/usr/local/lib/python3.10/dist-packages/olive/engine/engine.py", line 773, in _run_pass output_model_config = host.run_pass(p, input_model_config, output_model_path, pass_search_point) File "/usr/local/lib/python3.10/dist-packages/olive/systems/local.py", line 30, in run_pass output_model = the_pass.run(model, output_model_path, point) File "/usr/local/lib/python3.10/dist-packages/olive/passes/olive_pass.py", line 206, in run output_model = self._run_for_config(model, config, output_model_path) File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 116, in decorate_context return func(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/olive/passes/pytorch/merge_adapter_weights.py", line 52, in _run_for_config model.save_metadata(output_model_path) File "/usr/local/lib/python3.10/dist-packages/olive/model/handler/mixin/hf.py", line 86, in save_metadata save_model_config(config, output_dir, **kwargs) File "/usr/local/lib/python3.10/dist-packages/olive/common/hf/utils.py", line 95, in save_model_config config.save_pretrained(output_dir, **kwargs) File "/usr/local/lib/python3.10/dist-packages/transformers/configuration_utils.py", line 466, in save_pretrained custom_object_save(self, save_directory, config=self) File "/usr/local/lib/python3.10/dist-packages/transformers/dynamic_module_utils.py", line 581, in custom_object_save shutil.copy(object_file, dest_file) File "/usr/lib/python3.10/shutil.py", line 417, in copy copyfile(src, dst, follow_symlinks=follow_symlinks) File "/usr/lib/python3.10/shutil.py", line 234, in copyfile raise SameFileError("{!r} and {!r} are the same file".format(src, dst))shutil.SameFileError: '/root/.cache/huggingface/modules/transformers_modules/Phi-3-mini-128k-instruct/configuration_phi3.py' and PosixPath('/content/olive-demo/fine-tuning/cache/default_workflow/runs/9d51c530/models/configuration_phi3.py') are the same file[2024-10-30 16:36:54,766] [INFO] [engine.py:274:run] Run history for gpu-cuda:[2024-10-30 16:36:54,773] [INFO] [engine.py:526:dump_run_history] run history:+------------+-------------------+-------------+----------------+-----------+| model_id | parent_model_id | from_pass | duration_sec | metrics |+============+===================+=============+================+===========+| 850e9859 | | | | |+------------+-------------------+-------------+----------------+-----------+| 09942012 | 850e9859 | LoRA | 145.119 | |+------------+-------------------+-------------+----------------+-----------+[2024-10-30 16:36:54,773] [DEBUG] [engine.py:289:run] No packaging config provided, skip packaging artifacts
If the input_model is changed to Hugging Face, then it works.
The text was updated successfully, but these errors were encountered:
The following config errors on Merge Adapters pass:
The error is:
If the
input_model
is changed to Hugging Face, then it works.The text was updated successfully, but these errors were encountered: