scikit-learn torch pytorch-lightning safetensors requests gradio transformers numpy scipy