Chat UI 文件

多模態

Hugging Face's logo
加入 Hugging Face 社群

並獲得增強的文件體驗

開始使用

多模態

我們目前支援將 IDEFICS (託管於 TGI)、OpenAI 和 Anthropic Claude 3 作為多模態模型。您可以透過在 `MODELS` 配置中設定 `multimodal: true` 來啟用它。對於 IDEFICS,您必須擁有 PRO HF Api 令牌。對於 OpenAI,請參閱 OpenAI 部分。對於 Anthropic,請參閱 Anthropic 部分

MODELS=`[
  {
    "name": "HuggingFaceM4/idefics-80b-instruct",
    "multimodal" : true,
    "description": "IDEFICS is the new multimodal model by Hugging Face.",
    "preprompt": "",
    "chatPromptTemplate" : "{{#each messages}}{{#ifUser}}User: {{content}}{{/ifUser}}<end_of_utterance>\nAssistant: {{#ifAssistant}}{{content}}\n{{/ifAssistant}}{{/each}}",
    "parameters": {
      "temperature": 0.1,
      "top_p": 0.95,
      "repetition_penalty": 1.2,
      "top_k": 12,
      "truncate": 1000,
      "max_new_tokens": 1024,
      "stop": ["<end_of_utterance>", "User:", "\nUser:"]
    }
  }
]`
< > 在 GitHub 上更新

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