LLM_Mimic / main.py
kiranb99's picture
Update main.py
f232925
raw
history blame contribute delete
321 Bytes
import torch
from transformers import pipeline
generate_text = pipeline(model="databricks/dolly-v2-2-8b",
torch_dtype=torch.bfloat16,
trust_remote_code=True,
device_map="auto")
generate_text("Whats the difference between an apple and broccoli?")