Only default `rope_parameters` to empty `dict` if there is something to put in it (#42651)
* Only default `rope_parameters` to empty `dict` if there is something to put in it
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
* Add warning
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
* Also catch explicit `{}`
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
* Handle model with layer types and rope theta but not rope parameters
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
---------
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>