Skip to content

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

Open

Description

@LOVEISI

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

Activity

  1. YTJY commented on Dec 9, 2024

    @YTJY

    Hello, I don't know if you solved this problem, I'm also experiencing this problem now, can you give me some advice

  2. LOVEISI commented on Dec 10, 2024

    @LOVEISI
    Author

    Hello, I don't know if you solved this problem, I'm also experiencing this problem now, can you give me some advice

    image
    I'm just going to simply remove this parameter now, like in the picture. But I don't know if anything will go wrong in the future.

  3. LOVEISI commented on Nov 3, 2025

    @LOVEISI
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions