Text Generation Inference 文件

支援的模型

Hugging Face's logo
加入 Hugging Face 社群

並獲得增強的文件體驗

開始使用

支援的模型

Text Generation Inference 支援部署經過優化的模型。以下章節列出了目前支援的模型(VLM 與 LLM)。

如果上述清單中缺乏您想要部署的模型,您可以根據該模型的管線(pipeline)類型,嘗試初始化並部署該模型以觀察其效能表現,但對於未經優化的模型,我們無法保證其效能。

# for causal LMs/text-generation models
AutoModelForCausalLM.from_pretrained(<model>, device_map="auto")
# or, for text-to-text generation models
AutoModelForSeq2SeqLM.from_pretrained(<model>, device_map="auto")

如果您希望部署已存在於本機資料夾中的受支援模型,只需指向該本機資料夾路徑即可。

text-generation-launcher --model-id <PATH-TO-LOCAL-BLOOM>
在 GitHub 上更新

© . This site is unofficial and not affiliated with Hugging Face, Inc.