juanko:

and as Keras has only one bias(the same shape with both of the biases in the Pytorch LSTM), the same weights are given for both of the biases.


That doesn’t sound right. Could you check the shape of the bias in the Keras model and compare it to both bias parameters in the PyTorch implementation?