ChatStudio / src /dolly.py
vs4vijay's picture
changes
36ce4fa
raw
history blame
176 Bytes
import torch
from transformers import pipeline
generate_text = pipeline(model="databricks/dolly-v2-3b", torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")