Giter Site home page Giter Site logo

llmservice_ip's Introduction

nchc service

DOCKER 安裝

更新套件

sudo apt update
sudo apt install php-cli jq

GIT 下載套件

git clone https://github.com/c00cjz00/llmservice_ip.git
cd llmservice_ip/llmservice_one_ip

Step 2: 編輯env.sample

vi  env.sample 

Step3: 確認您的IP以及是否有GPU, 並執行以下指令

  • ./01-init.sh [cpu/gpu]
./01-init.sh gpu

Step 4: 啟動服務

docker compose up -d 

Step 5: 關閉服務

docker compose down 

Step 6: 服務網址

  • openwebui: http://$IP:8080
  • ollama api: http://$IP:11434
  • anythingllm: http://$IP:3001
  • portal: http://$IP:80

Step 7: 內部服務器

注意事項: Ollama Template, 記憶體太小請修正 num_ctx=2048

FROM ./taide-8b-a.3-q4_k_m.gguf
TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|>

{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>

{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>

{{ .Response }}<|eot_id|>"""
PARAMETER stop "<|start_header_id|>"
PARAMETER stop "<|end_header_id|>"
PARAMETER stop "<|eot_id|>"
PARAMETER num_keep 24
PARAMETER num_ctx 4096

注意事項: GPU

sudo nvidia-smi -pm 1
sudo nvidia-smi -e 0

llmservice_ip's People

Contributors

c00cjz00 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.