Wrong path for cache directory in offline mode
NONE
+1
2024-01-24T07:33:30Z
https://github.com/huggingface/datasets/issues/6609#issuecomment-1907557160
https://api.github.com/repos/huggingface/datasets/issues/6609
IC_kwDODunzps5xswMo
https://api.github.com/repos/huggingface/datasets/issues/comments/1907557160/reactions
2024-01-24T07:33:30Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1907557160
https://avatars.githubusercontent.com/u/21095815?v=4
https://api.github.com/users/kongjiellx/events{/privacy}
https://api.github.com/users/kongjiellx/followers
https://api.github.com/users/kongjiellx/following{/other_user}
https://api.github.com/users/kongjiellx/gists{/gist_id}
https://github.com/kongjiellx
kongjiellx
MDQ6VXNlcjIxMDk1ODE1
https://api.github.com/users/kongjiellx/orgs
https://api.github.com/users/kongjiellx/received_events
https://api.github.com/users/kongjiellx/repos
https://api.github.com/users/kongjiellx/starred{/owner}{/repo}
https://api.github.com/users/kongjiellx/subscriptions
User
https://api.github.com/users/kongjiellx
public
NONE
same error in 2.16.1
2024-01-24T07:37:37Z
https://github.com/huggingface/datasets/issues/6609#issuecomment-1907562328
https://api.github.com/repos/huggingface/datasets/issues/6609
IC_kwDODunzps5xsxdY
https://api.github.com/repos/huggingface/datasets/issues/comments/1907562328/reactions
2024-01-24T07:37:37Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1907562328
https://avatars.githubusercontent.com/u/21095815?v=4
https://api.github.com/users/kongjiellx/events{/privacy}
https://api.github.com/users/kongjiellx/followers
https://api.github.com/users/kongjiellx/following{/other_user}
https://api.github.com/users/kongjiellx/gists{/gist_id}
https://github.com/kongjiellx
kongjiellx
MDQ6VXNlcjIxMDk1ODE1
https://api.github.com/users/kongjiellx/orgs
https://api.github.com/users/kongjiellx/received_events
https://api.github.com/users/kongjiellx/repos
https://api.github.com/users/kongjiellx/starred{/owner}{/repo}
https://api.github.com/users/kongjiellx/subscriptions
User
https://api.github.com/users/kongjiellx
public
NONE
@kongjiellx any luck with the issue?
2024-01-29T22:00:31Z
https://github.com/huggingface/datasets/issues/6609#issuecomment-1915649727
https://api.github.com/repos/huggingface/datasets/issues/6609
IC_kwDODunzps5yLn6_
https://api.github.com/repos/huggingface/datasets/issues/comments/1915649727/reactions
2024-01-29T22:00:31Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1915649727
https://avatars.githubusercontent.com/u/42117435?v=4
https://api.github.com/users/je-santos/events{/privacy}
https://api.github.com/users/je-santos/followers
https://api.github.com/users/je-santos/following{/other_user}
https://api.github.com/users/je-santos/gists{/gist_id}
https://github.com/je-santos
je-santos
MDQ6VXNlcjQyMTE3NDM1
https://api.github.com/users/je-santos/orgs
https://api.github.com/users/je-santos/received_events
https://api.github.com/users/je-santos/repos
https://api.github.com/users/je-santos/starred{/owner}{/repo}
https://api.github.com/users/je-santos/subscriptions
User
https://api.github.com/users/je-santos
public
MEMBER
I opened https://github.com/huggingface/datasets/pull/6632 to fix this issue. Once it's merged we'll do a new release of `datasets`
2024-01-31T14:44:27Z
https://github.com/huggingface/datasets/issues/6609#issuecomment-1919247045
https://api.github.com/repos/huggingface/datasets/issues/6609
IC_kwDODunzps5yZWLF
https://api.github.com/repos/huggingface/datasets/issues/comments/1919247045/reactions
2024-01-31T14:44:27Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1919247045
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
NONE
Thanks @lhoestq !
2024-01-31T15:11:25Z
https://github.com/huggingface/datasets/issues/6609#issuecomment-1919301803
https://api.github.com/repos/huggingface/datasets/issues/6609
IC_kwDODunzps5yZjir
https://api.github.com/repos/huggingface/datasets/issues/comments/1919301803/reactions
2024-01-31T15:11:25Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1919301803
https://avatars.githubusercontent.com/u/42117435?v=4
https://api.github.com/users/je-santos/events{/privacy}
https://api.github.com/users/je-santos/followers
https://api.github.com/users/je-santos/following{/other_user}
https://api.github.com/users/je-santos/gists{/gist_id}
https://github.com/je-santos
je-santos
MDQ6VXNlcjQyMTE3NDM1
https://api.github.com/users/je-santos/orgs
https://api.github.com/users/je-santos/received_events
https://api.github.com/users/je-santos/repos
https://api.github.com/users/je-santos/starred{/owner}{/repo}
https://api.github.com/users/je-santos/subscriptions
User
https://api.github.com/users/je-santos
public
### Describe the bug

Dear huggingfacers,

I'm trying to use a subset of the-stack dataset. When I run the command the first time

```
dataset = load_dataset(
    path='bigcode/the-stack',
    data_dir='data/fortran',
    split='train' )
```

It downloads the files and caches them normally.

Nevertheless, since my compute nodes are not online (`HF_DATASETS_OFFLINE=1`) . Whenever I try to run the command again, the library is passing the wrong cache path:


`Cache directory for the-stack doesn't exist at /Users/user/.cache/huggingface/datasets/bigcode___the-stack/default-data_dir=data%2Ffortran-data_dir=data%2Ffortran`

when the right path is:

`'/Users/user/.cache/huggingface/datasets/bigcode___the-stack/default-data_dir=data\%2Ffortran`

Not sure why those redundancies are included in the path.  If I try adding the correct path through the the cache_dir argument it throws an error:

ConnectionError: Couldn't reach the Hugging Face Hub for dataset 'bigcode/the-stack': Offline mode is enabled.


Your help with this issue is greatly appreciated. Thanks a lot for the great work.


### Steps to reproduce the bug

1: 

`dataset = load_dataset(
    path='bigcode/the-stack',
    data_dir='data/fortran',
    split='train' )`


2: 

`HF_DATASETS_OFFLINE=1`

3:

`dataset = load_dataset(
    path='bigcode/the-stack',
    data_dir='data/fortran',
    split='train' )`


### Expected behavior

being able to use the cached data

### Environment info

several different systems