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

网站空间支持什么程序wordpress支持伪静态

网站空间支持什么程序,wordpress支持伪静态,白云区网站开发公司,做动漫头像的网站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.yayakq.cn/news/667326/

相关文章:

  • 广州开发网站技术制作小程序公司
  • 网站空间 控制面板门户网站建设经验交流
  • 建交互网站需要多少钱平面广告设计培训学校
  • 咋做抽奖网站河南网站建设报价
  • 网站制作费用入什么科目有没有做维修的网站
  • 上海定制化网站开发杭州网站运营十年乐云seo
  • 众筹网站搭建大一网页设计作业成品
  • 广州做网站优化个人网站搭建详细步骤
  • 手机网站一年维护费deals网站建设
  • 兴化网站网站建设免费网线
  • 如何做自己的游戏网站网络销售技巧
  • 个人域名备案完成了 可以改网站内容吗做出口网站
  • 班级网站建设html制作网站开发 加密保护
  • 备案通过网站还是打不开网站开发原型工具
  • php网站开发基础教程北京做兼职的网站
  • 黑龙江营商环境建设局网站wordpress主题去版权
  • 成都搭建企业网站网站搭建就来徐州百都网络非常好
  • 北京市住房城乡建设部网站优盖网logo在线设计
  • 南昌网站做陕西省建设安全协会网站
  • 虚拟主机做网站视频网站后台登陆
  • 自学网站搭建如何在小程序开店铺
  • 在哪个网站可以做酒店预定单wordpress 恢复备份
  • 高校网站建设招标公告龙海网站建设哪家好
  • 阿里云建站百度收录吗iis添加网站后怎么打开
  • 如何建设wap网站优秀网站建设模板
  • 免费做抽奖的h5网站什么叫网站
  • 网站404页面制作有哪些广告设计软件
  • 帝国做的网站打开速度wordpress插件聊天室小人
  • 企业邮箱入口登录大连seo关键词排名
  • 如何查看网站的死链接做电影网站用什么服务器