Hi,
I am attempting to upload a fine-tuned SDXL model to the HuggingFace Repository but am encountering issues. Specifically, git LFS cannot locate the local object.
Repository Structure (before upload model, immediately after creation)
/REPO
└── .gitattributes
Contents of .gitattributes
remote: -------------------------------------------------------------------------
remote: Your push was rejected because an LFS pointer pointed to a file that does not exist.
remote: For instance, this can happen if you used git push --no-verify to push your changes.
remote: Offending file:
remote: - text_encoder_2/model.safetensors
remote: - vae_1_0/diffusion_pytorch_model.fp16.safetensors
remote: - text_encoder/openvino_model.xml
remote: - text_encoder/model.onnx
remote: - vae_decoder/model.onnx
remote: - text_encoder_2/model.fp16.safetensors
remote: - vae_decoder/openvino_model.bin
remote: - text_encoder_2/model.onnx
remote: - vae_decoder/openvino_model.xml
remote: - vae_encoder/openvino_model.bin
remote: - text_encoder/openvino_model.bin
remote: - text_encoder/model.safetensors
remote: - text_encoder/model.fp16.safetensors
remote: - vae/diffusion_pytorch_model.safetensors
remote: - text_encoder/flax_model.msgpack
remote: - text_encoder_2/openvino_model.bin
remote: - vae_encoder/model.onnx
remote: - text_encoder_2/model.onnx_data
remote: - vae_encoder/openvino_model.xml
remote: - text_encoder_2/openvino_model.xml
remote: - vae/diffusion_pytorch_model.fp16.safetensors
remote: - vae_1_0/diffusion_pytorch_model.safetensors
remote: - vae/diffusion_flax_model.msgpack
remote: - text_encoder_2/flax_model.msgpack
remote: -------------------------------------------------------------------------
To https://huggingface.co/{huggingface_id}/{Repository}
! [remote rejected] main -> main (pre-receive hook declined)
Error Message
Uploading LFS objects: 4% (1/25), 3.1 GB | 27 MB/s, done.
Git LFS upload failed:
(missing) vae_encoder/openvino_model.bin (97f04b0cf74808c7bd9b6e09f080e8cd24821943c3c06b153145989889215ce5)
(missing) vae_decoder/openvino_model.xml (dd61f43e981282b77ecaecf5fc5c842d504932bae78ac99ec581cee50978b423)
(missing) text_encoder/model.safetensors (5c3d6454dd2d23414b56aa1b5858a72487a656937847b6fea8d0606d7a42cdbc)
(missing) text_encoder/flax_model.msgpack (80269e53c9d09b1f19c6227cf903a5032878ed31ea8b49b8ecfa7808b81568d9)
(missing) vae_1_0/diffusion_pytorch_model.safetensors (27ed3b02e09638568e99d4398c67bc654dde04e6c0db61fb2d21dba630e7058a)
(missing) vae_decoder/model.onnx (0892c5e28b35791140467f7b9c9fa148c24238a5f0c381b1d4c22dcd2ed365cb)
(missing) vae/diffusion_pytorch_model.fp16.safetensors (bcb60880a46b63dea58e9bc591abe15f8350bde47b405f9c38f4be70c6161e68)
(missing) text_encoder_2/openvino_model.bin (549d05154b0c09d46226f85abd48552f0ef999af4f24a95b3fb62d5e7d059570)
(missing) text_encoder_2/model.onnx_data (3da7ac65349fbd092e836e3eeca2c22811317bc804fd70af157b4550f2d4bcb5)
(missing) vae/diffusion_flax_model.msgpack (1857495e1d4e28140013764ffd620f6aa1fb0311dd43d7cf083f72704c69e3ee)
(missing) vae_encoder/model.onnx (7b117fbb21531efd59d68c95682392785999bf3e0c2ce95647c6e0de9af36e74)
(missing) text_encoder/openvino_model.xml (ab5cf7327374d8c984f4e963564a329f92c9dad08dac9eee9b8dca86b912f1c9)
(missing) text_encoder_2/openvino_model.xml (38f0a4ff68dd918b24908a264140c2ad0e057eca82616f75c17cbf4a099ad6ad)
(missing) text_encoder_2/model.onnx (162042ac6556e73f93d4172d4c67532c1cbe4dc7a6a8fa7e44dd2e3d7cbb772b)
(missing) text_encoder_2/model.fp16.safetensors (ec310df2af79c318e24d20511b601a591ca8cd4f1fce1d8dff822a356bcdb1f4)
(missing) text_encoder/model.onnx (e27bafa0b3029ad637ef3ace24ce1efe85b8d0dbd22e03a2e70bda6fc88963a1)
(missing) text_encoder/openvino_model.bin (bbc78395c8cee553a17380e9b1a9a47da926c98731ba31306032d7d45fadb29b)
(missing) text_encoder/model.fp16.safetensors (660c6f5b1abae9dc498ac2d21e1347d2abdb0cf6c0c0c8576cd796491d9a6cdd)
(missing) vae_1_0/diffusion_pytorch_model.fp16.safetensors (eb6516ab7e1104d5d1a174a4d65c57835ae38061531d0a2192103aecfb790cc1)
(missing) text_encoder_2/model.safetensors (3a6032f63d37ae02bbc74ccd6a27440578cd71701f96532229d0154f55a8d3ff)
(missing) text_encoder_2/flax_model.msgpack (dc025fc8d206bafd2ebf2f2cbf0b6f791c314612b5613c3737bf368236ac657f)
(missing) vae/diffusion_pytorch_model.safetensors (1598f3d24932bcfe6634e8b618ea1e30ab1d57f5aad13a6d2de446d2199f2341)
(missing) vae_decoder/openvino_model.bin (34ea744ad1d75fb6b8825e31f5adbe7d62cbe2e7d061535b0a12e69c2f72d0f4)
(missing) vae_encoder/openvino_model.xml (a3ec36b6f3f74d0cb2b005b7c0a1e5426c5ef1e7163b33e463ea57fa049c5996)
hint: Your push was rejected due to missing or corrupt local objects.
hint: You can disable this check with: `git config lfs.allowincompletepush true`
error: (Fail to push references)
After attempting git config lfs.allowincompletepush true, I encountered a repeated error:
remote: -------------------------------------------------------------------------
remote: Your push was rejected because an LFS pointer pointed to a file that does not exist.
remote: For instance, this can happen if you used git push --no-verify to push your changes.
remote: Offending file:
remote: - text_encoder_2/model.safetensors
remote: - vae_1_0/diffusion_pytorch_model.fp16.safetensors
remote: - text_encoder/openvino_model.xml
remote: - text_encoder/model.onnx
remote: - vae_decoder/model.onnx
remote: - text_encoder_2/model.fp16.safetensors
remote: - vae_decoder/openvino_model.bin
remote: - text_encoder_2/model.onnx
remote: - vae_decoder/openvino_model.xml
remote: - vae_encoder/openvino_model.bin
remote: - text_encoder/openvino_model.bin
remote: - text_encoder/model.safetensors
remote: - text_encoder/model.fp16.safetensors
remote: - vae/diffusion_pytorch_model.safetensors
remote: - text_encoder/flax_model.msgpack
remote: - text_encoder_2/openvino_model.bin
remote: - vae_encoder/model.onnx
remote: - text_encoder_2/model.onnx_data
remote: - vae_encoder/openvino_model.xml
remote: - text_encoder_2/openvino_model.xml
remote: - vae/diffusion_pytorch_model.fp16.safetensors
remote: - vae_1_0/diffusion_pytorch_model.safetensors
remote: - vae/diffusion_flax_model.msgpack
remote: - text_encoder_2/flax_model.msgpack
remote: -------------------------------------------------------------------------
To https://huggingface.co/{huggingface_id}/{Repository}
! [remote rejected] main -> main (pre-receive hook declined)
How can I resolve this? If there are any similar resolved issues, please provide a link to those issues. Thank you