regex accelerate transformers safetensors requests