Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d4cbdb789 |
No files matched your search
+5
-9
@@ -131,17 +131,17 @@ $HfUrls = @(
|
||||
'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'
|
||||
)
|
||||
Info 'Descargando modelo de IA (llama3.2:3b, ~2 GB)...'
|
||||
foreach ($Url in $HfUrls) {
|
||||
curl.exe -# -L --retry 3 --max-time 1800 -o "$Gguf" $Url
|
||||
Info 'Descargando modelo de IA (llama3.2:3b, ~2 GB)...'
|
||||
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) { break }
|
||||
Warn "Mirror no accesible, probando el siguiente..."
|
||||
Remove-Item "$Gguf" -Force -ErrorAction SilentlyContinue
|
||||
if ($Url -ne $HfUrls[-1]) { Warn 'Mirror no accesible, probando el siguiente...' }
|
||||
}
|
||||
if ((Test-Path $Gguf) -and (Get-Item $Gguf).Length -gt 1900000000) {
|
||||
Info 'Importando modelo en Ollama...'
|
||||
docker cp "$Gguf" d0a1-hermes-ollama:/root/.ollama/import.gguf
|
||||
docker exec d0a1-hermes-ollama sh -c 'printf "FROM /root/.ollama/import.gguf\\nPARAMETER num_ctx 16384\\n" > /tmp/mf && ollama create llama3.2:3b -f /tmp/mf'
|
||||
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)
|
||||
docker exec d0a1-hermes-ollama rm -f /root/.ollama/import.gguf | Out-Null
|
||||
Remove-Item "$Gguf" -Force -ErrorAction SilentlyContinue
|
||||
@@ -151,11 +151,7 @@ if ((Test-Path $Gguf) -and (Get-Item $Gguf).Length -gt 1900000000) {
|
||||
# Ultimo recurso: pull directo (1 intento, ya sin esperar 3 rondas)
|
||||
Warn 'HuggingFace no accesible. Probando el registry de Ollama (ultimo recurso)...'
|
||||
docker exec @ProxyEnv d0a1-hermes-ollama ollama pull llama3.2:3b
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
$PullOk = $true
|
||||
# Contexto ampliado (el default 4096 da 400 en Open WebUI con prompts largos)
|
||||
docker exec d0a1-hermes-ollama sh -c 'printf "FROM llama3.2:3b\\nPARAMETER num_ctx 16384\\n" > /tmp/mf && ollama create llama3.2:3b -f /tmp/mf'
|
||||
}
|
||||
if ($LASTEXITCODE -eq 0) { $PullOk = $true }
|
||||
}
|
||||
if (-not $PullOk) {
|
||||
Err 'No se pudo descargar el modelo (ni HuggingFace ni registry).'
|
||||
|
||||
+5
-9
@@ -131,17 +131,17 @@ $HfUrls = @(
|
||||
'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'
|
||||
)
|
||||
Info 'Descargando modelo de IA (llama3.2:3b, ~2 GB)...'
|
||||
foreach ($Url in $HfUrls) {
|
||||
curl.exe -# -L --retry 3 --max-time 1800 -o "$Gguf" $Url
|
||||
Info 'Descargando modelo de IA (llama3.2:3b, ~2 GB)...'
|
||||
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) { break }
|
||||
Warn "Mirror no accesible, probando el siguiente..."
|
||||
Remove-Item "$Gguf" -Force -ErrorAction SilentlyContinue
|
||||
if ($Url -ne $HfUrls[-1]) { Warn 'Mirror no accesible, probando el siguiente...' }
|
||||
}
|
||||
if ((Test-Path $Gguf) -and (Get-Item $Gguf).Length -gt 1900000000) {
|
||||
Info 'Importando modelo en Ollama...'
|
||||
docker cp "$Gguf" d0a1-openclaw-ollama:/root/.ollama/import.gguf
|
||||
docker exec d0a1-openclaw-ollama sh -c 'printf "FROM /root/.ollama/import.gguf\\nPARAMETER num_ctx 16384\\n" > /tmp/mf && ollama create llama3.2:3b -f /tmp/mf'
|
||||
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)
|
||||
docker exec d0a1-openclaw-ollama rm -f /root/.ollama/import.gguf | Out-Null
|
||||
Remove-Item "$Gguf" -Force -ErrorAction SilentlyContinue
|
||||
@@ -151,11 +151,7 @@ if ((Test-Path $Gguf) -and (Get-Item $Gguf).Length -gt 1900000000) {
|
||||
# Ultimo recurso: pull directo (1 intento, ya sin esperar 3 rondas)
|
||||
Warn 'HuggingFace no accesible. Probando el registry de Ollama (ultimo recurso)...'
|
||||
docker exec @ProxyEnv d0a1-openclaw-ollama ollama pull llama3.2:3b
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
$PullOk = $true
|
||||
# Contexto ampliado (el default 4096 da 400 en Open WebUI con prompts largos)
|
||||
docker exec d0a1-openclaw-ollama sh -c 'printf "FROM llama3.2:3b\\nPARAMETER num_ctx 16384\\n" > /tmp/mf && ollama create llama3.2:3b -f /tmp/mf'
|
||||
}
|
||||
if ($LASTEXITCODE -eq 0) { $PullOk = $true }
|
||||
}
|
||||
if (-not $PullOk) {
|
||||
Err 'No se pudo descargar el modelo (ni HuggingFace ni registry).'
|
||||
|
||||
@@ -148,17 +148,17 @@ $HfUrls = @(
|
||||
'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'
|
||||
)
|
||||
Info 'Descargando modelo de IA (llama3.2:3b, ~2 GB)...'
|
||||
foreach ($Url in $HfUrls) {
|
||||
curl.exe -# -L --retry 3 --max-time 1800 -o "$Gguf" $Url
|
||||
Info 'Descargando modelo de IA (llama3.2:3b, ~2 GB)...'
|
||||
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) { break }
|
||||
Warn "Mirror no accesible, probando el siguiente..."
|
||||
Remove-Item "$Gguf" -Force -ErrorAction SilentlyContinue
|
||||
if ($Url -ne $HfUrls[-1]) { Warn 'Mirror no accesible, probando el siguiente...' }
|
||||
}
|
||||
if ((Test-Path $Gguf) -and (Get-Item $Gguf).Length -gt 1900000000) {
|
||||
Info 'Importando modelo en Ollama...'
|
||||
docker cp "$Gguf" d0a1-ollama:/root/.ollama/import.gguf
|
||||
docker exec d0a1-ollama sh -c 'printf "FROM /root/.ollama/import.gguf\\nPARAMETER num_ctx 16384\\n" > /tmp/mf && ollama create llama3.2:3b -f /tmp/mf'
|
||||
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)
|
||||
docker exec d0a1-ollama rm -f /root/.ollama/import.gguf | Out-Null
|
||||
Remove-Item "$Gguf" -Force -ErrorAction SilentlyContinue
|
||||
@@ -168,11 +168,7 @@ if ((Test-Path $Gguf) -and (Get-Item $Gguf).Length -gt 1900000000) {
|
||||
# Ultimo recurso: pull directo (1 intento, ya sin esperar 3 rondas)
|
||||
Warn 'HuggingFace no accesible. Probando el registry de Ollama (ultimo recurso)...'
|
||||
docker exec @ProxyEnv d0a1-ollama ollama pull llama3.2:3b
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
$PullOk = $true
|
||||
# Contexto ampliado (el default 4096 da 400 en Open WebUI con prompts largos)
|
||||
docker exec d0a1-ollama sh -c 'printf "FROM llama3.2:3b\\nPARAMETER num_ctx 16384\\n" > /tmp/mf && ollama create llama3.2:3b -f /tmp/mf'
|
||||
}
|
||||
if ($LASTEXITCODE -eq 0) { $PullOk = $true }
|
||||
}
|
||||
if (-not $PullOk) {
|
||||
Err 'No se pudo descargar el modelo (ni HuggingFace ni registry).'
|
||||
|
||||
@@ -184,17 +184,17 @@ $HfUrls = @(
|
||||
'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'
|
||||
)
|
||||
Info 'Descargando modelo de IA (llama3.2:3b, ~2 GB)...'
|
||||
foreach ($Url in $HfUrls) {
|
||||
curl.exe -# -L --retry 3 --max-time 1800 -o "$Gguf" $Url
|
||||
Info 'Descargando modelo de IA (llama3.2:3b, ~2 GB)...'
|
||||
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) { break }
|
||||
Warn "Mirror no accesible, probando el siguiente..."
|
||||
Remove-Item "$Gguf" -Force -ErrorAction SilentlyContinue
|
||||
if ($Url -ne $HfUrls[-1]) { Warn 'Mirror no accesible, probando el siguiente...' }
|
||||
}
|
||||
if ((Test-Path $Gguf) -and (Get-Item $Gguf).Length -gt 1900000000) {
|
||||
Info 'Importando modelo en Ollama...'
|
||||
docker cp "$Gguf" d0a1-wp-ollama:/root/.ollama/import.gguf
|
||||
docker exec d0a1-wp-ollama sh -c 'printf "FROM /root/.ollama/import.gguf\\nPARAMETER num_ctx 16384\\n" > /tmp/mf && ollama create llama3.2:3b -f /tmp/mf'
|
||||
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)
|
||||
docker exec d0a1-wp-ollama rm -f /root/.ollama/import.gguf | Out-Null
|
||||
Remove-Item "$Gguf" -Force -ErrorAction SilentlyContinue
|
||||
@@ -204,11 +204,7 @@ if ((Test-Path $Gguf) -and (Get-Item $Gguf).Length -gt 1900000000) {
|
||||
# Ultimo recurso: pull directo (1 intento, ya sin esperar 3 rondas)
|
||||
Warn 'HuggingFace no accesible. Probando el registry de Ollama (ultimo recurso)...'
|
||||
docker exec @ProxyEnv d0a1-wp-ollama ollama pull llama3.2:3b
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
$PullOk = $true
|
||||
# Contexto ampliado (el default 4096 da 400 en Open WebUI con prompts largos)
|
||||
docker exec d0a1-wp-ollama sh -c 'printf "FROM llama3.2:3b\\nPARAMETER num_ctx 16384\\n" > /tmp/mf && ollama create llama3.2:3b -f /tmp/mf'
|
||||
}
|
||||
if ($LASTEXITCODE -eq 0) { $PullOk = $true }
|
||||
}
|
||||
if (-not $PullOk) {
|
||||
Err 'No se pudo descargar el modelo (ni HuggingFace ni registry).'
|
||||
|
||||
Reference in new issue
Block a user