国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

阿里通義千問Qwen-7b運(yùn)行在FastChat

2023-08-20 01:53 作者:All-In-One  | 我要投稿

如何讓阿里通義千問Qwen-7b運(yùn)行在FastChat

提前準(zhǔn)備:

FastChat項(xiàng)目地址:?git clone https://github.com/lm-sys/FastChat.git

Qwen-7B模型:https://huggingface.co/Qwen/Qwen-7B

本人環(huán)境介紹:
顯卡:3090 24G

內(nèi)存:60G

CPU:AMD-R5 5600

系統(tǒng):Ubuntu22.10

Python依賴環(huán)境:
????Miniconda?

????????下載地址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

????CUDA版本如圖:

廢話不說了,開整

  1. git?clone?https://github.com/lm-sys/FastChat.git

  2. cd?FastChat

  3. 創(chuàng)建conda環(huán)境:?conda create -n fastchat python=3.10

  4. 激活conda環(huán)境:conda activate fastchat

  5. 安裝依賴:pip install -e ".[model_worker,webui]"?

  6. 安裝stream依賴:pip install einops transformers_stream_generator

  7. 確認(rèn)沒有問題,如圖:


環(huán)境安裝完成

開始啟動:

注意:這三步都需要新開控制臺,并且切換conda環(huán)境到fastchat

開啟控制器管理分布式工作線程: python3 -m fastchat.serve.controller?


啟動模型工人:python3 -m fastchat.serve.model_worker --model-path /home/xxx/.cache/huggingface/hub/models--QWen--QWen-7B-Chat

開啟gradio-web-ui:python3 -m fastchat.serve.gradio_web_server


訪問:http://localhost:7860即可如圖:


阿里通義千問Qwen-7b運(yùn)行在FastChat的評論 (共 條)

分享到微博請遵守國家法律
临江市| 梨树县| 敖汉旗| 昂仁县| 九江市| 二连浩特市| 开远市| 双峰县| 望都县| 正宁县| 新和县| 视频| 波密县| 宾阳县| 天台县| 开鲁县| 辉县市| 陵川县| 奉节县| 休宁县| 于田县| 江达县| 汝南县| 泽州县| 缙云县| 荥阳市| 青海省| 彰化县| 会泽县| 阿鲁科尔沁旗| 图木舒克市| 林甸县| 和平县| 裕民县| 河曲县| 汨罗市| 旬阳县| 辽源市| 河北区| 长岭县| 阳原县|