• Lysandre's avatar
    Bias should be resized with the weights · 100e3b6f
    Lysandre authored
    Created a link between the linear layer bias and the model attribute bias. This does not change anything for the user nor for the conversion scripts, but allows the `resize_token_embeddings` method to resize the bias as well as the weights of the decoder.
    
    Added a test.
    100e3b6f
test_modeling_common.py 28 KB