Unexpected keyword 'promote_options' error

I am trying to run the example in Fine-tune Llama 3 with ORPO in a databricks notebook (cutting and pasting code). I get to this line

dataset = dataset.map(
format_chat_template,
num_proc= os.cpu_count(),
)

and get the error:

TypeError: concat_tables() got an unexpected keyword argument ‘promote_options’
File , line 10
7 row[“rejected”] = tokenizer.apply_chat_template(row[“rejected”], tokenize=False)
8 return row
—> 10 dataset = dataset.map(
11 format_chat_template,
12 num_proc= os.cpu_count(),
13 )

Seems likely to be a lib version problem Any ideas on how to fix it? Versions to pin to? I’m just using the defaults, since the article did not specify as far as I saw.

Any luck with solving it? For me, a simple program can cause it. I have played around with different packages combinations, but no luck so far.

My program and conda packages list below. Unsure what is going wrong. Any help appreciated. Thx.


from datasets import load_dataset

Load the Gutenberg dataset from Hugging Face

dataset = load_dataset(“manu/project_gutenberg”)

Explore the dataset

print(dataset)

Accessing specific books

for book in dataset[‘train’]:
print(book[‘title’], book[‘text’])

Below is my conda environment (Conda version conda-24.7.1)

# packages in environment at /home/usrname/dir1/miniconda3/envs/envname:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                  2_kmp_llvm    conda-forge
aiohappyeyeballs          2.4.0              pyhd8ed1ab_0    conda-forge
aiohttp                   3.10.5          py310ha75aee5_1    conda-forge
aiosignal                 1.3.1              pyhd8ed1ab_0    conda-forge
aom                       3.9.1                hac33072_0    conda-forge
appdirs                   1.4.4              pyh9f0ad1d_0    conda-forge
async-timeout             4.0.3              pyhd8ed1ab_0    conda-forge
attrs                     24.2.0             pyh71513ae_0    conda-forge
aws-c-auth                0.7.29               h03582ad_1    conda-forge
aws-c-cal                 0.7.4                hfd43aa1_1    conda-forge
aws-c-common              0.9.28               hb9d3cd8_0    conda-forge
aws-c-compression         0.2.19               h756ea98_1    conda-forge
aws-c-event-stream        0.4.3                h235a6dd_1    conda-forge
aws-c-http                0.8.8                h5e77a74_2    conda-forge
aws-c-io                  0.14.18              hc2627b9_9    conda-forge
aws-c-mqtt                0.10.4              h01636a3_19    conda-forge
aws-c-s3                  0.6.5                h191b246_2    conda-forge
aws-c-sdkutils            0.1.19               h756ea98_3    conda-forge
aws-checksums             0.1.18              h756ea98_11    conda-forge
aws-crt-cpp               0.28.2               h29c84ef_4    conda-forge
aws-sdk-cpp               1.11.379             h5a9005d_9    conda-forge
azure-core-cpp            1.13.0               h935415a_0    conda-forge
azure-identity-cpp        1.8.0                hd126650_2    conda-forge
azure-storage-blobs-cpp   12.12.0              hd2e3451_0    conda-forge
azure-storage-common-cpp  12.7.0               h10ac4d7_1    conda-forge
azure-storage-files-datalake-cpp 12.11.0              h325d260_1    conda-forge
blas                      1.0                         mkl
boost-cpp                 1.85.0               h44aadfe_2    conda-forge
brotli-python             1.1.0           py310hf71b8c6_2    conda-forge
bzip2                     1.0.8                h4bc722e_7    conda-forge
c-ares                    1.33.1               heb4867d_0    conda-forge
ca-certificates           2024.8.30            hbcca054_0    conda-forge
cairo                     1.18.0               h3faef2a_0    conda-forge
certifi                   2024.8.30          pyhd8ed1ab_0    conda-forge
cffi                      1.17.1          py310h8deb56e_0    conda-forge
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
click                     8.1.7           unix_pyh707e725_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
cuda-cudart               12.4.127             he02047a_2    conda-forge
cuda-cudart_linux-64      12.4.127             h85509e4_2    conda-forge
cuda-cupti                12.4.127             he02047a_2    conda-forge
cuda-libraries            12.4.0                        0    nvidia
cuda-nvrtc                12.4.127             he02047a_2    conda-forge
cuda-nvtx                 12.4.127             he02047a_2    conda-forge
cuda-opencl               12.4.127             he02047a_1    conda-forge
cuda-runtime              12.4.0               ha804496_0    conda-forge
cuda-version              12.4                 h3060b56_3    conda-forge
cudnn                     8.9.7.29             h092f7fd_3    conda-forge
dataclasses               0.8                pyhc8e2a94_3    conda-forge
datasets                  3.0.0              pyhd8ed1ab_0    conda-forge
dav1d                     1.2.1                hd590300_0    conda-forge
dill                      0.3.8              pyhd8ed1ab_0    conda-forge
docker-pycreds            0.4.0                      py_0    conda-forge
expat                     2.6.3                h5888daf_0    conda-forge
ffmpeg                    7.0.1           gpl_hb399a10_100    conda-forge
filelock                  3.16.0             pyhd8ed1ab_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 h77eed37_2    conda-forge
fontconfig                2.14.2               h14ed4e7_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
freetype                  2.12.1               h267a509_2    conda-forge
fribidi                   1.0.10               h36c2ea0_0    conda-forge
frozenlist                1.4.1           py310ha75aee5_1    conda-forge
fsspec                    2024.6.1           pyhff2d567_0    conda-forge
gettext                   0.22.5               he02047a_3    conda-forge
gettext-tools             0.22.5               he02047a_3    conda-forge
gflags                    2.2.2             he1b5a44_1004    conda-forge
gitdb                     4.0.11             pyhd8ed1ab_0    conda-forge
gitpython                 3.1.43             pyhd8ed1ab_0    conda-forge
glog                      0.7.1                hbabe93e_0    conda-forge
gmp                       6.3.0                hac33072_2    conda-forge
gmpy2                     2.1.5           py310he8512ff_2    conda-forge
gnutls                    3.7.9                hb077bed_0    conda-forge
graphite2                 1.3.13            h59595ed_1003    conda-forge
h2                        4.1.0              pyhd8ed1ab_0    conda-forge
harfbuzz                  8.5.0                hfac3d4d_0    conda-forge
hpack                     4.0.0              pyh9f0ad1d_0    conda-forge
huggingface_hub           0.24.7             pyhd8ed1ab_0    conda-forge
hyperframe                6.0.1              pyhd8ed1ab_0    conda-forge
icu                       73.2                 h59595ed_0    conda-forge
idna                      3.8                pyhd8ed1ab_0    conda-forge
importlib-metadata        8.5.0              pyha770c72_0    conda-forge
importlib_metadata        8.5.0                hd8ed1ab_0    conda-forge
intel-openmp              2022.0.1          h06a4308_3633
jinja2                    3.1.4              pyhd8ed1ab_0    conda-forge
joblib                    1.4.2              pyhd8ed1ab_0    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.21.3               h659f571_0    conda-forge
lame                      3.100             h166bdaf_1003    conda-forge
lcms2                     2.16                 hb7c19ff_0    conda-forge
ld_impl_linux-64          2.40                 hf3520f5_7    conda-forge
lerc                      4.0.0                h27087fc_0    conda-forge
libabseil                 20240116.2      cxx17_he02047a_1    conda-forge
libarrow                  17.0.0          h8d2e343_13_cpu    conda-forge
libarrow-acero            17.0.0          h5888daf_13_cpu    conda-forge
libarrow-dataset          17.0.0          h5888daf_13_cpu    conda-forge
libarrow-substrait        17.0.0          hf54134d_13_cpu    conda-forge
libasprintf               0.22.5               he8f35ee_3    conda-forge
libasprintf-devel         0.22.5               he8f35ee_3    conda-forge
libass                    0.17.1               h8fe9dca_1    conda-forge
libblas                   3.9.0            20_linux64_mkl    conda-forge
libboost                  1.85.0               hba137d9_2    conda-forge
libboost-devel            1.85.0               h00ab1b0_2    conda-forge
libboost-headers          1.85.0               ha770c72_2    conda-forge
libbrotlicommon           1.1.0                hb9d3cd8_2    conda-forge
libbrotlidec              1.1.0                hb9d3cd8_2    conda-forge
libbrotlienc              1.1.0                hb9d3cd8_2    conda-forge
libcblas                  3.9.0            20_linux64_mkl    conda-forge
libcrc32c                 1.1.2                h9c3ff4c_0    conda-forge
libcublas                 12.4.2.65            hd3aeb46_0    conda-forge
libcufft                  11.2.0.44            hd3aeb46_0    conda-forge
libcufile                 1.9.1.3              he02047a_2    conda-forge
libcurand                 10.3.5.147           he02047a_2    conda-forge
libcurl                   8.10.0               hbbe4b11_0    conda-forge
libcusolver               11.6.0.99            hd3aeb46_0    conda-forge
libcusparse               12.3.0.142           hd3aeb46_0    conda-forge
libdeflate                1.21                 h4bc722e_0    conda-forge
libdrm                    2.4.123              hb9d3cd8_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 hd590300_2    conda-forge
libevent                  2.1.12               hf998b51_1    conda-forge
libexpat                  2.6.3                h5888daf_0    conda-forge
libffi                    3.4.4                h6a678d5_1
libgcc                    14.1.0               h77fa898_1    conda-forge
libgcc-ng                 14.1.0               h69a702a_1    conda-forge
libgettextpo              0.22.5               he02047a_3    conda-forge
libgettextpo-devel        0.22.5               he02047a_3    conda-forge
libglib                   2.80.2               hf974151_0    conda-forge
libgomp                   14.1.0               h77fa898_1    conda-forge
libgoogle-cloud           2.28.0               h26d7fe4_0    conda-forge
libgoogle-cloud-storage   2.28.0               ha262f82_0    conda-forge
libgrpc                   1.62.2               h15f2491_0    conda-forge
libhwloc                  2.11.1          default_hecaa2ac_1000    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
libidn2                   2.3.7                hd590300_0    conda-forge
libjpeg-turbo             3.0.0                hd590300_1    conda-forge
liblapack                 3.9.0            20_linux64_mkl    conda-forge
libmagma                  2.8.0                h0af6554_0    conda-forge
libmagma_sparse           2.8.0                h0af6554_0    conda-forge
libnghttp2                1.58.0               h47da74e_1    conda-forge
libnpp                    12.2.5.2             hd3aeb46_0    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libnvfatbin               12.4.127             he02047a_2    conda-forge
libnvjitlink              12.4.99              hd3aeb46_0    conda-forge
libnvjpeg                 12.3.1.89            h59595ed_0    conda-forge
libopenvino               2024.1.0             h2da1b83_7    conda-forge
libopenvino-auto-batch-plugin 2024.1.0             hb045406_7    conda-forge
libopenvino-auto-plugin   2024.1.0             hb045406_7    conda-forge
libopenvino-hetero-plugin 2024.1.0             h5c03a75_7    conda-forge
libopenvino-intel-cpu-plugin 2024.1.0             h2da1b83_7    conda-forge
libopenvino-intel-gpu-plugin 2024.1.0             h2da1b83_7    conda-forge
libopenvino-intel-npu-plugin 2024.1.0             he02047a_7    conda-forge
libopenvino-ir-frontend   2024.1.0             h5c03a75_7    conda-forge
libopenvino-onnx-frontend 2024.1.0             h07e8aee_7    conda-forge
libopenvino-paddle-frontend 2024.1.0             h07e8aee_7    conda-forge
libopenvino-pytorch-frontend 2024.1.0             he02047a_7    conda-forge
libopenvino-tensorflow-frontend 2024.1.0             h39126c6_7    conda-forge
libopenvino-tensorflow-lite-frontend 2024.1.0             he02047a_7    conda-forge
libopus                   1.3.1                h7f98852_1    conda-forge
libparquet                17.0.0          h39682fd_13_cpu    conda-forge
libpciaccess              0.18                 hd590300_0    conda-forge
libpng                    1.6.43               h2797004_0    conda-forge
libprotobuf               4.25.3               h08a7969_0    conda-forge
libre2-11                 2023.09.01           h5a48ba9_2    conda-forge
libsqlite                 3.46.0               hde9e2c9_0    conda-forge
libssh2                   1.11.0               h0841786_0    conda-forge
libstdcxx                 14.1.0               hc0a3c3a_1    conda-forge
libstdcxx-ng              14.1.0               h4852527_1    conda-forge
libtasn1                  4.19.0               h166bdaf_0    conda-forge
libthrift                 0.20.0               h0e7cc3e_1    conda-forge
libtiff                   4.6.0                h46a8edc_4    conda-forge
libtorch                  2.4.0           cuda120_h2b0da52_301    conda-forge
libunistring              0.9.10               h7f98852_0    conda-forge
libutf8proc               2.8.0                h166bdaf_0    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libuv                     1.48.0               hd590300_0    conda-forge
libva                     2.21.0               h4ab18f5_2    conda-forge
libvpx                    1.14.1               hac33072_0    conda-forge
libwebp-base              1.4.0                hd590300_0    conda-forge
libxcb                    1.15                 h0b41bf4_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxml2                   2.12.7               hc051c1a_1    conda-forge
libzlib                   1.3.1                h4ab18f5_1    conda-forge
llvm-openmp               18.1.7               ha31de31_0    conda-forge
lz4-c                     1.9.4                hcb278e6_0    conda-forge
markupsafe                2.1.5           py310ha75aee5_1    conda-forge
mkl                       2023.2.0         h84fe81f_50496    conda-forge
mkl-service               2.4.0           py310h5eee18b_1
mkl_fft                   1.3.10          py310h5eee18b_0
mkl_random                1.2.7           py310h1128e8f_0
mpc                       1.3.1                h24ddda3_1    conda-forge
mpfr                      4.2.1                h90cbb55_3    conda-forge
mpmath                    1.3.0              pyhd8ed1ab_0    conda-forge
multidict                 6.1.0           py310ha75aee5_0    conda-forge
multiprocess              0.70.16         py310ha75aee5_1    conda-forge
nccl                      2.22.3.1             hbc370b7_1    conda-forge
ncurses                   6.5                  he02047a_1    conda-forge
nettle                    3.9.1                h7ab15ed_0    conda-forge
networkx                  3.3                pyhd8ed1ab_1    conda-forge
numpy                     1.26.4          py310h5f9d8c6_0
numpy-base                1.26.4          py310hb5e798b_0
ocl-icd                   2.3.2                hd590300_1    conda-forge
openh264                  2.4.1                h59595ed_0    conda-forge
openjpeg                  2.5.2                he7f1fd0_0
openssl                   3.3.2                hb9d3cd8_0    conda-forge
orc                       2.0.2                h669347b_0    conda-forge
p11-kit                   0.24.1               hc5aa10d_0    conda-forge
packaging                 24.1               pyhd8ed1ab_0    conda-forge
pandas                    2.2.2           py310hf9f9076_1    conda-forge
pcre2                     10.43                hcad00b1_0    conda-forge
pillow                    10.3.0          py310hf73ecf8_0    conda-forge
pip                       24.2               pyh8b19718_1    conda-forge
pixman                    0.43.2               h59595ed_0    conda-forge
platformdirs              4.3.2              pyhd8ed1ab_0    conda-forge
protobuf                  4.25.3          py310h0e2eeba_1    conda-forge
psutil                    6.0.0           py310ha75aee5_1    conda-forge
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
pugixml                   1.14                 h59595ed_0    conda-forge
pyarrow                   17.0.0          py310hb7f781d_1    conda-forge
pyarrow-core              17.0.0          py310h85d79f8_1_cpu    conda-forge
pycparser                 2.22               pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.14         hd12c33a_0_cpython    conda-forge
python-dateutil           2.9.0              pyhd8ed1ab_0    conda-forge
python-tzdata             2024.1             pyhd8ed1ab_0    conda-forge
python-xxhash             3.5.0           py310ha75aee5_1    conda-forge
python_abi                3.10                    5_cp310    conda-forge
pytorch                   2.4.0           cuda120_py310h2c91c31_301    conda-forge
pytorch-cuda              12.4                 hc786d27_6    pytorch
pytorch-mutex             1.0                        cuda    pytorch
pytz                      2024.2             pyhd8ed1ab_0    conda-forge
pyyaml                    6.0.2           py310ha75aee5_1    conda-forge
re2                       2023.09.01           h7f4b329_2    conda-forge
readline                  8.2                  h8228510_1    conda-forge
regex                     2024.9.11       py310ha75aee5_0    conda-forge
requests                  2.32.3             pyhd8ed1ab_0    conda-forge
s2n                       1.5.2                h7b32b05_0    conda-forge
sacremoses                0.0.53             pyhd8ed1ab_0    conda-forge
safetensors               0.4.5           py310h505e2c1_0    conda-forge
sentry-sdk                2.14.0             pyhd8ed1ab_0    conda-forge
setproctitle              1.3.3           py310ha75aee5_1    conda-forge
setuptools                73.0.1             pyhd8ed1ab_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
sleef                     3.6.1                h1b44611_3    conda-forge
smmap                     5.0.0              pyhd8ed1ab_0    conda-forge
snappy                    1.2.1                ha2e4443_0    conda-forge
sqlite                    3.46.0               h6d4b2fc_0    conda-forge
svt-av1                   2.1.0                hac33072_0    conda-forge
sympy                     1.13.2          pypyh2585a3b_103    conda-forge
tbb                       2021.13.0            h84d6215_0    conda-forge
tiktoken                  0.7.0           py310ha058ca7_0    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tokenizers                0.20.0          py310h6a8e13f_0    conda-forge
torchaudio                2.4.0               py310_cu124    pytorch
torchtriton               3.0.0                     py310    pytorch
torchvision               0.19.0              py310_cu124    pytorch
tqdm                      4.66.5             pyhd8ed1ab_0    conda-forge
transformers              4.17.0             pyhd8ed1ab_0    conda-forge
typing-extensions         4.12.2               hd8ed1ab_0    conda-forge
typing_extensions         4.12.2             pyha770c72_0    conda-forge
tzdata                    2024a                h8827d51_1    conda-forge
urllib3                   2.2.2              pyhd8ed1ab_1    conda-forge
utf8proc                  2.6.1                h5eee18b_1
wandb                     0.16.6             pyhd8ed1ab_1    conda-forge
wheel                     0.44.0             pyhd8ed1ab_0    conda-forge
x264                      1!164.3095           h166bdaf_2    conda-forge
x265                      3.5                  h924138e_3    conda-forge
xorg-fixesproto           5.0               h7f98852_1002    conda-forge
xorg-kbproto              1.0.7             h7f98852_1002    conda-forge
xorg-libice               1.1.1                hd590300_0    conda-forge
xorg-libsm                1.2.4                h7391055_0    conda-forge
xorg-libx11               1.8.9                h8ee46fc_0    conda-forge
xorg-libxau               1.0.11               hd590300_0    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xorg-libxext              1.3.4                h0b41bf4_2    conda-forge
xorg-libxfixes            5.0.3             h7f98852_1004    conda-forge
xorg-libxrender           0.9.11               hd590300_0    conda-forge
xorg-renderproto          0.11.1            h7f98852_1002    conda-forge
xorg-xextproto            7.3.0             h0b41bf4_1003    conda-forge
xorg-xproto               7.0.31            h7f98852_1007    conda-forge
xxhash                    0.8.2                hd590300_0    conda-forge
xz                        5.4.6                h5eee18b_1
yaml                      0.2.5                h7f98852_2    conda-forge
yarl                      1.9.4           py310ha75aee5_1    conda-forge
zipp                      3.20.2             pyhd8ed1ab_0    conda-forge
zlib                      1.3.1                h4ab18f5_1    conda-forge
zstandard                 0.23.0          py310ha39cb0e_1    conda-forge
zstd                      1.5.6                ha6fb4c9_0    conda-forge```

And just for completion sake, I updated datasets from huggingface.

$ conda install -c huggingface -c conda-forge datasets
Channels:
 - huggingface
 - conda-forge
 - defaults
 - nvidia
 - pytorch
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/usrname/dir1/miniconda3/envs/envname

  added / updated specs:
    - datasets


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    datasets-3.0.0             |             py_0         333 KB  huggingface
    ------------------------------------------------------------
                                           Total:         333 KB

The following NEW packages will be INSTALLED:

  pyarrow-hotfix     conda-forge/noarch::pyarrow-hotfix-0.6-pyhd8ed1ab_0

The following packages will be SUPERSEDED by a higher-priority channel:

  datasets           conda-forge::datasets-3.0.0-pyhd8ed1a~ --> huggingface::datasets-3.0.0-py_0


Proceed ([y]/n)?


Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done```

