afrizalha commited on
Commit
2889544
1 Parent(s): 7cb3f94

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -0
README.md CHANGED
@@ -68,6 +68,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
68
 
69
  tokenizer = AutoTokenizer.from_pretrained("afrizalha/Bakpia-V1-9B-Javanese-4bit")
70
  model = AutoModelForCausalLM.from_pretrained("afrizalha/Bakpia-V1-9B-Javanese-4bit", quantization_config=BitsAndBytesConfig(load_in_4bit=True))
 
71
 
72
  template = """<start_of_turn>user
73
  {prompt}<end_of_turn>
 
68
 
69
  tokenizer = AutoTokenizer.from_pretrained("afrizalha/Bakpia-V1-9B-Javanese-4bit")
70
  model = AutoModelForCausalLM.from_pretrained("afrizalha/Bakpia-V1-9B-Javanese-4bit", quantization_config=BitsAndBytesConfig(load_in_4bit=True))
71
+ model.to("cuda")
72
 
73
  template = """<start_of_turn>user
74
  {prompt}<end_of_turn>