AttributeError: 'Namespace' object has no attribute 'to_json_string'
trainer.train()
don't know how to set parameters self.args.to_json_string()

I'm not sure I understand what you're trying to do. Do you mind explaining? Showing the code you're using would help as well.<|||||>```
training_args = dict( num_cores=  8, model_name_or_path= 't5-base',
  max_len= 512 ,target_max_len= 2, output_dir= './models',
  overwrite_output_dir= True,
  per_gpu_train_batch_size= 8,
  per_gpu_eval_batch_size= 8,
  gradient_accumulation_steps= 4,
  learning_rate= 1e-4,
  tpu_num_cores= 8,
                logging_dir='/log',
  do_train= True, weight_decay=0.00,
                     device='xla',local_rank=-1,
                     max_steps=10000, adam_epsilon=1e-8,
    warmup_steps=0,
    train_batch_size=8,
    eval_batch_size=8,
    num_train_epochs=1,
    early_stop_callback=False,
    fp_16=False, # if you want to enable 16-bit training then install apex and set this to true
    opt_level='O1', # you can find out more on optimisation levels here https://nvidia.github.io/apex/amp.html#opt-levels-and-properties
    max_grad_norm=1.0, # if you enable 16-bit training then set this to a sensible value, 0.5 is a good default
    seed=42, fp16=False, n_gpu=0,SummaryWriter=None)
       from transformers import Trainer
trainer = Trainer(
        model=model,
        args=argparse.Namespace(**training_args),
        train_dataset=train_dataset,
        data_collator=T2TDataCollator(),
        prediction_loss_only=True, tb_writer=None
    )

trainer.train()

````<|||||>here is my code and i got 
AttributeError: 'Namespace' object has no attribute 'to_json_string'<|||||>Trainer's args should be a `TrainingArguments` instance, not a dict or a Namespace.

Try:
```python
from transformers import TrainingArguments
```