Skip to content

Commit

Permalink
Fix: Future deprecation warning with use_auth_token
Browse files Browse the repository at this point in the history
  • Loading branch information
NanoCode012 committed Oct 5, 2023
1 parent 43856c0 commit 5c0c12a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/axolotl/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def load_tokenized_prepared_datasets(
if cfg.push_dataset_to_hub:
dataset = load_dataset(
f"{cfg.push_dataset_to_hub}/{ds_hash}",
use_auth_token=use_auth_token,
token=use_auth_token,
)
dataset = dataset["train"]
except Exception: # pylint: disable=broad-except # nosec
Expand Down Expand Up @@ -155,7 +155,7 @@ def for_d_in_datasets(dataset_configs):
d.path,
name=d.name,
streaming=True,
use_auth_token=use_auth_token,
token=use_auth_token,
)
ds_from_hub = True
except FileNotFoundError:
Expand Down Expand Up @@ -202,7 +202,7 @@ def for_d_in_datasets(dataset_configs):
name=d.name,
streaming=False,
data_files=d.data_files,
use_auth_token=use_auth_token,
token=use_auth_token,
)
else:
if isinstance(d.data_files, str):
Expand Down Expand Up @@ -417,7 +417,7 @@ def load_prepare_datasets(
)
dataset = load_dataset(
f"{cfg.push_dataset_to_hub}/{ds_hash}",
use_auth_token=use_auth_token,
token=use_auth_token,
)
dataset = dataset["train"]
except Exception: # pylint: disable=broad-except # nosec
Expand Down

0 comments on commit 5c0c12a

Please sign in to comment.