Hay,
unfortunately I have not found a solution to the problem. But since I didn’t want to train my model on the Arduino anyway, I switched to saving the weights directly from the Python script in an .h file, which I then include on my Portenta.
If someone has an idea in what way it is possible after all, I would still appreciate an answer