当前位置: 首页 > news >正文

网站增加点击率 怎样做最吸引人的引流话术

网站增加点击率 怎样做,最吸引人的引流话术,中英文双版网站怎么做,做一家拍卖网站需要什么资质LocalAI 部署 介绍 LocalAI 是免费的开源 OpenAI 替代方案。 LocalAI 充当 REST API 的直接替代品,与本地推理的 OpenAI API 规范兼容。 它无需 GPU,还有多种用途集成,允许您使用消费级硬件在本地或本地运行 LLM、生成图像、音频等等&#…

LocalAI 部署

介绍

LocalAI 是免费的开源 OpenAI 替代方案。 LocalAI 充当 REST API 的直接替代品,与本地推理的 OpenAI API 规范兼容。 它无需 GPU,还有多种用途集成,允许您使用消费级硬件在本地或本地运行 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://www.tj-hxxt.cn/news/116446.html

相关文章:

  • 广州网站制作怎么做磁力
  • 做艺术教育类网站如何申请seo是指什么职位
  • 网络规划设计师2024年考试百度优化师
  • 南京江北新区教师招聘天津抖音seo
  • php免费网站建设百度提问
  • 做网站带来的好处长沙网站制作公司哪家好
  • 网站建设工作人员有哪些职责企业网站seo平台
  • 有没有做古装衣服的网站舆情报告
  • 做门户网站经验seo网上课程
  • 手机有软件做ppt下载网站有哪些游戏推广赚佣金
  • 做网站的程序员留备份百度财报q3
  • 关于做网站的文献综述公司怎么推广网络营销
  • 银川网站建设多少钱seo在哪可以学
  • wordpress custom permalinksseo管家
  • 手机网站建设ppt如何推广一个项目
  • 什么软件做网站最好阜新网络推广
  • 网站微信链接怎么做的长沙关键词优化新行情报价
  • 企业网站建设基本要素谷歌搜索入口中文
  • 营销型网站建设电子书百度指数使用指南
  • 网站外链隐形框架店铺推广软文500字
  • 专业开发网站多少钱重庆网站排名提升
  • 网站 php 源码营销推广费用预算表
  • 网站怎么做才美观怎么学做电商然后自己创业
  • 手机排行榜最新太原seo顾问
  • 给网络公司起名字大全重庆seo网络优化师
  • 石家庄晋州网站建设互联网营销的方式有哪些
  • 西宁网站建设哪家公司好企业培训体系
  • 网站推广邮箱怎么做中国教师教育培训网
  • 网站开发的背景平台关键词排名优化
  • 搬家网站怎么做今日军事新闻头条打仗