国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

windows wsl2(ubuntu)使用xinference快速部署ai模型

這篇具有很好參考價值的文章主要介紹了windows wsl2(ubuntu)使用xinference快速部署ai模型。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報違法"按鈕提交疑問。

xinference介紹

Xorbits Inference(Xinference)是一個性能強(qiáng)大且功能全面的分布式推理框架??捎糜诖笳Z言模型(LLM),語音識別模型,多模態(tài)模型等各種模型的推理。通過 Xorbits Inference,你可以輕松地一鍵部署你自己的模型或內(nèi)置的前沿開源模型。無論你是研究者,開發(fā)者,或是數(shù)據(jù)科學(xué)家,都可以通過 Xorbits Inference 與最前沿的 AI 模型,發(fā)掘更多可能。

windows wsl2(ubuntu)使用xinference快速部署ai模型,AI,人工智能,運(yùn)維,linux,windows

官方文檔:GitHub - xorbitsai/inference: Replace OpenAI GPT with another LLM in your app by changing a single line of code. Xinference gives you the freedom to use any LLM you need. With Xinference, you're empowered to run inference with any open-source language models, speech recognition models, and multimodal models, whether in the cloud, on-premises, or even on your laptop.

如何安裝wsl2 并安裝linux子系統(tǒng)

參考文檔:windows 使用wsl2安裝linux子系統(tǒng)?

演示安裝ubuntu 22

列出可安裝的子系統(tǒng) 命令:wsl --list --online

PS C:\Users\linyu> wsl --list --online
以下是可安裝的有效分發(fā)的列表。
使用 'wsl.exe --install <Distro>' 安裝。
NAME                                   FRIENDLY NAME
Ubuntu                                 Ubuntu
Debian                                 Debian GNU/Linux
kali-linux                             Kali Linux Rolling
Ubuntu-18.04                           Ubuntu 18.04 LTS
Ubuntu-20.04                           Ubuntu 20.04 LTS
Ubuntu-22.04                           Ubuntu 22.04 LTS
OracleLinux_7_9                        Oracle Linux 7.9
OracleLinux_8_7                        Oracle Linux 8.7
OracleLinux_9_1                        Oracle Linux 9.1
openSUSE-Leap-15.5                     openSUSE Leap 15.5
SUSE-Linux-Enterprise-Server-15-SP4    SUSE Linux Enterprise Server 15 SP4
SUSE-Linux-Enterprise-15-SP5           SUSE Linux Enterprise 15 SP5
openSUSE-Tumbleweed                    openSUSE Tumbleweed

安裝ubuntu 命令:wsl --install -d Ubuntu-22.04

PS C:\Users\linyu> wsl --install -d Ubuntu-22.04
正在安裝: Ubuntu 22.04 LTS
已安裝 Ubuntu 22.04 LTS。
正在啟動 Ubuntu 22.04 LTS...
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers

輸入賬號密碼 安裝完成

Enter new UNIX username:
New password:
Retype new password:
passwd: password updated successfully
Installation successful!

安裝顯卡驅(qū)動與cuda驅(qū)動

參考文檔:wsl2 ubuntu子系統(tǒng)安裝顯卡驅(qū)動與cuda

安裝python虛擬運(yùn)行環(huán)境conda

參考文檔:conda環(huán)境安裝

創(chuàng)建xinference python虛擬運(yùn)行環(huán)境

創(chuàng)建xinference運(yùn)行目錄

mkdir -p /data/xinference

創(chuàng)建環(huán)境命令:

conda create -n xinference python==3.10

進(jìn)入環(huán)境:

conda activate xinference

按需安裝參考官方文檔:GitHub - xorbitsai/inference: Replace OpenAI GPT with another LLM in your app by changing a single line of code. Xinference gives you the freedom to use any LLM you need. With Xinference, you're empowered to run inference with any open-source language models, speech recognition models, and multimodal models, whether in the cloud, on-premises, or even on your laptop.Replace OpenAI GPT with another LLM in your app by changing a single line of code. Xinference gives you the freedom to use any LLM you need. With Xinference, you're empowered to run inference with any open-source language models, speech recognition models, and multimodal models, whether in the cloud, on-premises, or even on your laptop. - xorbitsai/inferencehttps://github.com/xorbitsai/inference

本地快速安裝:pip install "xinference[all]"

(xinference) root@DESKTOP-TUR5ISE:/data/xinference# pip install "xinference[all]"

安裝完成

windows wsl2(ubuntu)使用xinference快速部署ai模型,AI,人工智能,運(yùn)維,linux,windows

國內(nèi)拉模型配置環(huán)境變量

配置如下環(huán)境變量可以從國內(nèi)的modelscope拉模型 默認(rèn)是從Hugging Face拉取,需要外網(wǎng)。

