Created
August 11, 2023 13:23
-
-
Save twobob/21a808bd022b14bfa5afa5a6ab780d5d to your computer and use it in GitHub Desktop.
This script is ultimately called by the wrappers to invoke the various sampling routes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[int]$loops = 3, | |
[string[]]$models = 'stories15M.bin', | |
[string[]]$compilers = 'run.exe' | |
) | |
$randomModels = $models | Get-Random -Count $models.Length | |
$randomCompilers = $compilers | Get-Random -Count $compilers.Length | |
$env:OMP_NUM_THREADS = [System.Environment]::ProcessorCount | |
1..$loops | ForEach-Object { | |
$seed = (Get-Date -Format "hhmmss") | |
Write-Host "Selected Seed:" -ForegroundColor Green | |
Write-Host $seed | |
$randomModels | ForEach-Object { | |
$model = $_ | |
Write-Host "`nModel chosen: $model" | |
$randomCompilers | ForEach-Object { | |
& "./$_" "../out/$model" -n 0 -i "Ok" -t 1.0 -s $seed -f 0 -p 1.0 -k 0 -f 0 -l 1 -g 1 -b 1 -d inbox | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment