HTTP error 504 Server Error: Gateway Time-out
MEMBER
is pushing directly with git (and git-lfs) an option for you?
2022-03-09T12:05:26Z
https://github.com/huggingface/datasets/issues/3872#issuecomment-1062853012
https://api.github.com/repos/huggingface/datasets/issues/3872
IC_kwDODunzps4_WdmU
https://api.github.com/repos/huggingface/datasets/issues/comments/1062853012/reactions
2022-03-09T12:05:26Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1062853012
https://avatars.githubusercontent.com/u/326577?v=4
https://api.github.com/users/julien-c/events{/privacy}
https://api.github.com/users/julien-c/followers
https://api.github.com/users/julien-c/following{/other_user}
https://api.github.com/users/julien-c/gists{/gist_id}
https://github.com/julien-c
julien-c
MDQ6VXNlcjMyNjU3Nw==
https://api.github.com/users/julien-c/orgs
https://api.github.com/users/julien-c/received_events
https://api.github.com/users/julien-c/repos
https://api.github.com/users/julien-c/starred{/owner}{/repo}
https://api.github.com/users/julien-c/subscriptions
User
https://api.github.com/users/julien-c
public
NONE
I have installed git-lfs and doing this push with that

2022-03-09T12:07:30Z
https://github.com/huggingface/datasets/issues/3872#issuecomment-1062854732
https://api.github.com/repos/huggingface/datasets/issues/3872
IC_kwDODunzps4_WeBM
https://api.github.com/repos/huggingface/datasets/issues/comments/1062854732/reactions
2022-03-09T12:07:30Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1062854732
https://avatars.githubusercontent.com/u/83509215?v=4
https://api.github.com/users/illiyas-sha/events{/privacy}
https://api.github.com/users/illiyas-sha/followers
https://api.github.com/users/illiyas-sha/following{/other_user}
https://api.github.com/users/illiyas-sha/gists{/gist_id}
https://github.com/illiyas-sha
illiyas-sha
MDQ6VXNlcjgzNTA5MjE1
https://api.github.com/users/illiyas-sha/orgs
https://api.github.com/users/illiyas-sha/received_events
https://api.github.com/users/illiyas-sha/repos
https://api.github.com/users/illiyas-sha/starred{/owner}{/repo}
https://api.github.com/users/illiyas-sha/subscriptions
User
https://api.github.com/users/illiyas-sha
public
MEMBER
yes but is there any way you could try pushing with `git` command line directly instead of `push_to_hub`?
2022-03-09T12:08:47Z
https://github.com/huggingface/datasets/issues/3872#issuecomment-1062855742
https://api.github.com/repos/huggingface/datasets/issues/3872
IC_kwDODunzps4_WeQ-
https://api.github.com/repos/huggingface/datasets/issues/comments/1062855742/reactions
2022-03-09T12:08:47Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1062855742
https://avatars.githubusercontent.com/u/326577?v=4
https://api.github.com/users/julien-c/events{/privacy}
https://api.github.com/users/julien-c/followers
https://api.github.com/users/julien-c/following{/other_user}
https://api.github.com/users/julien-c/gists{/gist_id}
https://github.com/julien-c
julien-c
MDQ6VXNlcjMyNjU3Nw==
https://api.github.com/users/julien-c/orgs
https://api.github.com/users/julien-c/received_events
https://api.github.com/users/julien-c/repos
https://api.github.com/users/julien-c/starred{/owner}{/repo}
https://api.github.com/users/julien-c/subscriptions
User
https://api.github.com/users/julien-c
public
NONE
Okay. I didnt saved the dataset to my local machine. So, I processed the dataset and pushed it directly to the hub. I think I should try saving those dataset to my local machine by `save_to_disk` and then push it with git command line
2022-03-09T12:16:28Z
https://github.com/huggingface/datasets/issues/3872#issuecomment-1062861471
https://api.github.com/repos/huggingface/datasets/issues/3872
IC_kwDODunzps4_Wfqf
https://api.github.com/repos/huggingface/datasets/issues/comments/1062861471/reactions
2022-03-09T12:16:28Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1062861471
https://avatars.githubusercontent.com/u/83509215?v=4
https://api.github.com/users/illiyas-sha/events{/privacy}
https://api.github.com/users/illiyas-sha/followers
https://api.github.com/users/illiyas-sha/following{/other_user}
https://api.github.com/users/illiyas-sha/gists{/gist_id}
https://github.com/illiyas-sha
illiyas-sha
MDQ6VXNlcjgzNTA5MjE1
https://api.github.com/users/illiyas-sha/orgs
https://api.github.com/users/illiyas-sha/received_events
https://api.github.com/users/illiyas-sha/repos
https://api.github.com/users/illiyas-sha/starred{/owner}{/repo}
https://api.github.com/users/illiyas-sha/subscriptions
User
https://api.github.com/users/illiyas-sha
public
MEMBER
cc @lhoestq @albertvillanova @LysandreJik because maybe I'm giving dumb advice here 😅 
2022-03-09T12:17:48Z
https://github.com/huggingface/datasets/issues/3872#issuecomment-1062862496
https://api.github.com/repos/huggingface/datasets/issues/3872
IC_kwDODunzps4_Wf6g
https://api.github.com/repos/huggingface/datasets/issues/comments/1062862496/reactions
2022-03-09T12:17:58Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1062862496
https://avatars.githubusercontent.com/u/326577?v=4
https://api.github.com/users/julien-c/events{/privacy}
https://api.github.com/users/julien-c/followers
https://api.github.com/users/julien-c/following{/other_user}
https://api.github.com/users/julien-c/gists{/gist_id}
https://github.com/julien-c
julien-c
MDQ6VXNlcjMyNjU3Nw==
https://api.github.com/users/julien-c/orgs
https://api.github.com/users/julien-c/received_events
https://api.github.com/users/julien-c/repos
https://api.github.com/users/julien-c/starred{/owner}{/repo}
https://api.github.com/users/julien-c/subscriptions
User
https://api.github.com/users/julien-c
public
MEMBER
`push_to_hub` is the preferred way of uploading a dataset to the Hub, which can then be reloaded with `load_dataset`. Feel free to try again and see if the server is working as expected now. Maybe we can add a retry mechanism in the meantime to workaround 504 errors.

Regarding `save_to_disk`, this must only be used for local serialization (because it's uncompressed and compatible with memory-mapping). If you upload a dataset saved with `save_to_disk` to the Hub, then to reload it you will have to download/clone the repository locally by yourself and use `load_from_disk`.
2022-03-09T13:22:45Z
https://github.com/huggingface/datasets/issues/3872#issuecomment-1062916516
https://api.github.com/repos/huggingface/datasets/issues/3872
IC_kwDODunzps4_WtGk
https://api.github.com/repos/huggingface/datasets/issues/comments/1062916516/reactions
2022-03-09T13:41:51Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1062916516
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
I am trying to push a large dataset(450000+) records with the help of `push_to_hub()`
While pushing, it gives some error like this.

```
Traceback (most recent call last):
  File "data_split_speech.py", line 159, in <module>
    data_new_2.push_to_hub("user-name/dataset-name",private=True)
  File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub
    repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub(
  File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub
    api.upload_file(
  File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file
    raise err
  File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file
    r.raise_for_status()
  File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet

```
Can anyone help me to resolve this issue.
