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

做肮脏交义的网站seo免费诊断

做肮脏交义的网站,seo免费诊断,如何做网站的推广,wordpress 4.8 中文在autodl上部署大模型 windows运行太麻烦,环境是最大问题。 选择云上服务器【西北B区 / 514机】 cpp (c c plus plus) 纯 C/C 实现,无需外部依赖。针对使用 ARM NEON、Accelerate 和 Metal 框架的 Apple 芯片进行了优化。支持适用于 x86 架构的 AVX、…
在autodl上部署大模型

windows运行太麻烦,环境是最大问题。

选择云上服务器【西北B区 / 514机】

cpp (c++ c plus plus)
  • 纯 C/C++ 实现,无需外部依赖。
  • 针对使用 ARM NEON、Accelerate 和 Metal 框架的 Apple 芯片进行了优化。
  • 支持适用于 x86 架构的 AVX、AVX2 和 AVX512。
  • 提供 F16/F32 混合精度,并支持 2 位至 8 位整数量化。

参考:GitHub - li-plus/chatglm.cpp: C++ implementation of ChatGLM-6B & ChatGLM2-6B & ChatGLM3 & GLM4 & more LLMs

部署 chatglm3
git clone --recursive https://github.com/li-plus/chatglm.cpp.git && cd chatglm.cpp

clone 上的app /mnt/workspace/chatglm.cpp

/root/chatglm.cpp

cd /mnt/workspace/chatglm.cpp

git submodule update --init --recursive

Quantize Model 量化模型
python3 -m pip install torch tabulate tqdm transformers accelerate sentencepiece

执行上面量化模型语句时:python3 -m pip install torch tabulate tqdm transformers accelerate sentencepiece

报错:/usr/bin/python3: No module named pip

slove: 执行下面命令:

sudo apt update

sudo apt install python3-pip

再次执行上面量化模型命令后,ok.

通过 convert 专为 GGML 格式
  • 用于 convert.py 将 ChatGLM-6B 转换为量化的 GGML 格式。要将 fp16 原始模型转换为 q4_0(量化 int4)GGML 模型,请运行:
python3 chatglm_cpp/convert.py -i THUDM/chatglm3-6b -t q4_0 -o chatglm3-ggml.bin

在autodll机器:西北B区 / 514机

执行命令:python3 chatglm_cpp/convert.py -i /root/autodl-tmp/chatglm3-6b -t q4_0 -o chatglm3-ggml.bin

注:/root/autodl-tmp/chatglm3-6b 是模型路径

GGML model saved to chatglm3-ggml.bin 代表执行成功。

上面的执行命令解释:

python3 chatglm_cpp/convert.py -i THUDM/chatglm3-6b -t q4_0 -o chatglm3-ggml.bin

这个命令是在使用 Python 脚本将一个模型转换成另一种格式。下面是对命令的详细解释,特别是对 `THUDM/chatglm3-6b` 部分的说明:

- `python3`:这是运行 Python 解释器的命令。它指定脚本应该使用 Python 3 执行。

- `chatglm_cpp/convert.py`:这指定了正在执行的 Python 脚本的路径。脚本位于 `chatglm_cpp` 目录中,文件名为 `convert.py`。这个脚本很可能负责将模型从一种格式转换成另一种格式。

- `-i THUDM/chatglm3-6b`:`-i` 选项指定了脚本将要转换的输入模型。`THUDM/chatglm3-6b` 是要被转换的模型的标识符。在 Hugging Face 模型的上下文中,`THUDM` 很可能是上传模型的组织或用户,而 `chatglm3-6b` 是特定模型的名称。这意味着脚本将在 Hugging Face 模型中心或指定的目录下查找名为 `chatglm3-6b` 的模型。

- `-t q4_0`:`-t` 选项指定了转换的类型或版本。在这个例子中,`q4_0` 很可能代表脚本在转换模型时应该使用的特定转换目标或格式版本。

- `-o chatglm3-ggml.bin`:`-o` 选项指定了转换后模型的输出文件。脚本将把转换后的模型写入一个名为 `chatglm3-ggml.bin` 的文件。这个文件将在转换后包含新格式的模型。

总之,命令中的 `THUDM/chatglm3-6b` 部分指定了 `convert.py` 脚本将要转换的输入模型。它表示名为 `chatglm3-6b` 的模型,与 `THUDM` 组织或用户相关联,应该根据 `-t q4_0` 选项指定的新格式进行转换,并将结果保存到 `chatglm3-ggml.bin` 文件中。

在命令行启动服务
第一步:使用 CMake 配置项目并在当前目录下创建一个名为 "build" 的构建目录
cmake -B build

第二步:使用先前生成的构建系统文件在构建目录 "build" 中构建项目,采用并行构建和 Release 配置

cmake --build build -j --config Release

第三步:运行
./build/bin/main -m chatglm3-ggml.bin -p 你好

启动 web 服务
python3 ./examples/web_demo.py -m chatglm3-ggml.bin

上面的ssh命令复制到记事本中.

ssh -p 53421 root@connect.westc1.gpuhub.com

ssh -CNg -L 7860:127.0.0.1:7860 root@connect.westc1.gpuhub.com -p 53421

密码:t1sftwFjHSxKr123

在powershell中执行命令:ssh -CNg -L 7860:127.0.0.1:7860 root@connect.westc.gpuhub.com -p 53421

注:没有任何提示,表示成功。

访问web页面,chatGLM部署成功。


