PyMuPDF verovio gradio numpy modelscope Pillow tiktoken transformers torch torchvision accelerate