A 12 billion parameter causal large language model (LLM) created by Databricks that is derived from EleutherAI's Pythia-12b and fine-tuned on a ~15K record instruction corpus generated by Databricks employees.
from clarifai.client.model import Model
# Your PAT (Personal Access Token) can be found in the Account's Security sectionprompt ="What's the future of AI?"# You can set the model using model URL or model ID.model_url="https://clarifai.com/databricks/Dolly-v2/models/dolly-v2-12b"# Model Predictmodel_prediction = Model(url=model_url,pat="YOUR_PAT_HERE").predict_by_bytes(prompt.encode(), input_type="text")print(model_prediction.outputs[0].data.text.raw)