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