torch transformers spaces scipy accelerate