Download scripts/infer_model.ps1 from Ian26/MarsLM: direct link, hf CLI and curl.
- Browser
- Download file 594 Bytes
-
https://huggingface.co/Ian26/MarsLM/resolve/main/scripts/infer_model.ps1
- Command line
-
hf download hf://Ian26/MarsLM/scripts/infer_model.ps1
-
curl -L -o infer_model.ps1 https://huggingface.co/Ian26/MarsLM/resolve/main/scripts/infer_model.ps1
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 | |