ARTICLE DETAIL

资讯详情

深耕郑州网站建设与运营推广的一线实战洞察。

ollama安装embedding 模型

ollama安装embedding 模型 ollama pull embeddinggemmaollama list测试curl http://localhost:11434/api/embed -d ‘{“model”: “embeddinggemma”,“input”: “Why is the sky blue?”}’官网https://ollama.com/文档地址https://docs.ollama.com/linuxcurl -fsSL| sudo tar x -C /usrStart Ollama:ollama serveIn another terminal, verify that Ollama is running:ollama -vAMD GPU installIf you have an AMD GPU, also download and extract the additional ROCm package:curl -fsSL\ | sudo tar x -C /usrARM64 installDownload and extract the ARM64-specific package:curl -fsSL\ | sudo tar x -C /usrAdding Ollama as a startup service (recommended)Create a user and group for Ollama:sudo useradd -r -s /bin/false -U -m -d /usr/share/ollama ollamasudo usermod -a -G ollama $(whoami)
返回列表