Setting iiwa.torque has no effect on commanded torque:
feedforward torque: [0. 0. 0. 0. 0. 0. 0.]
commanded torque with no feedforward torque:[ 176. -176. 110. 110. 110. -40. -40.]
feedforward torque: [3.1 3.2 3.3 3.4 3.5 3.6 3.7]
the commanded torque: [ 176. -176. 110. 110. 110. -40. -40.]
I had previous version of the notebook for this exercise on deepnote (where iiwa_feedforward_torque was used) and commanded torque was as expected.