lm-sys / lm-sys/FastChat

gen_model_answer.py on peft adapter gets problem

Open
#2,114 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

I have a peft adapter model for a finetuned Falcon7b model,
When using gen_mode_answer.py, i get this error:
TypeError: PeftModelForCausalLM.generate() takes 1 positional argument but 2 were given
python gen_model_answer.py --model-path /falcon_finetuned/trained_model/ --model-id falcon_finetuned

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with gen_model_answer.py and reproduce the reported command using the supplied Falcon fine-tuned adapter path. Trace the call that reaches PeftModelForCausalLM.generate() and compare it with the supported generation interface. Done means the command runs successfully for this adapter without the reported positional-argument TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.