Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

multimodal.md 1.1 KB

You have to be logged in to leave a comment. Sign In

Multimodal

We currently support IDEFICS (hosted on TGI), OpenAI and Anthropic Claude 3 as multimodal models. You can enable it by setting multimodal: true in your MODELS configuration. For IDEFICS, you must have a PRO HF Api token. For OpenAI, see the OpenAI section. For Anthropic, see the Anthropic section.

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:"]
    }
  }
]`
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...