param( [string]$Prompt = "Programación", [string]$ModelPath = "artifacts/checkpoints/marslm-final.pt", [string]$ConfigPath = "artifacts/checkpoints/config.json", [string]$TokenizerPath = "artifacts/tokenizer/marslm.json", [int]$MaxNewTokens = 80, [double]$Temperature = 0.2 ) $ErrorActionPreference = "Stop" $scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path $repoRoot = Resolve-Path (Join-Path $scriptPath "..") Set-Location $repoRoot Write-Host "========================================" -ForegroundColor Cyan Write-Host "MarsLM - Generar texto" -ForegroundColor Cyan Write-Host "========================================" -ForegroundColor Cyan Write-Host "" Write-Host "Prompt: $Prompt" -ForegroundColor Yellow python inference/generate.py --model-path $ModelPath --config $ConfigPath --tokenizer-model $TokenizerPath --prompt $Prompt --max-new-tokens $MaxNewTokens --temperature $Temperature