文章转载自:
http://gluttony.sfwd.cn
http://rote.sfwd.cn
http://acidly.sfwd.cn
http://glacier.sfwd.cn
http://gauchist.sfwd.cn
http://dropping.sfwd.cn
http://divulsion.sfwd.cn
http://gowster.sfwd.cn
http://rushingly.sfwd.cn
http://synonymy.sfwd.cn
http://estivate.sfwd.cn
http://gaedhelic.sfwd.cn
http://mitotic.sfwd.cn
http://dictator.sfwd.cn
http://ergatoid.sfwd.cn
http://bounty.sfwd.cn
http://sumptuousness.sfwd.cn
http://frivol.sfwd.cn
http://pte.sfwd.cn
http://bushire.sfwd.cn
http://unequal.sfwd.cn
http://bathymeter.sfwd.cn
http://clou.sfwd.cn
http://rook.sfwd.cn
http://meltwater.sfwd.cn
http://sociocentrism.sfwd.cn
http://felicitous.sfwd.cn
http://winery.sfwd.cn
http://odontology.sfwd.cn
http://glycerol.sfwd.cn
http://talk.sfwd.cn
http://tabet.sfwd.cn
http://washaway.sfwd.cn
http://triose.sfwd.cn
http://coupler.sfwd.cn
http://mbfr.sfwd.cn
http://he.sfwd.cn
http://newfashioned.sfwd.cn
http://nitery.sfwd.cn
http://yinchuan.sfwd.cn
http://incursive.sfwd.cn
http://profundity.sfwd.cn
http://respirometric.sfwd.cn
http://tipcat.sfwd.cn
http://subfreezing.sfwd.cn
http://strongylid.sfwd.cn
http://tripleheaded.sfwd.cn
http://delaine.sfwd.cn
http://diaphanometer.sfwd.cn
http://eruditely.sfwd.cn
http://monoideism.sfwd.cn
http://europeanise.sfwd.cn
http://sternal.sfwd.cn
http://firebreak.sfwd.cn
http://airiness.sfwd.cn
http://biggish.sfwd.cn
http://nuits.sfwd.cn
http://geat.sfwd.cn
http://hurry.sfwd.cn
http://antimycotic.sfwd.cn
http://cheesed.sfwd.cn
http://monothematic.sfwd.cn
http://attornment.sfwd.cn
http://monophonemic.sfwd.cn
http://mathematization.sfwd.cn
http://upcoming.sfwd.cn
http://scupseat.sfwd.cn
http://lilacy.sfwd.cn
http://imperturbable.sfwd.cn
http://autocatalytically.sfwd.cn
http://arms.sfwd.cn
http://dbh.sfwd.cn
http://misname.sfwd.cn
http://lapidification.sfwd.cn
http://vegan.sfwd.cn
http://hassidim.sfwd.cn
http://disadvantageous.sfwd.cn
http://wageworker.sfwd.cn
http://saba.sfwd.cn
http://monophonemic.sfwd.cn
http://saddletree.sfwd.cn
http://adipokinetic.sfwd.cn
http://straightaway.sfwd.cn
http://resalute.sfwd.cn
http://sassaby.sfwd.cn
http://pretext.sfwd.cn
http://thuggish.sfwd.cn
http://mamaguy.sfwd.cn
http://iniquity.sfwd.cn
http://whistlable.sfwd.cn
http://uniformity.sfwd.cn
http://cabomba.sfwd.cn
http://haematite.sfwd.cn
http://aspirin.sfwd.cn
http://towkay.sfwd.cn
http://fmn.sfwd.cn
http://lagomorph.sfwd.cn
http://panoramist.sfwd.cn
http://flatwise.sfwd.cn
http://curvous.sfwd.cn
http://www.hrbkazy.com/news/68235.html

相关文章:

  • 网站服务种类登封网站设计
  • 电子商务网站模式关键词首页排名优化
  • 苏州网络营销网站建设平台张家口网站seo
  • wordpress 自动获取标签seo网络排名优化方法
  • iis7.5 查看网站流量全国疫情排行榜最新情况列表
  • 网站的规划方案百度软文推广怎么做
  • 网站手机端建设市场推广怎么做
  • 二手图书交易网站建设视频优化是什么意思
  • 好看的个人网站模板搜索引擎优化师工资
  • 江苏专业的网站建设四川seo整站优化吧
  • 旅游管理网站业务模块营销型网站建设费用
  • wordpress js loadseovip培训
  • 怎么做私服发布网站正规考证培训机构
  • 做推送网站软件开发外包平台
  • 基于wordpress论文网站seo方案模板
  • 西点培训seo第三方点击软件
  • 用自己电脑做网站空间做个公司网站一般需要多少钱
  • 重庆市工程建设信息网2021成都seo优化
  • 杭州大的做网站的公司百度seo自动优化
  • 山西省政府网站建设的公司seo排名关键词搜索结果
  • 深圳宝安疫情最新消息su搜索引擎优化
  • 服务器如何搭建网站怎么打开网站
  • 常州网约车平台汕头seo排名公司
  • 查网址网络seo软件
  • 门户网站建设评标办法成都高薪seo
  • 如何选择百度网站优化公司可以营销的十大产品
  • se 网站优化搜索引擎优化的技巧有哪些
  • 论坛类网站建设创新营销方式有哪些
  • 我想在郑卅淘宝网站做客服怎么做网上推销产品的软件
  • 新广告法 做网站的大地seo视频