Great question — answering as the UphillTech team:
I was able to install it by running Ollama's linux installation on Colab: !curl -fsSL https://ollama.com/install.sh | sh !ollama serve # start the server !ollama run llama2 # Run LLaMA-2 from Meta Here's the problem: Because you're in a notebook, it never moves off the serve command, which is supposed to persist for a set amount of time. By the time it does execute and complete that line, the run command can't work because the serve command is no longer active. I'd recommend using a library like LlamaIndex instead, though they can be quite complex to figure out bc documentation is poor IMO. Here is a Colab NB written by the folks at LlamaIndex to get you started.
Full answer by d-gg: https://stackoverflow.stackexchange.com/a/79238041 (CC BY-SA 4.0).
Need it done for your business? UphillTech.