MarsLM / scripts /infer_model.ps1
Ian26's picture
Upload 9 files
7afadff verified
Raw History Blame Contribute Delete
594 Bytes
# PowerShell script para generar texto con el modelo MarsLM.
# Ejecuta este script desde el directorio MarsLM.
$root = Split-Path -Parent $MyInvocation.MyCommand.Path
Set-Location "$root\.."
param(
[string]$Prompt = "Hola, ¿puedes escribir un texto interesante?",
[int]$MaxNewTokens = 80
)
Write-Host "Generando texto con el checkpoint final..."
python inference/generate.py --model-path artifacts\checkpoints\marslm-final.pt --config artifacts\checkpoints\config.json --tokenizer-model artifacts\tokenizer\marslm.json --prompt "$Prompt" --max-new-tokens $MaxNewTokens