Parameter containing:
tensor([[ -0.7539, 0.5977, -2.4375, ..., 1.2500, -0.7891, 3.5156],
[ 11.3750, -4.8750, 9.0625, ..., 4.8438, 14.3750, -5.7812],
[-16.6250, 11.0625, -20.8750, ..., 10.6875, 22.2500, 25.0000],
...,
[ 2.2344, 6.7500, -11.0625, ..., -11.3125, 13.5625, 16.6250],
[ 4.2500, 5.1250, -12.2500, ..., -11.9375, 13.5000, 17.0000],
[ 4.0625, 6.9688, -12.2500, ..., -11.3750, 11.9375, 16.6250]],
requires_grad=True)
Some weights of T5ForConditionalGeneration were not initialized from the model checkpoint at t5-base and are newly initialized: ['lm_head.weight']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
Some weights of Model were not initialized from the model checkpoint at /tmp/abc and are newly initialized: ['another_model.lm_head.weight']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
Parameter containing:
tensor([[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.],
...,
[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.]], requires_grad=True)
tensor([[ -0.7539, 0.5977, -2.4375, ..., 1.2500, -0.7891, 3.5156],
[ 11.3750, -4.8750, 9.0625, ..., 4.8438, 14.3750, -5.7812],
[-16.6250, 11.0625, -20.8750, ..., 10.6875, 22.2500, 25.0000],
...,
[ 2.2344, 6.7500, -11.0625, ..., -11.3125, 13.5625, 16.6250],
[ 4.2500, 5.1250, -12.2500, ..., -11.9375, 13.5000, 17.0000],
[ 4.0625, 6.9688, -12.2500, ..., -11.3750, 11.9375, 16.6250]],
requires_grad=True)
System Info
transformersversion: 4.53.3Who can help?
@ArthurZucker @Cyrilvallez
Information
Tasks
examplesfolder (such as GLUE/SQuAD, ...)Reproduction
Run:
and you'll get the output:
Expected behavior
That the last
printstatement outputs the same as the first one, instead of zeros: