-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avoid SameFileError during restore_config #45
Comments
@le-horizon hmm I did not think those were symlinks, it is supposed to copy config.json to config.json.backup (not link it) before it applies changes to the config during the quantization stage (then copy the backup back to the original after quantization is complete) Can you try manually restoring config.json.backup -> config.json if needed, then delete config.json.backup? |
Thanks for the quick reply. The symlink points here: Let me try overwriting the link with the actual file. |
Seeing this error now: │ mm_projector_path │ /data/models/huggingface/models--dusty-nv--openvla-7b-mimicgen/snapshots/86 │ Traceback (most recent call last): |
Problem: error while running
jetson-containers run $(autotag nano_llm) python3 -m nano_llm.vision.vla --api mlc --model dusty-nv/openvla-7b-mimicgen --quantization q4f16_ft --dataset dusty-nv/bridge_orig_ep100 --dataset-type rlds --max-episodes 10 --save-stats /data/benchmarks/openvla_mimicgen_int4.json
Message:
18:21:36 | INFO | using chat template 'openvla' for model openvla-7b-mimicgen
18:21:36 | INFO | model 'openvla-7b-mimicgen', chat template 'openvla' stop tokens: [''] -> [2]
18:21:38 | INFO | Warmup response: '测ษ装Έ专装ശ'
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/opt/NanoLLM/nano_llm/vision/vla.py", line 446, in
vla_process_dataset(**{**vars(args), 'dataset': dataset})
File "/opt/NanoLLM/nano_llm/vision/vla.py", line 296, in vla_process_dataset
model = NanoLLM.from_pretrained(model, **kwargs)
File "/opt/NanoLLM/nano_llm/nano_llm.py", line 100, in from_pretrained
model.restore_config()
File "/opt/NanoLLM/nano_llm/nano_llm.py", line 390, in restore_config
shutil.copyfile(backup_path, self.config_path)
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: '/data/models/huggingface/models--dusty-nv--openvla-7b-mimicgen/snapshots/865b827044ba379bac2023688dd84520e268e29d/config.json.backup' and '/data/models/huggingface/models--dusty-nv--openvla-7b-mimicgen/snapshots/865b827044ba379bac2023688dd84520e268e29d/config.json' are the same file
Manual inspection shows the symlinks point to the same file.
One possible fix:
NanoLLM/nano_llm/nano_llm.py
Line 389 in 32b1d0d
The text was updated successfully, but these errors were encountered: