Update README.md
Browse files
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>
|