Difficulties in installing custom NLU Component on Kubernetes

Hi! I am trying to create a Rasa X server with a custom python pipeline component. There are only documentation for custom pipelines in Rasa Open Source, and I am not sure how to use this together with Rasa X. The custom component that I’m using requires other dependencies such as pytorch, which I’m unsure as to how it should be installed. Any help would be deeply appreciated, thanks!

I’m running Rasa X on EC2 in a Kubernetes cluster: Rasa Version 2.2.4 Rasa X: 0.35.0