TypeError: __init__() got an unexpected keyword argument 'tuning_mode'
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 32/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- machine-learning
Research direction
Start with scripts/train_critic.sh and CodeRL/train.py, especially run_training at line 35 where T5ForConditionalGeneration.from_pretrained is called. Reproduce the failure with the training script and inspect the installed Transformers API; done means the command proceeds without the tuning_mode TypeError.
Written by the indexing model from the issue text.
Description
Traceback (most recent call last):
File "G:\CodeRL_A3\CodeRL\CodeRL\train.py", line 155, in
main(args)
File "G:\CodeRL_A3\CodeRL\CodeRL\train.py", line 149, in main
run_training(args, train_data)
File "G:\CodeRL_A3\CodeRL\CodeRL\train.py", line 35, in run_training
model = transformers.T5ForConditionalGeneration.from_pretrained(
File "H:\Anaconda\envs\CodeRL_A3\lib\site-packages\transformers\modeling_utils.py", line 1489, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
TypeError: init() got an unexpected keyword argument 'tuning_mode'
When I run "$ /bin/bash scripts/train_critic.sh",it went wrong.
- Dominant language
- Python
- Stars
- 578
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from salesforce/CodeRL
-
Difficulty 4/5 3-5 days Newbie friendliness 10/100
salesforce/CodeRL#65 ·
-
CodeRL模型谷歌云盘访问遭拒Open
Difficulty 4/5 3-5 days Newbie friendliness 10/100
salesforce/CodeRL#64 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
salesforce/CodeRL#63 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
salesforce/CodeRL#60 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
salesforce/CodeRL#59 · 1 comment ·
All issues in salesforce/CodeRL
Similar issues
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
MakazhanAlpamys/Soup#3589 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/clickhouse-connect#1266 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
biosustain/growthcurves_app#89 ·
Maintainers usually reply within 1 day
-
`LogProxyConsumer._on_relation_departed` raises `APIError` when the promtail service does not existOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
canonical/loki-k8s-operator#695 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day