Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
4759d879
Unverified
Commit
4759d879
authored
Nov 15, 2024
by
Daniel Hiltgen
Committed by
GitHub
Nov 15, 2024
Browse files
Install support for jetpacks (#7632)
Follow up to #7217 - merge after release
parent
d875e99e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
scripts/install.sh
scripts/install.sh
+23
-0
No files found.
scripts/install.sh
View file @
4759d879
...
...
@@ -93,6 +93,22 @@ else
fi
fi
# Check for NVIDIA JetPack systems with additional downloads
if
[
-f
/etc/nv_tegra_release
]
;
then
if
grep
R36 /etc/nv_tegra_release
>
/dev/null
;
then
status
"Downloading JetPack 6 components"
curl
--fail
--show-error
--location
--progress-bar
\
"https://ollama.com/download/ollama-linux-
${
ARCH
}
-jetpack6.tgz
${
VER_PARAM
}
"
|
\
$SUDO
tar
-xzf
-
-C
"
$OLLAMA_INSTALL_DIR
"
elif
grep
R35 /etc/nv_tegra_release
>
/dev/null
;
then
status
"Downloading JetPack 5 components"
curl
--fail
--show-error
--location
--progress-bar
\
"https://ollama.com/download/ollama-linux-
${
ARCH
}
-jetpack5.tgz
${
VER_PARAM
}
"
|
\
$SUDO
tar
-xzf
-
-C
"
$OLLAMA_INSTALL_DIR
"
else
warning
"Unsupported JetPack version detected. GPU may not be supported"
fi
fi
install_success
()
{
status
'The Ollama API is now available at 127.0.0.1:11434.'
...
...
@@ -163,6 +179,13 @@ if [ "$IS_WSL2" = true ]; then
exit
0
fi
# Don't attempt to install drivers on Jetson systems
if
[
-f
/etc/nv_tegra_release
]
;
then
status
"NVIDIA JetPack ready."
install_success
exit
0
fi
# Install GPU dependencies on Linux
if
!
available lspci
&&
!
available lshw
;
then
warning
"Unable to detect NVIDIA/AMD GPU. Install lspci or lshw to automatically detect and install GPU dependencies."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment