automatically probe model file format