lumynax-infused-smollm2-360m-gguf / ollama /create_ollama_model.ps1
AbteeXAILabs's picture
Add files using upload-large-folder tool
413e454 verified
raw
history blame
599 Bytes
param(
[string]$ModelName = "lumynax-infused-smollm2-360m-gguf"
)
$ErrorActionPreference = "Stop"
Set-StrictMode -Version Latest
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$modelfilePath = Join-Path $scriptDir "Modelfile"
if (-not (Get-Command ollama -ErrorAction SilentlyContinue)) {
throw "The `ollama` CLI is not installed. Install Ollama first."
}
& ollama create $ModelName -f $modelfilePath
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}
Write-Output "Created Ollama model: $ModelName"
Write-Output "Run it with: ollama run $ModelName"