kuangren commited on
Commit
ec840f2
1 Parent(s): 9873109

Create bot.py

Browse files
Files changed (1) hide show
  1. bot.py +5 -0
bot.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import torch
2
+ from transformers import pipeline
3
+
4
+ generate_text = pipeline(model="databricks/dolly-v2-12b", torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")
5
+ generate_text("Explain to me the difference between nuclear fission and fusion.")