File size: 326 Bytes
18fff49
526838f
18fff49
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import urllib.request

url = 'https://gpt4all.io/models/ggml-mpt-7b-chat.bin'
filename = 'ggml-mpt-7b-chat.bin'

try:
    # Download the file
    urllib.request.urlretrieve(url, filename)
    print(f"Successfully downloaded '{filename}'")
except Exception as e:
    print(f"An error occurred while downloading the file: {e}")