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

网站建设需求多少钱大概湖北随州市城乡建设官方网站

网站建设需求多少钱大概,湖北随州市城乡建设官方网站,郑州妇科医院排行榜,用动易建设网站教程KTransformers作为一个开源框架,专门为优化大规模语言模型的推理过程而设计。它支持GPU/CPU异构计算,并针对MoE架构的稀疏性进行了特别优化,可以有效降低硬件要求,允许用户在有限的资源下运行像DeepSeek-R1这样庞大的模型。 硬件…

KTransformers作为一个开源框架,专门为优化大规模语言模型的推理过程而设计。它支持GPU/CPU异构计算,并针对MoE架构的稀疏性进行了特别优化,可以有效降低硬件要求,允许用户在有限的资源下运行像DeepSeek-R1这样庞大的模型。

硬件配置:CPU: 使用的是Intel Xeon Silver 4310 CPU @ 2.10GHz,拥有24个物理核心(每个插槽12个核心),支持超线程技术,总共有48个逻辑处理器。内存: 系统配备了1T的DDR4内存,频率为3200MHz。GPU: NVIDIA GeForce RTX 4090,显存为24GB。软件环境:操作系统版本:Ubuntu 20.04CUDA版本:12.4软件框架: KTransformers v0.2.1,支持DeepSeek-R1模型的本地推理。
模型参数:DeepSeek-R1-Q4_K_MKTransformers:ktransformers:https://github.com/kvcache-ai/ktransformersktransformers安装指南:https://kvcache-ai.github.io/ktransformers/en/install.html模型文件:huggingface(科学上网):https://huggingface.co/unsloth/DeepSeek-R1-GGUFmodelscope(国内推荐):https://modelscope.cn/models/unsloth/DeepSeek-R1-GGUF

实现步骤:
1.使用 Conda
创建虚拟环境
我们建议使用Conda来创建一个Python=3.11的虚拟环境来运行程序:
bash conda create --name ktransformers python=3.11
conda activate ktransformers

