Update README.md
Browse files
README.md
CHANGED
@@ -57,7 +57,7 @@ inputs = tokenizer.apply_chat_template({
|
|
57 |
"character": "",
|
58 |
"general": "1girl",
|
59 |
"length": "<|long|>"
|
60 |
-
}, tokenize=True) # tokenize=False to preview prompt
|
61 |
# same as input_ids of "<|bos|><rating>rating:sfw, rating:general</rating><copyright>original</copyright><character></character><general><|long|>1girl<|input_end|>"
|
62 |
with torch.no_grad():
|
63 |
outputs = model.generate(inputs, generation_config=generation_config)
|
@@ -109,7 +109,7 @@ inputs = tokenizer.apply_chat_template({
|
|
109 |
"character": "",
|
110 |
"general": "1girl",
|
111 |
"length": "<|long|>"
|
112 |
-
}, tokenize=True)
|
113 |
|
114 |
with torch.no_grad():
|
115 |
outputs = ort_model.generate(inputs, generation_config=generation_config)
|
|
|
57 |
"character": "",
|
58 |
"general": "1girl",
|
59 |
"length": "<|long|>"
|
60 |
+
}, return_tensors="pt", tokenize=True) # tokenize=False to preview prompt
|
61 |
# same as input_ids of "<|bos|><rating>rating:sfw, rating:general</rating><copyright>original</copyright><character></character><general><|long|>1girl<|input_end|>"
|
62 |
with torch.no_grad():
|
63 |
outputs = model.generate(inputs, generation_config=generation_config)
|
|
|
109 |
"character": "",
|
110 |
"general": "1girl",
|
111 |
"length": "<|long|>"
|
112 |
+
}, return_tensors="pt", tokenize=True)
|
113 |
|
114 |
with torch.no_grad():
|
115 |
outputs = ort_model.generate(inputs, generation_config=generation_config)
|