Download scripts/Menu.ps1 from Ian26/MarsLM: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/Ian26/MarsLM/resolve/main/scripts/Menu.ps1
- Command line
-
hf download hf://Ian26/MarsLM/scripts/Menu.ps1
-
curl -L -o Menu.ps1 https://huggingface.co/Ian26/MarsLM/resolve/main/scripts/Menu.ps1
1.43 kB
| $ErrorActionPreference = "Stop" | |
| $scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path | |
| $repoRoot = Resolve-Path (Join-Path $scriptPath "..") | |
| Set-Location $repoRoot | |
| while ($true) { | |
| Write-Host "" | |
| Write-Host "========================================" -ForegroundColor Cyan | |
| Write-Host "MarsLM - Menú principal" -ForegroundColor Cyan | |
| Write-Host "========================================" -ForegroundColor Cyan | |
| Write-Host "1. Entrenar modelo" -ForegroundColor Yellow | |
| Write-Host "2. Generar texto" -ForegroundColor Yellow | |
| Write-Host "3. Ver checkpoints" -ForegroundColor Yellow | |
| Write-Host "4. Salir" -ForegroundColor Yellow | |
| $choice = Read-Host "Elige una opción" | |
| switch ($choice) { | |
| "1" { | |
| $epochs = Read-Host "Número de epochs (por ejemplo 5)" | |
| powershell -ExecutionPolicy Bypass -File .\scripts\TrainEvaluate.ps1 -Epochs $epochs | |
| } | |
| "2" { | |
| $prompt = Read-Host "Escribe el prompt" | |
| powershell -ExecutionPolicy Bypass -File .\scripts\GenerateText.ps1 -Prompt $prompt -MaxNewTokens 60 -Temperature 0.2 | |
| } | |
| "3" { | |
| Get-ChildItem .\artifacts\checkpoints | Select-Object Name, Length | Format-Table -AutoSize | |
| } | |
| "4" { | |
| break | |
| } | |
| default { | |
| Write-Host "Opción no válida" -ForegroundColor Red | |
| } | |
| } | |
| } | |