import requests url = 'https://gpt4all.io/models/ggml-mpt-7b-chat.bin' response = requests.get(url) with open('ggml-mpt-7b-chat.bin', 'wb') as f: f.write(response.content)