Issue with offline mode
MEMBER
Hi @SaulLu, thanks for reporting.

I think offline mode is not supported for datasets containing only data files (without any loading script). I'm having a look into this...
2022-07-28T15:33:18Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-1198316233
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps5HbNrJ
https://api.github.com/repos/huggingface/datasets/issues/comments/1198316233/reactions
2022-07-28T15:33:18Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1198316233
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
CONTRIBUTOR
Thanks for your feedback! 

To give you a little more info, if you don't set the offline mode flag, the script will load the cache. I first noticed this behavior with the `evaluate` library, and while trying to understand the downloading flow I realized that I had a similar error with datasets.
2022-07-28T15:37:30Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-1198320758
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps5HbOx2
https://api.github.com/repos/huggingface/datasets/issues/comments/1198320758/reactions
2022-07-28T15:37:30Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1198320758
https://avatars.githubusercontent.com/u/55560583?v=4
https://api.github.com/users/SaulLu/events{/privacy}
https://api.github.com/users/SaulLu/followers
https://api.github.com/users/SaulLu/following{/other_user}
https://api.github.com/users/SaulLu/gists{/gist_id}
https://github.com/SaulLu
SaulLu
MDQ6VXNlcjU1NTYwNTgz
https://api.github.com/users/SaulLu/orgs
https://api.github.com/users/SaulLu/received_events
https://api.github.com/users/SaulLu/repos
https://api.github.com/users/SaulLu/starred{/owner}{/repo}
https://api.github.com/users/SaulLu/subscriptions
User
https://api.github.com/users/SaulLu
public
MEMBER
This is an issue we have to fix.
2022-07-28T15:49:05Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-1198333298
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps5HbR1y
https://api.github.com/repos/huggingface/datasets/issues/comments/1198333298/reactions
2022-07-28T15:49:05Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1198333298
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
MEMBER
This is related to https://github.com/huggingface/datasets/issues/3547
2022-07-28T16:05:36Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-1198349850
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps5HbV4a
https://api.github.com/repos/huggingface/datasets/issues/comments/1198349850/reactions
2022-07-28T16:05:36Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1198349850
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
Still not fixed? ......
2023-05-10T13:10:29Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-1542189169
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps5b6_Bx
https://api.github.com/repos/huggingface/datasets/issues/comments/1542189169/reactions
2023-05-10T13:10:29Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1542189169
https://avatars.githubusercontent.com/u/8064242?v=4
https://api.github.com/users/thuzhf/events{/privacy}
https://api.github.com/users/thuzhf/followers
https://api.github.com/users/thuzhf/following{/other_user}
https://api.github.com/users/thuzhf/gists{/gist_id}
https://github.com/thuzhf
thuzhf
MDQ6VXNlcjgwNjQyNDI=
https://api.github.com/users/thuzhf/orgs
https://api.github.com/users/thuzhf/received_events
https://api.github.com/users/thuzhf/repos
https://api.github.com/users/thuzhf/starred{/owner}{/repo}
https://api.github.com/users/thuzhf/subscriptions
User
https://api.github.com/users/thuzhf
public
MEMBER
#5331 will be helpful to fix this, as it updates the cache directory template to be aligned with the other datasets
2023-05-11T10:11:48Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-1543720136
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps5cA0zI
https://api.github.com/repos/huggingface/datasets/issues/comments/1543720136/reactions
2023-05-11T10:11:48Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1543720136
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
CONTRIBUTOR
Any updates ?
2023-10-26T13:18:32Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-1781108960
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps5qKZDg
https://api.github.com/repos/huggingface/datasets/issues/comments/1781108960/reactions
2023-10-26T13:18:32Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1781108960
https://avatars.githubusercontent.com/u/43467008?v=4
https://api.github.com/users/ManuelFay/events{/privacy}
https://api.github.com/users/ManuelFay/followers
https://api.github.com/users/ManuelFay/following{/other_user}
https://api.github.com/users/ManuelFay/gists{/gist_id}
https://github.com/ManuelFay
ManuelFay
MDQ6VXNlcjQzNDY3MDA4
https://api.github.com/users/ManuelFay/orgs
https://api.github.com/users/ManuelFay/received_events
https://api.github.com/users/ManuelFay/repos
https://api.github.com/users/ManuelFay/starred{/owner}{/repo}
https://api.github.com/users/ManuelFay/subscriptions
User
https://api.github.com/users/ManuelFay
public
NONE
I'm facing the same problem
2024-01-23T01:33:13Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-1905132009
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps5xjgHp
https://api.github.com/repos/huggingface/datasets/issues/comments/1905132009/reactions
2024-01-23T01:33:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1905132009
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
This issue has been fixed in `datasets` 2.16 by https://github.com/huggingface/datasets/pull/6493. The cache is now working properly :)

You just have to update `datasets`:

