Spaces:
Runtime error
Runtime error
Create bot.py
Browse files
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.")
|