a few bug fixed, tested single node (2 gpus) inversions