Ian26's picture
download
raw
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
}
}
}

Xet Storage Details

Size:
1.43 kB
·
Xet hash:
32e2a757f1f0c1c7234bfbfdaa95c73de588e15671b484698beb315863a529cc

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.