```
pip install -U datasets
```
2024-01-23T10:58:18Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-1905796076
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps5xmCPs
https://api.github.com/repos/huggingface/datasets/issues/comments/1905796076/reactions
2024-01-23T10:58:18Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1905796076
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
I'm on version 2.17.0, and this exact problem is still persisting.
2024-02-15T17:24:31Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-1946671623
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps50B9oH
https://api.github.com/repos/huggingface/datasets/issues/comments/1946671623/reactions
2024-02-15T17:24:31Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1946671623
https://avatars.githubusercontent.com/u/10492604?v=4
https://api.github.com/users/jaded0/events{/privacy}
https://api.github.com/users/jaded0/followers
https://api.github.com/users/jaded0/following{/other_user}
https://api.github.com/users/jaded0/gists{/gist_id}
https://github.com/jaded0
jaded0
MDQ6VXNlcjEwNDkyNjA0
https://api.github.com/users/jaded0/orgs
https://api.github.com/users/jaded0/received_events
https://api.github.com/users/jaded0/repos
https://api.github.com/users/jaded0/starred{/owner}{/repo}
https://api.github.com/users/jaded0/subscriptions
User
https://api.github.com/users/jaded0
public
MEMBER
Can you share some code to reproduce your issue ?

Also make sure your cache was populated with recent versions of `datasets`. Datasets cached with old versions may not be reloadable in offline mode, though we did our best to keep as much backward compatibility as possible.
2024-02-15T17:27:07Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-1946680324
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps50B_wE
https://api.github.com/repos/huggingface/datasets/issues/comments/1946680324/reactions
2024-02-15T17:27:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1946680324
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
CONTRIBUTOR
I'm not sure if this is related @lhoestq but I am experiencing a similar issue when using offline mode:

```bash
$ python -c "from datasets import load_dataset; load_dataset('openai_humaneval', split='test')"
$ HF_DATASETS_OFFLINE=1 python -c "from datasets import load_dataset; load_dataset('openai_humaneval', split='test')"
Using the latest cached version of the dataset since openai_humaneval couldn't be found on the Hugging Face Hub (offline mode is enabled).
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/dodrio/scratch/projects/2023_071/alignment-handbook/.venv/lib/python3.10/site-packages/datasets/load.py", line 2556, in load_dataset
    builder_instance = load_dataset_builder(
  File "/dodrio/scratch/projects/2023_071/alignment-handbook/.venv/lib/python3.10/site-packages/datasets/load.py", line 2265, in load_dataset_builder
    builder_instance: DatasetBuilder = builder_cls(
  File "/dodrio/scratch/projects/2023_071/alignment-handbook/.venv/lib/python3.10/site-packages/datasets/packaged_modules/cache/cache.py", line 122, in __init__
    config_name, version, hash = _find_hash_in_cache(
  File "/dodrio/scratch/projects/2023_071/alignment-handbook/.venv/lib/python3.10/site-packages/datasets/packaged_modules/cache/cache.py", line 48, in _find_hash_in_cache
    raise ValueError(
ValueError: Couldn't find cache for openai_humaneval for config 'default'
Available configs in the cache: ['openai_humaneval']
```
2024-03-19T08:48:17Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-2006350496
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps53lnqg
https://api.github.com/repos/huggingface/datasets/issues/comments/2006350496/reactions
2024-03-19T08:48:17Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2006350496
https://avatars.githubusercontent.com/u/2779410?v=4
https://api.github.com/users/BramVanroy/events{/privacy}
https://api.github.com/users/BramVanroy/followers
https://api.github.com/users/BramVanroy/following{/other_user}
https://api.github.com/users/BramVanroy/gists{/gist_id}
https://github.com/BramVanroy
BramVanroy
MDQ6VXNlcjI3Nzk0MTA=
https://api.github.com/users/BramVanroy/orgs
https://api.github.com/users/BramVanroy/received_events
https://api.github.com/users/BramVanroy/repos
https://api.github.com/users/BramVanroy/starred{/owner}{/repo}
https://api.github.com/users/BramVanroy/subscriptions
User
https://api.github.com/users/BramVanroy
public
MEMBER
Thanks for reporting @BramVanroy, I managed to reproduce and I opened a fix here: https://github.com/huggingface/datasets/pull/6741
2024-03-19T10:48:53Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-2006805975
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps53nW3X
https://api.github.com/repos/huggingface/datasets/issues/comments/2006805975/reactions
2024-03-19T10:48:53Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2006805975
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
CONTRIBUTOR
Awesome, thanks for the quick fix @lhoestq! Looking forward to update my dependency version list.
2024-03-19T11:43:28Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-2006965035
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps53n9sr
https://api.github.com/repos/huggingface/datasets/issues/comments/2006965035/reactions
2024-03-19T11:43:28Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2006965035
https://avatars.githubusercontent.com/u/2779410?v=4
https://api.github.com/users/BramVanroy/events{/privacy}
https://api.github.com/users/BramVanroy/followers
https://api.github.com/users/BramVanroy/following{/other_user}
https://api.github.com/users/BramVanroy/gists{/gist_id}
https://github.com/BramVanroy
BramVanroy
MDQ6VXNlcjI3Nzk0MTA=
https://api.github.com/users/BramVanroy/orgs
https://api.github.com/users/BramVanroy/received_events
https://api.github.com/users/BramVanroy/repos
https://api.github.com/users/BramVanroy/starred{/owner}{/repo}
https://api.github.com/users/BramVanroy/subscriptions
User
https://api.github.com/users/BramVanroy
public
NONE
> Thanks for reporting @BramVanroy, I managed to reproduce and I opened a fix here: #6741

