Download scripts/perplexity_sonar_pro/test_3_sycophancy.ps1 from bilaljawaid980/GRIP-Benchmark: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/datasets/bilaljawaid980/GRIP-Benchmark/resolve/5deb28cd253e6af89ceaa9ff6894959ab1e1096d/scripts/perplexity_sonar_pro/test_3_sycophancy.ps1
- Command line
-
hf download hf://datasets/bilaljawaid980/GRIP-Benchmark@5deb28cd253e6af89ceaa9ff6894959ab1e1096d/scripts/perplexity_sonar_pro/test_3_sycophancy.ps1
-
curl -L -o test_3_sycophancy.ps1 https://huggingface.co/datasets/bilaljawaid980/GRIP-Benchmark/resolve/5deb28cd253e6af89ceaa9ff6894959ab1e1096d/scripts/perplexity_sonar_pro/test_3_sycophancy.ps1
1.18 kB
| param( | |
| [ValidateSet("Prepare", "Run", "Score")] | |
| [string]$Action = "Prepare", | |
| [double]$MaxCost = 40.00 | |
| ) | |
| $ErrorActionPreference = "Stop" | |
| $RepoRoot = (Resolve-Path (Join-Path $PSScriptRoot "..\..")).Path | |
| $Manifest = "tests/test_3_sycophancy/plan/sycophancy_manifest_perplexity_sonar_pro.csv" | |
| $SkipLog = "tests/test_3_sycophancy/plan/sycophancy_skipped_perplexity_sonar_pro.csv" | |
| Set-Location $RepoRoot | |
| switch ($Action) { | |
| "Prepare" { | |
| python tests/test_3_sycophancy/scripts/build_sycophancy_manifest.py ` | |
| --models perplexity_sonar_pro --output $Manifest --skip-log $SkipLog | |
| } | |
| "Run" { | |
| if (-not (Test-Path -LiteralPath $Manifest)) { throw "Run Prepare first." } | |
| python tests/test_3_sycophancy/scripts/run_sycophancy.py ` | |
| --model perplexity_sonar_pro --manifest $Manifest ` | |
| --concurrency 1 --max-cost $MaxCost | |
| } | |
| "Score" { | |
| python tests/test_3_sycophancy/scripts/score_sycophancy.py ` | |
| --models perplexity_sonar_pro --manifest $Manifest ` | |
| --output-dir tests/test_3_sycophancy/analysis/perplexity_sonar_pro | |
| } | |
| } | |
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | |