EleutherAI / gpt-neox

An implementation of model parallel autoregressive transformers on GPUs, based on the Megatron and DeepSpeed libraries

Home Page:https://www.eleuther.ai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on inference of huggingface

mackmake opened this issue · comments

hi again
i converted my trained model to HF with the code in /tools/dataset. I wanted to fine-tune the HF model using SFTTrainer but i got this error:

gptneoxmodel.forward() got an unexpected keyword argument 'labels'

I used either a dataset from HF or my own .jsonl dataset with 'text' column each row.
why this problem happens and how can i solve the problem?

This sounds more likely to be a problem with the training set-up than our conversion code. Can you run inference in the transformers library?

sorry for mistake. i had loaded model with AutoModel.
loading it with AutoModelForCausalLM did the work ^_^
thank you very much