Thanks a lot！ I have faced the same problem. Can I use your fix code to directly replace the existing version code? I noticed that this fix has not been merged yet. Will it affect other functionalities?

2024-03-25T09:11:10Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-2017526058
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps54QQEq
https://api.github.com/repos/huggingface/datasets/issues/comments/2017526058/reactions
2024-03-25T09:11:10Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2017526058
https://avatars.githubusercontent.com/u/97608046?v=4
https://api.github.com/users/noforit/events{/privacy}
https://api.github.com/users/noforit/followers
https://api.github.com/users/noforit/following{/other_user}
https://api.github.com/users/noforit/gists{/gist_id}
https://github.com/noforit
noforit
U_kgDOBdFhbg
https://api.github.com/users/noforit/orgs
https://api.github.com/users/noforit/received_events
https://api.github.com/users/noforit/repos
https://api.github.com/users/noforit/starred{/owner}{/repo}
https://api.github.com/users/noforit/subscriptions
User
https://api.github.com/users/noforit
public
MEMBER
I just merged the fix, you can install `datasets` from source or wait for the patch release which will be out in the coming days
2024-03-25T16:24:44Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-2018401152
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps54TluA
https://api.github.com/repos/huggingface/datasets/issues/comments/2018401152/reactions
2024-03-25T16:24:44Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2018401152
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
Hi, a related issue here when loading a single file from a dataset, unable to access it in offline mode (datasets 3.2.0)

```python
import os
# os.environ["HF_HUB_OFFLINE"] = "1"
os.environ["HF_TOKEN"] = "xxxxxxxxxxxxxx"

import datasets

dataset_name = "uonlp/CulturaX"
data_files = "fr/fr_part_00038.parquet"

ds = datasets.load_dataset(dataset_name, split='train', data_files=data_files)
print(f"Dataset loaded   : {ds}")
```
Once the file has been cached, I rerun whit the HF_HUB_OFFLINE activated an get this error : 
```
ValueError: Couldn't find cache for uonlp/CulturaX for config 'default-1e725f978350254e'
Available configs in the cache: ['default-2935e8cdcc21c613']
```
2025-05-04T16:44:32Z
https://github.com/huggingface/datasets/issues/4760#issuecomment-2849308266
https://api.github.com/repos/huggingface/datasets/issues/4760
IC_kwDODunzps6p1P5q
https://api.github.com/repos/huggingface/datasets/issues/comments/2849308266/reactions
2025-05-04T16:44:58Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2849308266
https://avatars.githubusercontent.com/u/353245?v=4
https://api.github.com/users/nrv/events{/privacy}
https://api.github.com/users/nrv/followers
https://api.github.com/users/nrv/following{/other_user}
https://api.github.com/users/nrv/gists{/gist_id}
https://github.com/nrv
nrv
MDQ6VXNlcjM1MzI0NQ==
https://api.github.com/users/nrv/orgs
https://api.github.com/users/nrv/received_events
https://api.github.com/users/nrv/repos
https://api.github.com/users/nrv/starred{/owner}{/repo}
https://api.github.com/users/nrv/subscriptions
User
https://api.github.com/users/nrv
public
## Describe the bug
I can't retrieve a cached dataset with offline mode enabled

## Steps to reproduce the bug

To reproduce my issue, first, you'll need to run a script that will cache the dataset
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "0"

import datasets

datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```
then, you can try to reload it in offline mode:
```python
import os
os.environ["HF_DATASETS_OFFLINE"] = "1"

import datasets

datasets.logging.set_verbosity_info()
ds_name = "SaulLu/toy_struc_dataset"
ds = datasets.load_dataset(ds_name)
print(ds)
```

## Expected results
I would have expected the 2nd snippet not to return any errors

## Actual results
The 2nd snippet returns:
```
Traceback (most recent call last):
  File "/home/lucile_huggingface_co/sandbox/evaluate/test_cache_datasets.py", line 8, in <module>
    ds = datasets.load_dataset(ds_name)
  File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1723, in load_dataset
    builder_instance = load_dataset_builder(
  File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1500, in load_dataset_builder
    dataset_module = dataset_module_factory(
  File "/home/lucile_huggingface_co/anaconda3/envs/evaluate-dev/lib/python3.8/site-packages/datasets/load.py", line 1241, in dataset_module_factory
    raise ConnectionError(f"Couln't reach the Hugging Face Hub for dataset '{path}': {e1}") from None
ConnectionError: Couln't reach the Hugging Face Hub for dataset 'SaulLu/toy_struc_dataset': Offline mode is enabled.
```

## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-4.19.0-21-cloud-amd64-x86_64-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 8.0.0
- Pandas version: 1.4.3

Maybe I'm misunderstanding something in the use of the offline mode (see [doc](https://huggingface.co/docs/datasets/v2.4.0/en/loading#offline)), is that the case?
