当前位置:   article > 正文

ollama 使用问题总结分享 (持续更新)_ollama 内存无法使用

ollama 内存无法使用

1. ollama 无法使用所有的cpu ?  Ollama is only using 4 of my 8 Cores

  • Ollama does not have an option parameter to define the number of CPUs (it does for GPUs), but you can try setting num_threads to a value much higher than 8 (default value), and see how it works for you:

    1. curl --location 'http://127.0.0.1:11434/api/chat' \
    2. --header 'Content-Type: application/json' \
    3. --data '{
    4. "model": "llama3",
    5. "messages": [
    6. { "role": "user", "content": "why is the sky blue?" }
    7. ],
    8. "options":{
    9. "num_thread": 16
    10. }
    11. }'
  • https://github.com/ollama/ollama/blob/main/docs/api.md#generate-request-with-options

2. ollama 使用第三方包

    待更新...

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/810598
推荐阅读
相关标签
  

闽ICP备14008679号