gen_model_answer.py on peft adapter gets problem
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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