JustinLin610
commited on
Commit
•
5c5635f
1
Parent(s):
25e33b3
Update README.md
Browse files
README.md
CHANGED
@@ -47,10 +47,10 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
47 |
device = "cuda" # the device to load the model onto
|
48 |
|
49 |
model = AutoModelForCausalLM.from_pretrained(
|
50 |
-
"
|
51 |
device_map="auto"
|
52 |
)
|
53 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
54 |
|
55 |
prompt = "Give me a short introduction to large language model."
|
56 |
messages = [
|
|
|
47 |
device = "cuda" # the device to load the model onto
|
48 |
|
49 |
model = AutoModelForCausalLM.from_pretrained(
|
50 |
+
"Qwen/Qwen2-beta-0_5B-Chat",
|
51 |
device_map="auto"
|
52 |
)
|
53 |
+
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-beta-0_5B-Chat")
|
54 |
|
55 |
prompt = "Give me a short introduction to large language model."
|
56 |
messages = [
|