Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on inference of huggingface #1142

Closed
mackmake opened this issue Feb 3, 2024 · 2 comments
Closed

Error on inference of huggingface #1142

mackmake opened this issue Feb 3, 2024 · 2 comments

Comments

@mackmake
Copy link

mackmake commented Feb 3, 2024

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?

@StellaAthena
Copy link
Member

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?

@mackmake
Copy link
Author

mackmake commented Feb 4, 2024

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

@mackmake mackmake closed this as completed Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants