torch-model-archiver --model-name xyz --version 1.0 --serialized-file model.pth --handler handler.py
This is how you can convert a detectron model into a mar file.
NOTE: In your handler.py load config with model_zoo