i am trying to run evaluation to check inference trying both the cpu and gpu gets resource exhausted what is the ideal configuration to run this.