File size: 603 Bytes
b27fafd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Create directory for the model
New-Item -ItemType Directory -Path .\flan-t5-small -Force
# Define the list of model files
$files = @(
    "config.json",
    "pytorch_model.bin",
    "tokenizer.json",
    "tokenizer_config.json",
    "special_tokens_map.json",
    "vocab.txt"
)
# Base URL for the model files
$base_url = "https://huggingface.co/google/flan-t5-small/resolve/main/"
# Loop through each file and download it
foreach ($file in $files) {
    $url = "$base_url$file"
    $output = ".\flan-t5-small\$file"
    Invoke-WebRequest -Uri $url -OutFile $output
    Write-Host "Downloaded: $file"
}