Skip to content

Crashed on labml_nn/neox/samples/finetune.py #166

@Keith-Hon

Description

@Keith-Hon

I tried to run all .py files inside the samples folder. The generate.py and llm_int8.py files worked fine, however, the finetune.py crashed

https://app.labml.ai/run/b97204eaa95611eda6ae9bc880f62bb5

with error:

Traceback (most recent call last):
File "/home/paperspace/Desktop/playground/neox-20b/notebooks/finetune.py", line 128, in main()
File "/home/paperspace/Desktop/playground/neox-20b/notebooks/finetune.py", line 121, in main
conf.train_epoch()
File "/home/paperspace/.local/lib/python3.9/site-packages/labml_nn/neox/utils/trainer.py", line 116, in train_epoch
loss, output, target = self.get_loss(sample, split_name)
File "/home/paperspace/.local/lib/python3.9/site-packages/labml_nn/neox/utils/trainer.py", line 64, in get_loss
data, target = sample
TypeError: cannot unpack non-iterable NoneType object

I know it's using the Tiny Shakespeare dataset to do the finetuning, but i have no idea why it crashed. Also, I would like to know how to use a custom dataset to fine tune.

Any help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions