# Fine tune a model from a script-based dataset

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-a-model-from-a-script-based-dataset%2F30546%3E%5C
**Category:** 🤗Datasets\
**Created:** [January 27, 2023, 3:16am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-a-model-from-a-script-based-dataset%2F30546 "2023-01-27T03:16:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asennoussi](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/asennoussi/32/13665_2.png) [@asennoussi](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fasennoussi)%5C
**Post date:** [January 27, 2023, 3:16am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-a-model-from-a-script-based-dataset%2F30546%2F1 "2023-01-27T03:16:55Z")

</div>

Hi, I’m trying to follow this [tutorial to fine-tune whisper](https://huggingface.co/blog/fine-tune-whisper)  
But the change I’m having here is that I’m using a data set that I created using script as detailed [here](https://huggingface.co/docs/datasets/audio_dataset#loading-script)

Now when I load my dataset and try to print it as follows:

```auto
from datasets import load_dataset, DatasetDict

common_voice = DatasetDict()

common_voice["train"] = load_dataset("user/dataset-name", split="train", use_auth_token=True, streaming=True)

common_voice["test"] = load_dataset("user/dataset-name", split="test", use_auth_token=True, streaming=True)

print(common_voice)

```

It returns something like this:

```auto
DatasetDict({
    train: <datasets.iterable_dataset.IterableDataset object at 0x7f151f995760>
    test: <datasets.iterable_dataset.IterableDataset object at 0x7f151f9a3d60>
})

```

If I’d like to get something as described in the tutorial:

```auto
DatasetDict({
    train: Dataset({
        features: [list_of_features],
        num_rows: 6540
    })
    test: Dataset({
        features: [list_of_features],
        num_rows: 2894
    })
})

```

What am I missing?

---

<div class="post-metadata">

**Author:** ![stevhliu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/stevhliu/32/18373_2.png) [@stevhliu](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fstevhliu)%5C
**Post date:** [January 27, 2023, 5:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-a-model-from-a-script-based-dataset%2F30546%2F2 "2023-01-27T17:17:12Z")

</div>

Hi!

It’s because when `streaming=True`, it’ll return an `IterableDataset` which is different from a regular `Dataset` object. To return a regular `Dataset` object, you can just remove that argument from `load_dataset`:

```plaintext
from datasets import load_dataset, DatasetDict

common_voice = DatasetDict()
common_voice["train"] = load_dataset("user/dataset-name", split="train", use_auth_token=True)

```

---

<div class="post-metadata">

**Author:** ![asennoussi](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/asennoussi/32/13665_2.png) [@asennoussi](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fasennoussi)%5C
**Post date:** [January 28, 2023, 10:25am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-a-model-from-a-script-based-dataset%2F30546%2F3 "2023-01-28T10:25:48Z")

</div>

I still want to stream the data not download it. I don’t have enough space
