How to sercure model architecture on on-premise software?

Is there any way to run and re-train my model without using its source code? And make the model architecture unable to be viewed or de-compiled?