国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

當(dāng)前位置: 首頁 > news >正文

怎樣做科普視頻網(wǎng)站google chrome download

怎樣做科普視頻網(wǎng)站,google chrome download,互聯(lián)網(wǎng)工作室暴利項目,廣東網(wǎng)站建設(shè)微信網(wǎng)站定制LocalAI 部署 介紹 LocalAI 是免費(fèi)的開源 OpenAI 替代方案。 LocalAI 充當(dāng) REST API 的直接替代品,與本地推理的 OpenAI API 規(guī)范兼容。 它無需 GPU,還有多種用途集成,允許您使用消費(fèi)級硬件在本地或本地運(yùn)行 LLM、生成圖像、音頻等等&#…

LocalAI 部署

介紹

LocalAI 是免費(fèi)的開源 OpenAI 替代方案。 LocalAI 充當(dāng) REST API 的直接替代品,與本地推理的 OpenAI API 規(guī)范兼容。 它無需 GPU,還有多種用途集成,允許您使用消費(fèi)級硬件在本地或本地運(yùn)行 LLM、生成圖像、音頻等等,支持多個模型系列。

啟動方式

1. Linux AMD64 docker 啟動

helm repo add go-skynet https://go-skynet.github.io/helm-charts/
helm search repo go-skynet
helm pull go-skynet/local-ai
tar -xvf local-ai-3.1.0.tgz && cd local-ai
vim value.yaml
# 取消下面截圖的注釋

在這里插入圖片描述

helm install --create-namespace local-ai . -n local-ai -f values.yaml

2. Mac M2 手動啟動

# install build dependencies
brew install abseil cmake go grpc protobuf wget# clone the repo
git clone https://github.com/go-skynet/LocalAI.gitcd LocalAI# build the binary
make build
# make BUILD_TYPE=metal build
## Set `gpu_layers: 1` to your YAML model config file and `f16: true`
## Note: only models quantized with q4_0 are supported!# Download gpt4all-j to models/
wget https://gpt4all.io/models/ggml-gpt4all-j.bin -O models/ggml-gpt4all-j# Use a template from the examples
cp -rf prompt-templates/ggml-gpt4all-j.tmpl models/# Run LocalAI
./local-ai --models-path=./models/ --debug=true
使用
# Now API is accessible at localhost:8080
curl http://localhost:8080/v1/models
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{"model": "ggml-gpt4all-j","messages": [{"role": "user", "content": "How are you?"}],"temperature": 0.9}'

在這里插入圖片描述

官方編譯啟動文檔

FQA

Q1: 編譯報錯日志 sources/go-llama/llama.go:372:13: undefined: min
binding.cpp:333:67: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'int' [-Wformat]
binding.cpp:809:5: warning: deleting pointer to incomplete type 'llama_model' may cause undefined behavior [-Wdelete-incomplete]
sources/go-llama/llama.cpp/llama.h:60:12: note: forward declaration of 'llama_model'
# github.com/go-skynet/go-llama.cpp
sources/go-llama/llama.go:372:13: undefined: min
note: module requires Go 1.21
make: *** [backend-assets/grpc/llama] Error 1

需要使用 go 1.21 版本

brew install mercurial
# 安裝 gvm
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
# gvm直接生效
source ~/.gvm/scripts/gvm
# 查看版本
gvm install go1.21.7
gvm use go1.21.7
Q2: The link interface of target “protobuf::libprotobuf” contains: absl::absl_check, but the target was not found
CMake Error at /opt/homebrew/lib/cmake/protobuf/protobuf-targets.cmake:71 (set_target_properties):The link interface of target "protobuf::libprotobuf" contains:absl::absl_checkbut the target was not found.  Possible reasons include:* There is a typo in the target name.* A find_package call is missing for an IMPORTED target.* An ALIAS target is missing.Call Stack (most recent call first):/opt/homebrew/lib/cmake/protobuf/protobuf-config.cmake:16 (include)examples/grpc-server/CMakeLists.txt:34 (find_package)

需要更新一下 protobuf 和 abseil 版本

brew uninstall protobuf abseil
sudo port install re2 grpc abseil
http://aloenet.com.cn/news/46763.html

相關(guān)文章:

  • wordpress后臺不提醒更新站長之家的seo綜合查詢工具
  • 成都建設(shè)網(wǎng)站分享搜索引擎 磁力吧
  • html基礎(chǔ)網(wǎng)頁代碼快速排名優(yōu)化seo
  • 福清市百度seo天津seo培訓(xùn)
  • 建設(shè)網(wǎng)站的企業(yè)友情鏈接交換
  • 做的好的手機(jī)網(wǎng)站怎樣制作網(wǎng)頁設(shè)計
  • 重慶巫溪網(wǎng)站建設(shè)網(wǎng)站怎么開發(fā)
  • 淘寶美工與網(wǎng)站開發(fā)搜索引擎優(yōu)化seo論文
  • WordPress網(wǎng)頁加載時間網(wǎng)站優(yōu)化公司
  • 怎么做刷網(wǎng)站流量生意永久免費(fèi)自動建站
  • 阿里巴巴網(wǎng)站怎么做全屏分類怎么找平臺推廣自己的產(chǎn)品
  • 網(wǎng)站建設(shè)項目設(shè)計報告海外營銷推廣
  • 開發(fā)建設(shè)網(wǎng)站網(wǎng)絡(luò)優(yōu)化大師
  • 如何推廣一個新的app優(yōu)化網(wǎng)站排名費(fèi)用
  • 網(wǎng)站免費(fèi)建站 圖標(biāo)seo全網(wǎng)營銷的方式
  • 網(wǎng)站制作營銷型seo常用工具
  • 東莞網(wǎng)站制作十強(qiáng)seo 培訓(xùn)教程
  • 商務(wù)網(wǎng)站開發(fā)騰訊企點客服
  • 建設(shè)一個公司網(wǎng)站寧波網(wǎng)站推廣優(yōu)化公司怎么樣
  • 中國電力建設(shè)股份有限公司官方網(wǎng)站廣州百度關(guān)鍵詞搜索
  • 酒店微信網(wǎng)站建設(shè)云優(yōu)化seo軟件
  • 深圳網(wǎng)站制作hi0755營銷qq下載
  • 濟(jì)南 營銷型網(wǎng)站建設(shè)企業(yè)培訓(xùn)課程
  • 有經(jīng)驗的網(wǎng)站建設(shè)公司seo優(yōu)化服務(wù)是什么意思
  • h5網(wǎng)站設(shè)計欣賞免費(fèi)網(wǎng)站安全軟件大全
  • 學(xué)校網(wǎng)站建設(shè)招標(biāo)方案百度知道首頁官網(wǎng)
  • 租用服務(wù)器建設(shè)網(wǎng)站費(fèi)用win10優(yōu)化大師有用嗎
  • 德州做網(wǎng)站的競價托管服務(wù)多少錢
  • 無錫做公司網(wǎng)站的網(wǎng)絡(luò)搜索詞排名
  • 網(wǎng)站開發(fā)實用技術(shù)介紹南寧一站網(wǎng)網(wǎng)絡(luò)技術(shù)有限公司