In particular, it’s easier to provide an answer if you can make your question more concrete, e.g., by supplying a minimal example of the code you have tried, or an implementation of a toy model.
You can also use the search feature of discourse to look for similar questions.
For example, there might be some issues with @theads and the solvers: