Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
vs4vijay
/
ChatStudio
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
36ce4fa
ChatStudio
/
src
/
dolly.py
vs4vijay
changes
36ce4fa
almost 2 years ago
raw
Copy download link
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"
)