Failed to run example script for CP-Tuning: type object got multiple values for keyword argument 'user_defined_parameters'
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
I'm using `pai-easynlp 0.0.3` installed by pip.
I copy the training command from [here](https://www.yuque.com/easyx/easynlp/ochmnf) and modify a little.
```
echo '=========[ Fewshot Training: CP-Tuning on Text Classification ]========='
easynlp \
--app_name=text_classify \
--mode=train \
--worker_count=1 \
--worker_gpu=1 \
--tables=data/fewshot_train.tsv,data/fewshot_dev.tsv \
--input_schema=sid:str:1,sent1:str:1,sent2:str:1,label:str:1 \
--first_sequence=sent1 \
--second_sequence=sent2 \
--label_name=label \
--label_enumerate_values=0,1 \
--checkpoint_dir=./fewshot_model/ \
--learning_rate=1e-5 \
--epoch_num=1 \
--random_seed=42 \
--save_checkpoint_steps=100 \
--sequence_length=512 \
--micro_batch_size=8 \
--user_defined_parameters="
pretrain_model_name_or_path=/path/to/pretrained/model
enable_fewshot=True
type=cpt_fewshot
pattern=sent1,label,用,sent2,概括。
"
```
And here's the error stack.

Contributor guide
No contributing guide indexed for this repository
Research direction
Re-run the provided EasyNLP CP-Tuning text-classification command with pai-easynlp 0.0.3 and capture the complete traceback. Trace where user_defined_parameters is passed twice, then verify the fix by successfully rerunning the example with the documented arguments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100