File size: 594 Bytes
7afadff
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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