Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2fcb438d53 |
No files matched your search
+2
-11
@@ -137,17 +137,8 @@ if (-not $PullOk) {
|
||||
# --- Fallback: mismo modelo via HuggingFace (otro CDN, no el registry de Ollama) ---
|
||||
Warn 'Registry de Ollama no accesible. Probando via HuggingFace (mismo modelo)...'
|
||||
$Gguf = Join-Path $ScriptDir 'llama3.2-3b-q4.gguf'
|
||||
$Urls = @(
|
||||
'https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf',
|
||||
'https://huggingface.co/unsloth/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf'
|
||||
)
|
||||
$DlOk = $false
|
||||
foreach ($Url in $Urls) {
|
||||
curl.exe -sL --retry 3 --max-time 1800 -o "$Gguf" $Url
|
||||
if ($LASTEXITCODE -eq 0 -and (Test-Path $Gguf) -and (Get-Item $Gguf).Length -gt 1900000000) { $DlOk = $true; break }
|
||||
Warn "Mirror no accesible, probando el siguiente..."
|
||||
}
|
||||
if ($DlOk) {
|
||||
curl.exe -L -# --retry 3 --max-time 1800 -o "$Gguf" 'https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf'
|
||||
if ($LASTEXITCODE -eq 0 -and (Get-Item $Gguf).Length -gt 1900000000) {
|
||||
docker cp "$Gguf" d0a1-hermes-ollama:/root/.ollama/import.gguf
|
||||
docker exec d0a1-hermes-ollama sh -c 'echo FROM /root/.ollama/import.gguf > /tmp/mf && ollama create llama3.2:3b -f /tmp/mf'
|
||||
$CreateOk = ($LASTEXITCODE -eq 0)
|
||||
|
||||
+2
-11
@@ -137,17 +137,8 @@ if (-not $PullOk) {
|
||||
# --- Fallback: mismo modelo via HuggingFace (otro CDN, no el registry de Ollama) ---
|
||||
Warn 'Registry de Ollama no accesible. Probando via HuggingFace (mismo modelo)...'
|
||||
$Gguf = Join-Path $ScriptDir 'llama3.2-3b-q4.gguf'
|
||||
$Urls = @(
|
||||
'https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf',
|
||||
'https://huggingface.co/unsloth/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf'
|
||||
)
|
||||
$DlOk = $false
|
||||
foreach ($Url in $Urls) {
|
||||
curl.exe -sL --retry 3 --max-time 1800 -o "$Gguf" $Url
|
||||
if ($LASTEXITCODE -eq 0 -and (Test-Path $Gguf) -and (Get-Item $Gguf).Length -gt 1900000000) { $DlOk = $true; break }
|
||||
Warn "Mirror no accesible, probando el siguiente..."
|
||||
}
|
||||
if ($DlOk) {
|
||||
curl.exe -L -# --retry 3 --max-time 1800 -o "$Gguf" 'https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf'
|
||||
if ($LASTEXITCODE -eq 0 -and (Get-Item $Gguf).Length -gt 1900000000) {
|
||||
docker cp "$Gguf" d0a1-openclaw-ollama:/root/.ollama/import.gguf
|
||||
docker exec d0a1-openclaw-ollama sh -c 'echo FROM /root/.ollama/import.gguf > /tmp/mf && ollama create llama3.2:3b -f /tmp/mf'
|
||||
$CreateOk = ($LASTEXITCODE -eq 0)
|
||||
|
||||
+2
-11
@@ -154,17 +154,8 @@ if (-not $PullOk) {
|
||||
# --- Fallback: mismo modelo via HuggingFace (otro CDN, no el registry de Ollama) ---
|
||||
Warn 'Registry de Ollama no accesible. Probando via HuggingFace (mismo modelo)...'
|
||||
$Gguf = Join-Path $ScriptDir 'llama3.2-3b-q4.gguf'
|
||||
$Urls = @(
|
||||
'https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf',
|
||||
'https://huggingface.co/unsloth/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf'
|
||||
)
|
||||
$DlOk = $false
|
||||
foreach ($Url in $Urls) {
|
||||
curl.exe -sL --retry 3 --max-time 1800 -o "$Gguf" $Url
|
||||
if ($LASTEXITCODE -eq 0 -and (Test-Path $Gguf) -and (Get-Item $Gguf).Length -gt 1900000000) { $DlOk = $true; break }
|
||||
Warn "Mirror no accesible, probando el siguiente..."
|
||||
}
|
||||
if ($DlOk) {
|
||||
curl.exe -L -# --retry 3 --max-time 1800 -o "$Gguf" 'https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf'
|
||||
if ($LASTEXITCODE -eq 0 -and (Get-Item $Gguf).Length -gt 1900000000) {
|
||||
docker cp "$Gguf" d0a1-ollama:/root/.ollama/import.gguf
|
||||
docker exec d0a1-ollama sh -c 'echo FROM /root/.ollama/import.gguf > /tmp/mf && ollama create llama3.2:3b -f /tmp/mf'
|
||||
$CreateOk = ($LASTEXITCODE -eq 0)
|
||||
|
||||
+2
-11
@@ -190,17 +190,8 @@ if (-not $PullOk) {
|
||||
# --- Fallback: mismo modelo via HuggingFace (otro CDN, no el registry de Ollama) ---
|
||||
Warn 'Registry de Ollama no accesible. Probando via HuggingFace (mismo modelo)...'
|
||||
$Gguf = Join-Path $ScriptDir 'llama3.2-3b-q4.gguf'
|
||||
$Urls = @(
|
||||
'https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf',
|
||||
'https://huggingface.co/unsloth/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf'
|
||||
)
|
||||
$DlOk = $false
|
||||
foreach ($Url in $Urls) {
|
||||
curl.exe -sL --retry 3 --max-time 1800 -o "$Gguf" $Url
|
||||
if ($LASTEXITCODE -eq 0 -and (Test-Path $Gguf) -and (Get-Item $Gguf).Length -gt 1900000000) { $DlOk = $true; break }
|
||||
Warn "Mirror no accesible, probando el siguiente..."
|
||||
}
|
||||
if ($DlOk) {
|
||||
curl.exe -L -# --retry 3 --max-time 1800 -o "$Gguf" 'https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf'
|
||||
if ($LASTEXITCODE -eq 0 -and (Get-Item $Gguf).Length -gt 1900000000) {
|
||||
docker cp "$Gguf" d0a1-wp-ollama:/root/.ollama/import.gguf
|
||||
docker exec d0a1-wp-ollama sh -c 'echo FROM /root/.ollama/import.gguf > /tmp/mf && ollama create llama3.2:3b -f /tmp/mf'
|
||||
$CreateOk = ($LASTEXITCODE -eq 0)
|
||||
|
||||
Reference in new issue
Block a user