No luck.

Updating existing message as I am not allowed by HF to post more messages on single thread as a newbie. Anyhow, I resolved the error by using “pip install” instead of “conda install” of datasets. Seems like the conda datasets packages are not updated.

And this is the exact error stack.

$ python .//project_gutenberg_tests.py
Resolving data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 52/52 [00:00<00:00, 291.93it/s]
Traceback (most recent call last):
  File "./project_gutenberg_tests.py", line 4, in <module>
    dataset = load_dataset("manu/project_gutenberg")
  File "envname/lib/python3.10/site-packages/datasets/load.py", line 2108, in load_dataset
    ds = builder_instance.as_dataset(split=split, verification_mode=verification_mode, in_memory=keep_in_memory)
  File "envname/lib/python3.10/site-packages/datasets/builder.py", line 1125, in as_dataset
    datasets = map_nested(
  File "envname/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 511, in map_nested
    mapped = [
  File "envname/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 512, in <listcomp>
    _single_map_nested((function, obj, batched, batch_size, types, None, True, None))
  File "envname/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 373, in _single_map_nested
    return function(data_struct)
  File "envname/lib/python3.10/site-packages/datasets/builder.py", line 1155, in _build_single_dataset
    ds = self._as_dataset(
  File "envname/lib/python3.10/site-packages/datasets/builder.py", line 1229, in _as_dataset
    dataset_kwargs = ArrowReader(cache_dir, self.info).read(
  File "envname/lib/python3.10/site-packages/datasets/arrow_reader.py", line 252, in read
    return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
  File "envname/lib/python3.10/site-packages/datasets/arrow_reader.py", line 273, in read_files
    pa_table = self._read_files(files, in_memory=in_memory)
  File "envname/lib/python3.10/site-packages/datasets/arrow_reader.py", line 216, in _read_files
    pa_table = concat_tables(pa_tables) if len(pa_tables) != 1 else pa_tables[0]
  File "envname/lib/python3.10/site-packages/datasets/table.py", line 1766, in concat_tables
    return ConcatenationTable.from_tables(tables, axis=axis)
  File "envname/lib/python3.10/site-packages/datasets/table.py", line 1472, in from_tables
    return cls.from_blocks(blocks)
  File "envname/lib/python3.10/site-packages/datasets/table.py", line 1385, in from_blocks
    table = cls._concat_blocks(blocks, axis=0)
  File "envname/lib/python3.10/site-packages/datasets/table.py", line 1331, in _concat_blocks
    return pa.concat_tables(pa_tables, promote_options="default")
  File "pyarrow/table.pxi", line 5165, in pyarrow.lib.concat_tables
TypeError: concat_tables() got an unexpected keyword argument 'promote_options'```