File size: 764 Bytes
8f20aff | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <#
PowerShell helper para generar los artefactos de MarsLM que luego puede intentar cargar llama.cpp.
#>
param(
[string]$ModelPath = "artifacts\checkpoints\marslm-final.pt",
[string]$ConfigPath = "artifacts\checkpoints\config.json",
[string]$OutputPrefix = "artifacts\quantized\marslm_q4_1"
)
$root = Split-Path -Parent $MyInvocation.MyCommand.Path
Set-Location "$root\.."
Write-Host "Exportando artesfactos para llama.cpp..."
python quantization/export_gguf.py --model-path $ModelPath --config $ConfigPath --output $OutputPrefix --quant-type q4_1 --output-format gguf
Write-Host "Listo. Archivos generados:"
Write-Host " $OutputPrefix.gguf"
Write-Host " $OutputPrefix.safetensors (o .pt si safetensors no está disponible)"
|