<h1>對話語言模型基本建制</h1> 環境:windows 開發:vscode 使用語言:py <h2>windows基本環境建制</h2> 1.安裝wsl2+ubuntu。 2.安裝vscode與必要延伸套件。 3.安裝miniconda套件環境。 4.安裝python環境。 5.安裝gpu驅動 6.安裝pytorch(cuda) 7.安裝HuggingFace套件與相關工具。 [HuggingFace教學網站]("https://huggingface.co/learn/llm-course/zh-TW/chapter1/1") 8.安裝llm模型 |模型名稱|開發者|模型大小|優點| |------|-----|----|----| |Mistral / Mixtral|Mistral AI(法國)|7B(dense) / 12.9B(MoE)|超快、效果強、精煉簡潔 |Gemma 系列|Google DeepMind|2B / 7B|開源 + 穩定性高,精簡版 Gemini| |Phi-2 / Phi-3|微軟|1.3B / 3.8B|小模型中表現非常強、低資源可訓練| |LLaMA 2 / LLaMA 3(meta)|Meta|7B / 13B / 70B|穩定性高、多語言、可擴展性強| |OpenChat(基於 LLaMA)|社群 LoRA 微調|7B / 13B|fine-tuned、對話優化好| <h3>安裝wsl2+ubuntu</h3> 1.windowsb搜尋PowerShellsb搜尋PowerShellsb並按右鍵使用系統管理員開啟。  ```powershell= wsl --install -d Ubuntu-22.04 ``` 此命令會啟動執行WSL並安裝linux ubuntu發行版本所需功能。並會安裝Ubuntu-22.04。 <h3>安裝vscode+python擴充功能</h3> #### 一.到vscode官網下載Vscode的安裝檔。 連結:https://code.visualstudio.com/  #### 二.開啟安裝檔,選則附加的工作建議全部打勾。 #### 三.安裝必要之擴充便利功能。 - Chinese (Traditional) Language Pack for Visual Studio Code 可以把vscode翻譯成中文。 - python 要寫python一定要安裝的擴充功能。 ### 安裝pythone: - 前往python官往下載python安裝檔: 連結:https://www.python.org/  - 開啟安裝檔,勾選Add pythone.exe to PATH,讓Python自動加入Windows環境變數。 - 將電腦重新啟動,讓環境變數生效。 #### 執行Vscode的第一個Pythone: - 在vscode裡開啟一個,記得打開時要在檔案後面打上,(檔案名稱).py。  ```python= print("Hello,world!") ``` 會看道顯示Hello,world即是成功。 # 重點以下所有輸入都是用windows終端機進到ubuntu模式下進行輸入。 ## 要預先完成安裝wsl2+ubuntu才能執行以下步驟。 - 如何確認
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up