0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Hugging Faceのdatasetsライブラリを更新してload_dataset()でエラーがでるときの対処

Last updated at Posted at 2025-08-23

発生したエラー

pip install datasets でdatasetsライブラリを3.6から4.0にupdateしたらunslothのコードでエラーが起こるようになった。
実行したコードと表示されていたエラーはこちら。

from datasets import load_dataset
dataset = load_dataset("mlabonne/FineTome-100k", split = "train")

ValueError: Feature type 'List' not found. Available feature types: ['Value', 'ClassLabel', 'Translation', 'TranslationVariableLanguages', 'LargeList', 'Sequence', 'Array2D', 'Array3D', 'Array4D', 'Array5D', 'Audio', 'Image', 'Video', 'Pdf']

類似の報告とその中での対処

githubやQiitaでも同じ事象を報告している人がいて、基本的にはdatasetsライブラリのバージョンを下げるのが対処のようだった。

https://github.com/huggingface/lerobot/issues/1571
https://github.com/huggingface/lerobot/issues/1538
https://github.com/huggingface/datasets/issues/7676
https://qiita.com/tetsuro731/items/783afb42f9a36787262b

あと、load_datasetdownload_mode="force_redownload"オプションがあるのでそれを使ってみましたが、それでも動作しませんでした。

対処方法

キャッシュされてるディレクトリで対象のファイルを直接消したら再ダウンロードするようになって解消しました。具体的には
~/.cache/huggingface/datasets のファイルを見て対象のファイルを削除します。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?