Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install ollama on ubuntu with specific version #2491

Closed
MugdhaHardikar-GSLab opened this issue Feb 14, 2024 · 7 comments
Closed

How to install ollama on ubuntu with specific version #2491

MugdhaHardikar-GSLab opened this issue Feb 14, 2024 · 7 comments

Comments

@MugdhaHardikar-GSLab
Copy link

I want to install the ollama on my ubuntu server but every few days new version of ollama gets installed. I want to fix the version of the ollama getting installed on my machine. Current install.sh doesn't seem to have that functionality. IS there any way?

@remy415
Copy link
Contributor

remy415 commented Feb 14, 2024

What do you mean by fix the version of the ollama getting installed? Do you mean you want to keep a specific version installed?

@MugdhaHardikar-GSLab
Copy link
Author

MugdhaHardikar-GSLab commented Feb 15, 2024

Yes. Previously I was using ollama 0.1.20, now I am getting 0.1.24. It want to stick to one version even if latest versions come up lets say too 0.1.20. How to do it.

Latest install giving me:
root@5882e714c697:/usr/src# ollama --version
ollama version is 0.1.24

@jmorganca
Copy link
Member

By default Ollama won't auto upgrade on Linux

However, you can run this script to install a previous version:

curl -fsSL https://ollama.com/install.sh | sed 's#https://ollama.com/download#https://github.com/jmorganca/ollama/releases/download/v0.1.25#' | sh

Note this is experimental and may not work forever

@telemetrieTP23
Copy link

for me your commando for installing specific version does not work anymore, it allways installs the actual version (0.1.25) on my jetson orin AGX
even if i use:

curl -fsSL https://ollama.com/install.sh | sed 's#https://ollama.com/download#https://github.com/jmorganca/ollama/releases/download/v0.1.27#' | sh

on the jetson xavier agx i used it to install 0.1.17, after i recognized that starting with 0.1.18 it doesnt find the gpu drivers anymore, so i downgraded.

@remy415
Copy link
Contributor

remy415 commented Feb 20, 2024

@telemetrieTP23 I'm working on adding Jetson support. In the mean time, I have a preliminary build available that should work on your Orin AGX until it's fully integrated into the official release: https://github.com/remy415/ollama.

To save you time, ensure that you set the following environment variables:
export LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/local/cuda/compat:/usr/local/cuda/include"
export OLLAMA_SKIP_CPU_GENERATE="1"

Also set one of the following based on which Jetpack you are using:

L4T_VERSION.major >= 36: # JetPack 6
export CMAKE_CUDA_ARCHITECTURES="87"

L4T_VERSION.major >= 34: # JetPack 5
export CMAKE_CUDA_ARCHITECTURES="72;87"

L4T_VERSION.major == 32: # JetPack 4
export CMAKE_CUDA_ARCHITECTURES="53;62;72"

@remy415
Copy link
Contributor

remy415 commented Feb 21, 2024

@telemetrieTP23 yes, you should be able to build from my fork.

I made a typo on the exports for CUDA_ARCHITECTURE. I corrected my original post, sorry about that.

It’s export CMAKE_CUDA_ARCHITECTURES

@kungfu-eric
Copy link

This works now:

curl -fsSL https://ollama.com/install.sh | sed 's#https://ollama.com/download/ollama-linux-${ARCH}${VER_PARAM}#https://github.com/ollama/ollama/releases/download/v0.1.33-rc5/ollama-linux-amd64#' | sh

By default Ollama won't auto upgrade on Linux

However, you can run this script to install a previous version:

curl -fsSL https://ollama.com/install.sh | sed 's#https://ollama.com/download#https://github.com/jmorganca/ollama/releases/download/v0.1.25#' | sh

Note this is experimental and may not work forever

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants