PEFT
加入 Hugging Face 社群
並獲得增強的文件體驗
安裝
在開始之前,您需要設定您的環境,安裝適當的軟體包,並配置 🤗 PEFT。🤗 PEFT 在 Python 3.9+ 上進行了測試。
🤗 PEFT 可在 PyPI 上獲取,也可在 GitHub 上獲取。
PyPI
要從 PyPI 安裝 🤗 PEFT:
從原始碼安裝
尚未釋出的新功能每天都在增加,這也意味著可能存在一些錯誤。要試用它們,請從 GitHub 倉庫安裝:
pip install git+https://github.com/huggingface/peft
如果您正在為該庫做貢獻,或者希望使用原始碼並能在執行程式碼時看到即時結果,可以從本地克隆的倉庫版本安裝一個可編輯版本:
git clone https://github.com/huggingface/peft
cd peft
pip install -e .[test]
< > 在 GitHub 上更新
© . This site is unofficial and not affiliated with Hugging Face, Inc.