File size: 955 Bytes
7afadff | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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
|