ollama本机大语言模型
下载ollama
1 | 下载地址: |
api调用
1 | 文档地址: |
语言模型
1 | ollama run llama2 |
识图模型
1 | ollama run llava "describe this image: ./art.jpg" |
代码模型
1 | 有三种型号 |
代码纠错
1 | ollama run codellama ' |
写单元测试
1 | ollama run codellama "write a unit test for this function: $(cat main.go)" |
根据已有的代码填充代码
1 | ollama run codellama '<PRE> func getString(x, y string): <SUF>return result <MID>' |
数学模型
1 | 有三种型号 |
使用
1
ollama run wizard-math 'A right square pyramid has a base with edges each measuring 3 cm and a height twice the perimeter of its base. What is the volume of the pyramid?'
1 | ollama run wizard-math 'A right square pyramid has a base with edges each measuring 3 cm and a height twice the perimeter of its base. What is the volume of the pyramid?' |