TypeError: __init__() got an unexpected keyword argument 'tuning_mode'

Open
#61 3 comments 0 reactions 0 assignees View on GitHub

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

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.
image
image

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

  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.

More from salesforce/CodeRL

All issues in salesforce/CodeRL

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.