You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Initial work on interactive mode.
* Improve interactive mode. Make rev. prompt optional.
* Update README to explain interactive mode.
* Fix OS X build
Copy file name to clipboardExpand all lines: README.md
+23
Original file line number
Diff line number
Diff line change
@@ -183,6 +183,29 @@ The number of files generated for each model is as follows:
183
183
184
184
When running the larger models, make sure you have enough disk space to store all the intermediate files.
185
185
186
+
### Interactive mode
187
+
188
+
If you want a more ChatGPT-like experience, you can run in interactive mode by passing `-i` as a parameter.
189
+
In this mode, you can always interrupt generation by pressing Ctrl+C and enter one or more lines of text which will be converted into tokens and appended to the current context. You can also specify a *reverse prompt* with the parameter `-r "reverse prompt string"`. This will result in user input being prompted whenever the exact tokens of the reverse prompt string are encountered in the generation. A typical use is to use a prompt which makes LLaMa emulate a chat between multiple users, say Alice and Bob, and pass `-r "Alice:"`.
190
+
191
+
Here is an example few-shot interaction, invoked with the command
"Transcript of a dialog, where the User interacts with an Assistant named Bob. Bob is helpful, kind, honest, good at writing, and never fails to answer the User's requests immediately and with precision.
197
+
198
+
User: Hello, Bob.
199
+
Bob: Hello. How may I help you today?
200
+
User: Please tell me the largest city in Europe.
201
+
Bob: Sure. The largest city in Europe is London, the capital of the United Kingdom.
202
+
User:"
203
+
```
204
+
Note the use of `--color` to distinguish between user input and generated text.
0 commit comments