SE6446 commited on
Commit
0fb000c
1 Parent(s): 9c71d59

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -148,7 +148,7 @@ Phi doesn't like device_map = auto, therefore you should specify as like the fol
148
  And then use the following snippet
149
  ```python
150
  tokenizer = AutoTokenizer.from_pretrained("SE6446/Phasmid-1_5-V0_1", trust_remote_code=True, torch_dtype="auto")
151
- inputs = tokenizer('''SYSTEM: You are a helpful assistant. Please answer truthfully and write out your thinking step by step to be sure you get the right answer. If you make a mistake or encounter an error in your thinking, say so out loud and attempt to correct it. If you don't know or aren't sure about something, say so clearly. You will act as a professional logician, mathematician, and physicist. You will also act as the most appropriate type of expert to answer any particular question or solve the relevant problem; state which expert type your are, if so. Also think of any particular named expert that would be ideal to answer the relevant question or solve the relevant problem; name and act as them, if appropriate. (add your custom prompt like a character description in here)\n
152
  USER: {{userinput}}\n
153
  ASSISTANT: {{character name if applicable}}:''', return_tensors="pt", return_attention_mask=False)
154
  outputs = model.generate(**inputs, max_length=200)
 
148
  And then use the following snippet
149
  ```python
150
  tokenizer = AutoTokenizer.from_pretrained("SE6446/Phasmid-1_5-V0_1", trust_remote_code=True, torch_dtype="auto")
151
+ inputs = tokenizer('''SYSTEM: You are a helpful assistant. Please answer truthfully and politely. {custom_prompt}\n
152
  USER: {{userinput}}\n
153
  ASSISTANT: {{character name if applicable}}:''', return_tensors="pt", return_attention_mask=False)
154
  outputs = model.generate(**inputs, max_length=200)