File size: 872 Bytes
8f20aff | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # PowerShell helper para cargar el modelo y abrir un prompt interactivo.
# Ejecuta este script desde el directorio MarsLM.
param(
[string]$ModelPath = "artifacts\checkpoints\marslm-final.pt",
[string]$ConfigPath = "artifacts\checkpoints\config.json",
[string]$TokenizerPath = "artifacts\tokenizer\marslm.json",
[int]$MaxNewTokens = 128,
[double]$Temperature = 0.8,
[int]$TopK = 50,
[double]$TopP = 0.0,
[double]$RepetitionPenalty = 1.0
)
$root = Split-Path -Parent $MyInvocation.MyCommand.Path
Set-Location "$root\.."
Write-Host "Iniciando MarsLM en modo interactivo..."
python inference/generate.py --model-path $ModelPath --config $ConfigPath --tokenizer-model $TokenizerPath --interactive --max-new-tokens $MaxNewTokens --temperature $Temperature --top-k $TopK --top-p $TopP --repetition-penalty $RepetitionPenalty
|