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