Predibase offers LLMs like Llama 3, Mistral, Gemma, etc. on its serverless infrastructure that you can query instantly.
Sending Predibase Tenant IDPredibase expects your account tenant ID along with the API key in each request. With Portkey, you can send your Tenant ID with the user param while making your request.
Predibase allows you to deploy and use fine-tuned models with adapters. Use the special format with your model identifier from your Predibase dashboard:
Fine-Tuned Model Format: model = base_model:adapter-repo-name/adapter-version-numberFor example: llama-3-8b:sentiment-analysis/1
Copy
Ask AI
from portkey_ai import Portkeyportkey = Portkey(api_key="PORTKEY_API_KEY", provider="@predibase")response = portkey.chat.completions.create( model="llama-3-8b:sentiment-analysis/1", # Base model + adapter messages=[{"role": "user", "content": "This product is amazing!"}], user="PREDIBASE_TENANT_ID")print(response.choices[0].message.content)