Xet Upload with byte array (#3035)
* Using upload_bytes from hf_xet
* Factoring out the file key
* Using the new datastructures
* Adding bytes based test
* Adding tests for byte array based upload and testing xet backwards compatibility
* Test cleanup
* Lint
* Quality check
* Updating hf-xet version in setup.py
* Update src/huggingface_hub/_commit_api.py
Co-authored-by: Lucain <lucain@huggingface.co>
* Update src/huggingface_hub/_commit_api.py
Co-authored-by: Lucain <lucain@huggingface.co>
* Update src/huggingface_hub/hf_api.py
Co-authored-by: Lucain <lucain@huggingface.co>
* Update tests/test_xet_upload.py
Co-authored-by: Lucain <lucain@huggingface.co>
* Update src/huggingface_hub/hf_api.py
Co-authored-by: Lucain <lucain@huggingface.co>
* PR comments
* Fixing compilation
* Quality
* Fixing spelling
---------
Co-authored-by: Lucain <lucain@huggingface.co>