命令行輸入:

export XINFERENCE_MODEL_SRC=modelscope
export HF_ENDPOINT=https://hf-mirror.com

啟動服務(wù)

啟動服務(wù) 命令:

XINFERENCE_HOME=/data/xinference xinference-local --host 0.0.0.0 --port 9997

查看ip地址

windows wsl2(ubuntu)使用xinference快速部署ai模型,AI,人工智能,運(yùn)維,linux,windows

訪問服務(wù) http://IP地址:9997

windows wsl2(ubuntu)使用xinference快速部署ai模型,AI,人工智能,運(yùn)維,linux,windows

運(yùn)行模型

點(diǎn)擊小火箭圖標(biāo) 啟動chatglm3 模型測試

windows wsl2(ubuntu)使用xinference快速部署ai模型,AI,人工智能,運(yùn)維,linux,windows

后臺開始下載模型

windows wsl2(ubuntu)使用xinference快速部署ai模型,AI,人工智能,運(yùn)維,linux,windows

下載完后就看到模型已經(jīng)在運(yùn)行列表中了

windows wsl2(ubuntu)使用xinference快速部署ai模型,AI,人工智能,運(yùn)維,linux,windows

windows wsl2(ubuntu)使用xinference快速部署ai模型,AI,人工智能,運(yùn)維,linux,windows

之后就可以進(jìn)行調(diào)用或?qū)υ捔恕?mark hidden color="red">文章來源:http://www.zghlxwxcb.cn/news/detail-848017.html

windows wsl2(ubuntu)使用xinference快速部署ai模型,AI,人工智能,運(yùn)維,linux,windows文章來源地址http://www.zghlxwxcb.cn/news/detail-848017.html

