Views
No views yet
databricks/dolly-v2-12b model in 8bit precision using bitsandbytes.4.28.0 release info.use_cache=True and generating via contrastive search. example notenook heretransformers, accelerate, and bitsandbytes. For this to work you must have transformers>=4.28.0 and bitsandbytes>0.37.2.pip install -U -q transformers bitsandbytes accelerate1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3model_name = "ethzanalytics/dolly-v2-12b-sharded-8bit"
4tokenizer = AutoTokenizer.from_pretrained(model_name)
5
6model = AutoModelForCausalLM.from_pretrained(model_name)