Ian26/MarsLM-bucket / scripts /infer_model.ps1
Ian26's picture
download
raw
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

Xet Storage Details

Size:
594 Bytes
·
Xet hash:
563318e36e318aed93dce3154a6eb0f691d856ffadc862ce7e89bdc7b7e7abf4

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.