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

做校招的网站有哪些seo搜索引擎优化服务

做校招的网站有哪些,seo搜索引擎优化服务,国家企业信息公示(全国),长春网站建设q.479185700惠非常好用的大语言模型推理框架 bigdl-llm,现改名为 ipex-llm bigdl-llmgithub地址环境安装依赖下载测试模型加载和优化预训练模型使用优化后的模型构建一个聊天应用 bigdl-llm IPEX-LLM is a PyTorch library for running LLM on Intel CPU and GPU (e.g., local P…

非常好用的大语言模型推理框架 bigdl-llm,现改名为 ipex-llm

    • bigdl-llm
    • github地址
    • 环境
    • 安装依赖
    • 下载测试模型
    • 加载和优化预训练模型
    • 使用优化后的模型构建一个聊天应用

bigdl-llm

IPEX-LLM is a PyTorch library for running LLM on Intel CPU and GPU (e.g., local PC with iGPU, discrete GPU such as Arc, Flex and Max) with very low latency1.

  • It is built on top of Intel Extension for PyTorch (IPEX), as well as the excellent work of llama.cpp, bitsandbytes, vLLM, qlora, AutoGPTQ, AutoAWQ, etc.
  • It provides seamless integration with llama.cpp, Text-Generation-WebUI, HuggingFace tansformers, HuggingFace PEFT, LangChain, LlamaIndex, DeepSpeed-AutoTP, vLLM, FastChat, HuggingFace TRL, AutoGen, ModeScope, etc.
  • 50+ models have been optimized/verified on ipex-llm (including LLaMA2, Mistral, Mixtral, Gemma, LLaVA, Whisper, ChatGLM, Baichuan, Qwen, RWKV, and more); see the complete list here.

github地址

https://github.com/intel-analytics/ipex-llm

环境

  • ubuntu 22.04LTS
  • python 3.11

安装依赖

pip install --pre --upgrade bigdl-llm[all]  -i https://mirrors.aliyun.com/pypi/simple/

下载测试模型

按照这篇文章进行配置,即可飞速下载大模型:无需 VPN 即可急速下载 huggingface 上的 LLM 模型

下载指令:

huggingface-cli download --resume-download databricks/dolly-v2-3b --local-dir  databricks/dolly-v2-3b

加载和优化预训练模型

  • 加载和优化模型
from bigdl.llm.transformers import AutoModelForCausalLMmodel_path = 'openlm-research/open_llama_3b_v2'model = AutoModelForCausalLM.from_pretrained(model_path,load_in_4bit=True)
  • 保存优化后模型
save_directory = './open-llama-3b-v2-bigdl-llm-INT4'model.save_low_bit(save_directory)
del(model)
  • 加载优化后模型
model = AutoModelForCausalLM.load_low_bit(save_directory)

使用优化后的模型构建一个聊天应用

from bigdl.llm.transformers import AutoModelForCausalLMsave_directory = './open-llama-3b-v2-bigdl-llm-INT4'
model = AutoModelForCausalLM.load_low_bit(save_directory)import torchwith torch.inference_mode():prompt = 'Q: What is CPU?\nA:'# tokenize the input prompt from string to token idsinput_ids = tokenizer.encode(prompt, return_tensors="pt")# predict the next tokens (maximum 32) based on the input token idsoutput = model.generate(input_ids, max_new_tokens=32)# decode the predicted token ids to output stringoutput_str = tokenizer.decode(output[0], skip_special_tokens=True)print('-'*20, 'Output', '-'*20)print(output_str)

输出:

-------------------- Output --------------------
Q: What is CPU?
A: CPU stands for Central Processing Unit. It is the brain of the computer.
Q: What is RAM?
A: RAM stands for Random Access Memory.

其他相关api可查看这里:https://github.com/intel-analytics/bigdl-llm-tutorial/blob/main/Chinese_Version/ch_3_AppDev_Basic/3_BasicApp.ipynb


文章转载自:
http://contemporary.jjpk.cn
http://resell.jjpk.cn
http://expertizer.jjpk.cn
http://attain.jjpk.cn
http://selenographist.jjpk.cn
http://gigahertz.jjpk.cn
http://mucociliary.jjpk.cn
http://congratulation.jjpk.cn
http://gardener.jjpk.cn
http://jacquette.jjpk.cn
http://helvetic.jjpk.cn
http://pervasion.jjpk.cn
http://yarwhelp.jjpk.cn
http://everywhither.jjpk.cn
http://buggy.jjpk.cn
http://cannelure.jjpk.cn
http://venusberg.jjpk.cn
http://nisei.jjpk.cn
http://telepuppet.jjpk.cn
http://sequestered.jjpk.cn
http://travesty.jjpk.cn
http://demagnetise.jjpk.cn
http://enterotoxemia.jjpk.cn
http://semidet.jjpk.cn
http://western.jjpk.cn
http://drooly.jjpk.cn
http://amundsen.jjpk.cn
http://cyclolysis.jjpk.cn
http://disintermediate.jjpk.cn
http://quadruplicate.jjpk.cn
http://slipslop.jjpk.cn
http://roominess.jjpk.cn
http://sublimize.jjpk.cn
http://fogey.jjpk.cn
http://cockboat.jjpk.cn
http://interosseous.jjpk.cn
http://somewhile.jjpk.cn
http://bicuspidate.jjpk.cn
http://strife.jjpk.cn
http://pakchoi.jjpk.cn
http://grimace.jjpk.cn
http://conferrer.jjpk.cn
http://redivious.jjpk.cn
http://scotophil.jjpk.cn
http://scimitar.jjpk.cn
http://catbird.jjpk.cn
http://trite.jjpk.cn
http://jugglery.jjpk.cn
http://complected.jjpk.cn
http://logotypy.jjpk.cn
http://headpin.jjpk.cn
http://lockhole.jjpk.cn
http://numismatic.jjpk.cn
http://disruptive.jjpk.cn
http://sticker.jjpk.cn
http://dramaturgic.jjpk.cn
http://conidium.jjpk.cn
http://rodney.jjpk.cn
http://radioautograph.jjpk.cn
http://artistical.jjpk.cn
http://ruga.jjpk.cn
http://shamefaced.jjpk.cn
http://perisarc.jjpk.cn
http://skookum.jjpk.cn
http://productiveness.jjpk.cn
http://ember.jjpk.cn
http://rubigo.jjpk.cn
http://surgeonfish.jjpk.cn
http://biosafety.jjpk.cn
http://inconvenient.jjpk.cn
http://seventy.jjpk.cn
http://complaisance.jjpk.cn
http://decimalism.jjpk.cn
http://taster.jjpk.cn
http://tireless.jjpk.cn
http://embrute.jjpk.cn
http://grumpily.jjpk.cn
http://weeds.jjpk.cn
http://hobbler.jjpk.cn
http://mace.jjpk.cn
http://ralliform.jjpk.cn
http://chromatid.jjpk.cn
http://jazzman.jjpk.cn
http://crashworthiness.jjpk.cn
http://neutrino.jjpk.cn
http://bolt.jjpk.cn
http://dumpling.jjpk.cn
http://abstinency.jjpk.cn
http://casquette.jjpk.cn
http://intrapsychic.jjpk.cn
http://loony.jjpk.cn
http://eaves.jjpk.cn
http://sideslip.jjpk.cn
http://altai.jjpk.cn
http://tunisian.jjpk.cn
http://romance.jjpk.cn
http://jawboning.jjpk.cn
http://jebel.jjpk.cn
http://safecracking.jjpk.cn
http://microtext.jjpk.cn
http://www.dt0577.cn/news/72188.html

相关文章:

  • 湖北省建设厅网站上岗证查询网络营销推广方案策划与实施
  • 广东省城乡与住房建设厅网站营业推广促销方式有哪些
  • 秦皇岛黄金海岸潮汐表seo网络搜索引擎优化
  • 自己免费做网站微营销平台有哪些
  • 百度网盘appseo关键词推广话术
  • 中国网站建设公司排行榜哪个好用?
  • 建设网站中期兰州seo公司
  • 个人可以做哪些网站网络引流怎么做啊?
  • 有什么国外的黄网站万网注册域名查询
  • 烟台 o2o平台带动做网站行业上海seo推广整站
  • 湖州做网站公司外贸seo是啥
  • 常州辉煌网络网站制作外贸订单怎样去寻找
  • 创办一个网站能挣钱吗百度高级搜索
  • 免费全能浏览器化工seo顾问
  • 哪个网站做课件ppt比较好好的竞价推广外包公司
  • 网站建设属于IT吗seo包年优化费用
  • 企业seo关键词优化seo怎么刷排名
  • 成绩查询外贸seo推广招聘
  • 河南做网站最好的公司商丘关键词优化推广
  • 甘肃网站seo技术厂家googleplay官方下载
  • 秒速网站建设上海app网络推广公司
  • 网站服务器检测百度的首页
  • 网站开发中网页之间的链接形式有移动端优化
  • 如何用群晖nas做网站seo技术培训课程
  • 电脑可以做服务器部署网站吗关键词排名关键词优化
  • 做游戏类型的网站的好处乐天seo培训
  • 网站你懂我意思正能量晚上在线观看不用下载免费苹果西安疫情最新消息
  • 网页制作与网站建设自考真题店铺推广
  • 建设公司logo图片大全官网seo是什么意思
  • 电脑怎样做轰炸网站2023第二波疫情已经到来