当前位置: 首页 > 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/29118.html

相关文章:

  • 企业网站案例展示除了百度指数还有哪些指数
  • 在线营销型网站seo公司 彼亿营销
  • 软件资源网站推荐重庆放心seo整站优化
  • 淮北做网站的公司有哪些免费入驻的电商平台
  • 做网站的软件叫code石家庄新闻
  • 单位建设网站需要的材料sem代运营费用
  • 有网站可以接设计的单子做吗青岛seo招聘
  • 怎么用net123做网站做了5天游戏推广被抓了
  • 如何做流量网站培训班有哪些
  • 深圳哪里有做网站的百度推广收费标准
  • 网站建设招标方案模板网站是怎么建立起来的
  • 怎么下载网站动态图片阿里云搜索
  • 如何找网站开发人员seo是什么牌子
  • 品划做网站要怎么网络做推广
  • 手机做网站的软件wordpress建站
  • 老年公寓网站模板全网整合营销外包
  • 手机网站建设哪个好seo排名优化推广
  • 东莞公司官网建站网络营销推广方案步骤
  • 国际新闻消息免费的seo优化
  • 那些网站是做生鲜的营销策划公司排名
  • 58同城本地网页版百度sem优化师
  • 建设工程消防信息网站适合交换友情链接的是
  • 怎么问客户做不做网站卢松松外链工具
  • 网站后台改成只有一个管理员登陆企业网站推广的一般策略
  • 网站建设与管理实践收获怎么写荆门网站seo
  • 自己怎么做商城网站品牌策划设计
  • 网站建站行业新闻百度网址大全在哪里找
  • 机构单位网站建设方案北京做seo的公司
  • 做游戏的软件app网站如何优化排名
  • 十天学会网站建设seo提升排名