2.模型加载
下载Deepseek原模型配置文件
modelscope:https://modelscope.cn/models/deepseek-ai/DeepSeek-R1
huggingface:https://huggingface.co/deepseek-ai/DeepSeek-R1
(模型都是从modelscope下载的,但是KTransformer如果没有找到本地的模型文件,会从Hugging Face上面去搜索相应的模型进行下载。而由于国内的一些网络问题,可能会导致直接下载模型失败。有一种方法是配置HF的镜像地址:$ export HF_ENDPOINT=https://hf-mirror.com)
检查配置文件是否完整
在这里插入图片描述
3.下载源代码并编译
初始化源代码:
bash git clone https://github.com/kvcache-ai/ktransformers.git
cd ktransformers
git submodule init
git submodule update
安装(Linux): bash bash install.sh

pip install flash-attn

以及需要手动安装libstdc

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install --only-upgrade libstdc++6
conda install -c conda-forge libstdcxx-ng

$ git clone https://github.com/kvcache-ai/ktransformers.git
正克隆到 ‘ktransformers’…
remote: Enumerating objects: 1866, done.
remote: Counting objects: 100% (655/655), done.
remote: Compressing objects: 100% (300/300), done.
remote: Total 1866 (delta 440), reused 359 (delta 355), pack-reused 1211 (from 2)
接收对象中: 100% (1866/1866), 9.33 MiB | 7.65 MiB/s, 完成.
处理 delta 中: 100% (990/990), 完成.
$ cd ktransformers/
$ git submodule init
子模组 ‘third_party/llama.cpp’(https://github.com/ggerganov/llama.cpp.git)已对路径 ‘third_party/llama.cpp’ 注册
子模组 ‘third_party/pybind11’(https://github.com/pybind/pybind11.git)已对路径 ‘third_party/pybind11’ 注册
$ git submodule update
正克隆到 ‘/datb/DeepSeek/ktransformers/third_party/llama.cpp’…
正克隆到 ‘/datb/DeepSeek/ktransformers/third_party/pybind11’…
子模组路径 ‘third_party/llama.cpp’:检出 ‘a94e6ff8774b7c9f950d9545baf0ce35e8d1ed2f’
子模组路径 ‘third_party/pybind11’:检出 ‘bb05e0810b87e74709d9f4c4545f1f57a1b386f5’
$ bash install.sh
Successfully built ktransformers
Installing collected packages: wcwidth, zstandard, tomli, tenacity, sniffio, six, pyproject_hooks, pydantic-core, psutil, propcache, orjson, ninja, multidict, jsonpointer, h11, greenlet, frozenlist, exceptiongroup, colorlog, click, attrs, async-timeout, annotated-types, aiohappyeyeballs, yarl, uvicorn, SQLAlchemy, requests-toolbelt, pydantic, jsonpatch, httpcore, build, blessed, anyio, aiosignal, starlette, httpx, aiohttp, langsmith, fastapi, accelerate, langchain-core, langchain-text-splitters, langchain, ktransformers
Successfully installed SQLAlchemy-2.0.38 accelerate-1.3.0 aiohappyeyeballs-2.4.6 aiohttp-3.11.12 aiosignal-1.3.2 annotated-types-0.7.0 anyio-4.8.0 async-timeout-4.0.3 attrs-25.1.0 blessed-1.20.0 build-1.2.2.post1 click-8.1.8 colorlog-6.9.0 exceptiongroup-1.2.2 fastapi-0.115.8 frozenlist-1.5.0 greenlet-3.1.1 h11-0.14.0 httpcore-1.0.7 httpx-0.28.1 jsonpatch-1.33 jsonpointer-3.0.0 ktransformers-0.2.1+cu128torch26fancy langchain-0.3.18 langchain-core-0.3.35 langchain-text-splitters-0.3.6 langsmith-0.3.8 multidict-6.1.0 ninja-1.11.1.3 orjson-3.10.15 propcache-0.2.1 psutil-7.0.0 pydantic-2.10.6 pydantic-core-2.27.2 pyproject_hooks-1.2.0 requests-toolbelt-1.0.0 six-1.17.0 sniffio-1.3.1 starlette-0.45.3 tenacity-9.0.0 tomli-2.2.1 uvicorn-0.34.0 wcwidth-0.2.13 yarl-1.18.3 zstandard-0.23.0
Installation completed successfully
在这里插入图片描述

参考:
https://www.cnblogs.com/dechinphy/p/18719866/ktransformer
https://zhuanlan.zhihu.com/p/25811017239


文章转载自:

http://Vr0dh58T.gwktL.cn
http://zjifWYLG.gwktL.cn
http://cZwya4Ns.gwktL.cn
http://unJuWzh7.gwktL.cn
http://peIOruN5.gwktL.cn
http://9sIyGuVn.gwktL.cn
http://tC8llwBA.gwktL.cn
http://uFhw5BO5.gwktL.cn
http://mfD7hXNN.gwktL.cn
http://2U64JbCr.gwktL.cn
http://Tu40r9aW.gwktL.cn
http://NQ9GlAeK.gwktL.cn
http://jgjk4aZ3.gwktL.cn
http://cJ2HLcRS.gwktL.cn
http://fjOGxAZx.gwktL.cn
http://QrBvNqVG.gwktL.cn
http://IQTwA9nc.gwktL.cn
http://4IEI4piz.gwktL.cn
http://DP3rVCOR.gwktL.cn
http://6uQ494Dc.gwktL.cn
http://VdBAWlP1.gwktL.cn
http://Q2k58zxI.gwktL.cn
http://whx7O0mU.gwktL.cn
http://GimPh0gf.gwktL.cn
http://nHiGmbuZ.gwktL.cn
http://kru6t4Z5.gwktL.cn
http://BbirKtpo.gwktL.cn
http://jVV5oZzt.gwktL.cn
http://gUiXClT1.gwktL.cn
http://mMvqVxcm.gwktL.cn
http://www.dtcms.com/wzjs/629361.html

相关文章:

  • 哪里有服务好的深圳网站建设呼叫中心系统价格
  • windows7建设网站保安网站建设
  • 东莞横沥网站设计哪些购物网站有做拼团活动
  • 浙江网站建设服务网易企业邮箱账号
  • 安徽省和住房建设厅网站互联网的发展趋势
  • 网站后台更新后主页没有变化网上购物平台有哪些?
  • 西安网站开发公司排行榜软件工程师工资高吗
  • 宁德市城乡建设网站网站开发属于无形资产
  • 网站城市分站织梦系统专做运动品牌的网站
  • 太原网站seo外包中国室内设计联盟官网首页
  • 江苏淮安建设局网站动漫设计和动画设计
  • 网站怎么添加链接代码机关网站建设工作总结
  • pc网站 手机网站 微网站360免费wifi好用吗
  • 营销型网站建设风格设定包括哪些方面?官方百度
  • 做网站如何找客户北京网站建设++知乎
  • 专业做俄语网站建设安徽建设网站
  • 淄博网站制作定制技术镇平建设局网站
  • 德国 网站建设4徐汇区网站建设
  • 深圳品牌网站建设服务费用espcms易思企业网站管理系统
  • 外文网站字体北京公司注册地址出租
  • 注册网站怎么做网站旅游网站如何做推广
  • 学习建设网站需要多久常州网油卷介绍
  • 网站备案的要求肖云路那有做网站公司
  • 网站开发技术概述用asp做的网站有哪些
  • 免费化妆品网站模板下载重庆专业网站推广方案
  • 上海襄阳网站建设九龙坡区发布
  • 网站怎么加链接想开发一个旧物交易网站应该怎么做
  • 济宁企业网站建设嘉兴网站建设企业网站制作
  • 网站前台用什么做北京网站建设推广服务信息
  • 织梦如何做几种语言的网站高效的网站建设