Update README.md
Browse files
README.md
CHANGED
@@ -37,7 +37,7 @@ import re
|
|
37 |
from string import Template
|
38 |
prompt_template = Template("Human: ${inst} </s> Assistant: ")
|
39 |
|
40 |
-
tokenizer = AutoTokenizer.from_pretrained("m-a-p/ChatMusician", trust_remote_code=True)
|
41 |
# you may replace "m-a-p/ChatMusician-Base" with "m-a-p/ChatMusician", since the base model may not follow instructions.
|
42 |
model = AutoModelForCausalLM.from_pretrained("m-a-p/ChatMusician-Base", torch_dtype=torch.float16, device_map="cuda", resume_download=True).eval()
|
43 |
|
|
|
37 |
from string import Template
|
38 |
prompt_template = Template("Human: ${inst} </s> Assistant: ")
|
39 |
|
40 |
+
tokenizer = AutoTokenizer.from_pretrained("m-a-p/ChatMusician-Base", trust_remote_code=True)
|
41 |
# you may replace "m-a-p/ChatMusician-Base" with "m-a-p/ChatMusician", since the base model may not follow instructions.
|
42 |
model = AutoModelForCausalLM.from_pretrained("m-a-p/ChatMusician-Base", torch_dtype=torch.float16, device_map="cuda", resume_download=True).eval()
|
43 |
|