到了這里,關(guān)于windows wsl2(ubuntu)使用xinference快速部署ai模型的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • wsl2 ubuntu ip 自動同步到windows端的vscode remote ssh(wsl2 ubuntu 靜態(tài)ip 固定ip)

    wsl2 ubuntu ip 自動同步到windows端的vscode remote ssh(wsl2 ubuntu 靜態(tài)ip 固定ip)

    ? wsl2 中l(wèi)inux版本:ubuntu ? windows版本: win10/win11 最近裝了wsl2,使用vscode遠(yuǎn)程連接wsl2時遇到了如下問題: 1、wsl2的ip無法固定 2、wsl2的ssh服務(wù)不能自動開啟。 嘗試了網(wǎng)上許多方法,都不能解決,于是決定自己寫python腳本解決。 如下方案可以自動將wsl2的ip同步到vscode remote s

    2024年02月03日
    瀏覽(19)
  • 在Windows10中安裝WSL2(Ubuntu 22.04.2 LTS)

    在Windows10中安裝WSL2(Ubuntu 22.04.2 LTS)

    WSL 1 于 2016 首次發(fā)布,在 windows 系統(tǒng)中可以使用linux系統(tǒng)。 但是WSL1的缺點(diǎn)有: 文件 I/O 慢,尤其是在大量IO操作時,例如使用 git 克隆倉庫; 不支持內(nèi)核程序; WSL 2 針對以上兩個缺點(diǎn)進(jìn)行了修正: 相比較于 WSL 1 使用翻譯層將 linux 系統(tǒng)調(diào)用轉(zhuǎn)化成 windows 系統(tǒng)調(diào)用,WSL 2 使用了

    2024年02月14日
    瀏覽(25)
  • Windows 10 安裝配置WSL2(ubuntu20.04)教程 超詳細(xì)

    Windows 10 安裝配置WSL2(ubuntu20.04)教程 超詳細(xì)

    超詳細(xì)windows安裝配置WSL2(ubuntu20.04)步驟 Windows上快速安裝WSL2教程 windows wsl2安裝 Windows Subsystem for Linux(簡稱WSL),Windows下的Linux子系統(tǒng),是一個在Windows 10上能夠運(yùn)行原生Linux二進(jìn)制可執(zhí)行文件(ELF格式)的兼容層。它是由微軟與Canonical公司合作開發(fā),其目標(biāo)是使純正的Ubu

    2024年02月12日
    瀏覽(30)
  • 【2023最新版】Win11: WSL(Ubuntu22.04)使用docker遠(yuǎn)程容器教程(Windows的Docker Desktop下載安裝、遷移到非系統(tǒng)盤、配置國內(nèi)鏡像源、設(shè)置 WSL2)

    【2023最新版】Win11: WSL(Ubuntu22.04)使用docker遠(yuǎn)程容器教程(Windows的Docker Desktop下載安裝、遷移到非系統(tǒng)盤、配置國內(nèi)鏡像源、設(shè)置 WSL2)

    目錄 一、準(zhǔn)備工作 1. 安裝WSL(適用于 Linux 的 Windows 子系統(tǒng)) 2. docker簡介——來源chatGPT 二、Windows安裝 Docker Desktop 1. 官網(wǎng)鏈接 2. 安裝過程 3. 遷移到非系統(tǒng)盤 4.?配置國內(nèi)鏡像源 國內(nèi)鏡像 方法1——通過Docker-Desktop配置 方法2——找打daemon.json文件進(jìn)行配置 三、在適用于 Wind

    2024年02月12日
    瀏覽(43)
  • Windows系列(特別有參考意義):Windows 10 安裝配置WSL2(ubuntu20.04)教程 超詳細(xì)

    Windows系列(特別有參考意義):Windows 10 安裝配置WSL2(ubuntu20.04)教程 超詳細(xì)

    超詳細(xì)windows安裝配置WSL2(ubuntu20.04)步驟 Windows上快速安裝WSL2教程 windows wsl2安裝 1.什么是WSL? Windows Subsystem for Linux(簡稱WSL),Windows下的Linux子系統(tǒng),是一個在Windows 10上能夠運(yùn)行原生Linux二進(jìn)制可執(zhí)行文件(ELF格式)的兼容層。它是由微軟與Canonical公司合作開發(fā),其目標(biāo)是

    2024年04月16日
    瀏覽(34)
  • window11系統(tǒng)基于 wsl2 安裝Linux發(fā)行版ubuntu,并安裝docker及vscode

    window11系統(tǒng)基于 wsl2 安裝Linux發(fā)行版ubuntu,并安裝docker及vscode

    WSL是“Windows Subsystem for Linux”的縮寫,顧名思義,WSL就是Windows系統(tǒng)的Linux子系統(tǒng),其作為Windows組件搭載在Windows10周年更新(1607)后的Windows系統(tǒng)中。 既然WSL是“子系統(tǒng)”,那么WSL的地位我們能大概推測出—— “子系統(tǒng)”作為系統(tǒng)層的一部分,相較于應(yīng)用層(虛擬機(jī))會消耗

    2024年02月13日
    瀏覽(39)
  • Windows 11 上從零開始基于 wsl-ubuntu 搭建 AI 學(xué)習(xí)環(huán)境及部署多種私有 ChatGPT

    今天(2023/6/2)剛剛換了 1 塊 4TB 的硬盤,在 Windows 11 上從零開始,基于 Windows Subsystem for Linux 搭建一套 AI 學(xué)習(xí)環(huán)境。 其中包括,安裝 Python、安裝 Miniconda3、安裝 CUDA Toolkit、安裝 git lfs、配置 Hugging Face 的緩存路徑、本地部署 ChatGLM-6B、本地部署 VisualGLM-6B等等內(nèi)容。 安裝 Ubuntu-

    2024年02月07日
    瀏覽(20)
  • wsl2中的ubuntu使用systemctl報錯問題

    wsl2中的ubuntu使用systemctl報錯問題

    顯示如下錯誤:System has not been booted with systemd as init system (PID 1). Can\\\'t operate 原因在于wsl中的ubuntu不完整,手動安裝systemctl貌似也不好用,可以使用等同的sysvinit命令 替換關(guān)系如下: ?

    2024年02月11日
    瀏覽(23)
  • 【番外】【Airsim in Windows & ROS in WSL2-Ubuntu20.04】環(huán)境配置大全

    【番外】【Airsim in Windows & ROS in WSL2-Ubuntu20.04】環(huán)境配置大全

    AirSim的使用著實(shí)是一件麻煩事,我的配置過程可謂是坎坷重重。原因在于AirSim對于電腦要求較高,所以即使我手頭有一個Interl mini PC,但是由于沒有獨(dú)立顯卡,也沒有辦法實(shí)現(xiàn)在Ubuntu環(huán)境下使用AirSim。而電腦又不太想裝雙系統(tǒng),并且在VMware虛擬機(jī)里面沒有辦法使用電腦的獨(dú)立

    2024年02月19日
    瀏覽(56)
  • 【W(wǎng)SL2筆記9】Ubuntu 環(huán)境ComfyUI 安裝使用筆記

    git clone https://github.com/comfyanonymous/ComfyUI.git 1.2.1 Python 版本 ComfyUI在Ubuntu環(huán)境下,python 3.8、 3.9、 3.10 實(shí)測都能通過 使用3.9是為了后續(xù)兼容其他第三方插件,有些插件在3.10下依賴版本沖突 conda create -n comfyui python==3.9 conda activate comfyui 1.2.2 Torch 版本 Conda 安裝 conda install pytorch tor

    2024年03月12日
    瀏覽(124)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包