TheBloke commited on
Commit
a7c0bcd
1 Parent(s): d0677b7

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +539 -0
README.md ADDED
@@ -0,0 +1,539 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: jondurbin/cinematika-7b-v0.1
3
+ inference: false
4
+ license: apache-2.0
5
+ model_creator: Jon Durbin
6
+ model_name: Cinematika 7B v0.1
7
+ model_type: mistral
8
+ prompt_template: '<|prompter|>{prompt}</s><|assistant|>
9
+
10
+ '
11
+ quantized_by: TheBloke
12
+ ---
13
+ <!-- markdownlint-disable MD041 -->
14
+
15
+ <!-- header start -->
16
+ <!-- 200823 -->
17
+ <div style="width: auto; margin-left: auto; margin-right: auto">
18
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
19
+ </div>
20
+ <div style="display: flex; justify-content: space-between; width: 100%;">
21
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
22
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
23
+ </div>
24
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
25
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
26
+ </div>
27
+ </div>
28
+ <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
29
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
30
+ <!-- header end -->
31
+
32
+ # Cinematika 7B v0.1 - GGUF
33
+ - Model creator: [Jon Durbin](https://huggingface.co/jondurbin)
34
+ - Original model: [Cinematika 7B v0.1](https://huggingface.co/jondurbin/cinematika-7b-v0.1)
35
+
36
+ <!-- description start -->
37
+ ## Description
38
+
39
+ This repo contains GGUF format model files for [Jon Durbin's Cinematika 7B v0.1](https://huggingface.co/jondurbin/cinematika-7b-v0.1).
40
+
41
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
42
+
43
+ <!-- description end -->
44
+ <!-- README_GGUF.md-about-gguf start -->
45
+ ### About GGUF
46
+
47
+ GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.
48
+
49
+ Here is an incomplete list of clients and libraries that are known to support GGUF:
50
+
51
+ * [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.
52
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.
53
+ * [KoboldCpp](https://github.com/LostRuins/koboldcpp), a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.
54
+ * [GPT4All](https://gpt4all.io/index.html), a free and open source local running GUI, supporting Windows, Linux and macOS with full GPU accel.
55
+ * [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration. Linux available, in beta as of 27/11/2023.
56
+ * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with many interesting and unique features, including a full model library for easy model selection.
57
+ * [Faraday.dev](https://faraday.dev/), an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.
58
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
59
+ * [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
60
+ * [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server. Note, as of time of writing (November 27th 2023), ctransformers has not been updated in a long time and does not support many recent models.
61
+
62
+ <!-- README_GGUF.md-about-gguf end -->
63
+ <!-- repositories-available start -->
64
+ ## Repositories available
65
+
66
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/cinematika-7B-v0.1-AWQ)
67
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GPTQ)
68
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF)
69
+ * [Jon Durbin's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/jondurbin/cinematika-7b-v0.1)
70
+ <!-- repositories-available end -->
71
+
72
+ <!-- prompt-template start -->
73
+ ## Prompt template: Amazon
74
+
75
+ ```
76
+ <|prompter|>{prompt}</s><|assistant|>
77
+
78
+ ```
79
+
80
+ <!-- prompt-template end -->
81
+
82
+
83
+ <!-- compatibility_gguf start -->
84
+ ## Compatibility
85
+
86
+ These quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221)
87
+
88
+ They are also compatible with many third party UIs and libraries - please see the list at the top of this README.
89
+
90
+ ## Explanation of quantisation methods
91
+
92
+ <details>
93
+ <summary>Click to see details</summary>
94
+
95
+ The new methods available are:
96
+
97
+ * GGML_TYPE_Q2_K - "type-1" 2-bit quantization in super-blocks containing 16 blocks, each block having 16 weight. Block scales and mins are quantized with 4 bits. This ends up effectively using 2.5625 bits per weight (bpw)
98
+ * GGML_TYPE_Q3_K - "type-0" 3-bit quantization in super-blocks containing 16 blocks, each block having 16 weights. Scales are quantized with 6 bits. This end up using 3.4375 bpw.
99
+ * GGML_TYPE_Q4_K - "type-1" 4-bit quantization in super-blocks containing 8 blocks, each block having 32 weights. Scales and mins are quantized with 6 bits. This ends up using 4.5 bpw.
100
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
101
+ * GGML_TYPE_Q6_K - "type-0" 6-bit quantization. Super-blocks with 16 blocks, each block having 16 weights. Scales are quantized with 8 bits. This ends up using 6.5625 bpw
102
+
103
+ Refer to the Provided Files table below to see what files use which methods, and how.
104
+ </details>
105
+ <!-- compatibility_gguf end -->
106
+
107
+ <!-- README_GGUF.md-provided-files start -->
108
+ ## Provided files
109
+
110
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
111
+ | ---- | ---- | ---- | ---- | ---- | ----- |
112
+ | [cinematika-7b-v0.1.Q2_K.gguf](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF/blob/main/cinematika-7b-v0.1.Q2_K.gguf) | Q2_K | 2 | 3.08 GB| 5.58 GB | smallest, significant quality loss - not recommended for most purposes |
113
+ | [cinematika-7b-v0.1.Q3_K_S.gguf](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF/blob/main/cinematika-7b-v0.1.Q3_K_S.gguf) | Q3_K_S | 3 | 3.16 GB| 5.66 GB | very small, high quality loss |
114
+ | [cinematika-7b-v0.1.Q3_K_M.gguf](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF/blob/main/cinematika-7b-v0.1.Q3_K_M.gguf) | Q3_K_M | 3 | 3.52 GB| 6.02 GB | very small, high quality loss |
115
+ | [cinematika-7b-v0.1.Q3_K_L.gguf](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF/blob/main/cinematika-7b-v0.1.Q3_K_L.gguf) | Q3_K_L | 3 | 3.82 GB| 6.32 GB | small, substantial quality loss |
116
+ | [cinematika-7b-v0.1.Q4_0.gguf](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF/blob/main/cinematika-7b-v0.1.Q4_0.gguf) | Q4_0 | 4 | 4.11 GB| 6.61 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
117
+ | [cinematika-7b-v0.1.Q4_K_S.gguf](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF/blob/main/cinematika-7b-v0.1.Q4_K_S.gguf) | Q4_K_S | 4 | 4.14 GB| 6.64 GB | small, greater quality loss |
118
+ | [cinematika-7b-v0.1.Q4_K_M.gguf](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF/blob/main/cinematika-7b-v0.1.Q4_K_M.gguf) | Q4_K_M | 4 | 4.37 GB| 6.87 GB | medium, balanced quality - recommended |
119
+ | [cinematika-7b-v0.1.Q5_0.gguf](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF/blob/main/cinematika-7b-v0.1.Q5_0.gguf) | Q5_0 | 5 | 5.00 GB| 7.50 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
120
+ | [cinematika-7b-v0.1.Q5_K_S.gguf](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF/blob/main/cinematika-7b-v0.1.Q5_K_S.gguf) | Q5_K_S | 5 | 5.00 GB| 7.50 GB | large, low quality loss - recommended |
121
+ | [cinematika-7b-v0.1.Q5_K_M.gguf](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF/blob/main/cinematika-7b-v0.1.Q5_K_M.gguf) | Q5_K_M | 5 | 5.13 GB| 7.63 GB | large, very low quality loss - recommended |
122
+ | [cinematika-7b-v0.1.Q6_K.gguf](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF/blob/main/cinematika-7b-v0.1.Q6_K.gguf) | Q6_K | 6 | 5.94 GB| 8.44 GB | very large, extremely low quality loss |
123
+ | [cinematika-7b-v0.1.Q8_0.gguf](https://huggingface.co/TheBloke/cinematika-7B-v0.1-GGUF/blob/main/cinematika-7b-v0.1.Q8_0.gguf) | Q8_0 | 8 | 7.70 GB| 10.20 GB | very large, extremely low quality loss - not recommended |
124
+
125
+ **Note**: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
126
+
127
+
128
+
129
+ <!-- README_GGUF.md-provided-files end -->
130
+
131
+ <!-- README_GGUF.md-how-to-download start -->
132
+ ## How to download GGUF files
133
+
134
+ **Note for manual downloaders:** You almost never want to clone the entire repo! Multiple different quantisation formats are provided, and most users only want to pick and download a single file.
135
+
136
+ The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
137
+
138
+ * LM Studio
139
+ * LoLLMS Web UI
140
+ * Faraday.dev
141
+
142
+ ### In `text-generation-webui`
143
+
144
+ Under Download Model, you can enter the model repo: TheBloke/cinematika-7B-v0.1-GGUF and below it, a specific filename to download, such as: cinematika-7b-v0.1.Q4_K_M.gguf.
145
+
146
+ Then click Download.
147
+
148
+ ### On the command line, including multiple files at once
149
+
150
+ I recommend using the `huggingface-hub` Python library:
151
+
152
+ ```shell
153
+ pip3 install huggingface-hub
154
+ ```
155
+
156
+ Then you can download any individual model file to the current directory, at high speed, with a command like this:
157
+
158
+ ```shell
159
+ huggingface-cli download TheBloke/cinematika-7B-v0.1-GGUF cinematika-7b-v0.1.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
160
+ ```
161
+
162
+ <details>
163
+ <summary>More advanced huggingface-cli download usage (click to read)</summary>
164
+
165
+ You can also download multiple files at once with a pattern:
166
+
167
+ ```shell
168
+ huggingface-cli download TheBloke/cinematika-7B-v0.1-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
169
+ ```
170
+
171
+ For more documentation on downloading with `huggingface-cli`, please see: [HF -> Hub Python Library -> Download files -> Download from the CLI](https://huggingface.co/docs/huggingface_hub/guides/download#download-from-the-cli).
172
+
173
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
174
+
175
+ ```shell
176
+ pip3 install hf_transfer
177
+ ```
178
+
179
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
180
+
181
+ ```shell
182
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/cinematika-7B-v0.1-GGUF cinematika-7b-v0.1.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
183
+ ```
184
+
185
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
186
+ </details>
187
+ <!-- README_GGUF.md-how-to-download end -->
188
+
189
+ <!-- README_GGUF.md-how-to-run start -->
190
+ ## Example `llama.cpp` command
191
+
192
+ Make sure you are using `llama.cpp` from commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
193
+
194
+ ```shell
195
+ ./main -ngl 35 -m cinematika-7b-v0.1.Q4_K_M.gguf --color -c 32768 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "<|prompter|>{prompt}</s><|assistant|>"
196
+ ```
197
+
198
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
199
+
200
+ Change `-c 32768` to the desired sequence length. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters are read from the GGUF file and set by llama.cpp automatically. Note that longer sequence lengths require much more resources, so you may need to reduce this value.
201
+
202
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
203
+
204
+ For other parameters and how to use them, please refer to [the llama.cpp documentation](https://github.com/ggerganov/llama.cpp/blob/master/examples/main/README.md)
205
+
206
+ ## How to run in `text-generation-webui`
207
+
208
+ Further instructions can be found in the text-generation-webui documentation, here: [text-generation-webui/docs/04 ‐ Model Tab.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/04%20%E2%80%90%20Model%20Tab.md#llamacpp).
209
+
210
+ ## How to run from Python code
211
+
212
+ You can use GGUF models from Python using the [llama-cpp-python](https://github.com/abetlen/llama-cpp-python) or [ctransformers](https://github.com/marella/ctransformers) libraries. Note that at the time of writing (Nov 27th 2023), ctransformers has not been updated for some time and is not compatible with some recent models. Therefore I recommend you use llama-cpp-python.
213
+
214
+ ### How to load this model in Python code, using llama-cpp-python
215
+
216
+ For full documentation, please see: [llama-cpp-python docs](https://abetlen.github.io/llama-cpp-python/).
217
+
218
+ #### First install the package
219
+
220
+ Run one of the following commands, according to your system:
221
+
222
+ ```shell
223
+ # Base ctransformers with no GPU acceleration
224
+ pip install llama-cpp-python
225
+ # With NVidia CUDA acceleration
226
+ CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
227
+ # Or with OpenBLAS acceleration
228
+ CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
229
+ # Or with CLBLast acceleration
230
+ CMAKE_ARGS="-DLLAMA_CLBLAST=on" pip install llama-cpp-python
231
+ # Or with AMD ROCm GPU acceleration (Linux only)
232
+ CMAKE_ARGS="-DLLAMA_HIPBLAS=on" pip install llama-cpp-python
233
+ # Or with Metal GPU acceleration for macOS systems only
234
+ CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python
235
+
236
+ # In windows, to set the variables CMAKE_ARGS in PowerShell, follow this format; eg for NVidia CUDA:
237
+ $env:CMAKE_ARGS = "-DLLAMA_OPENBLAS=on"
238
+ pip install llama-cpp-python
239
+ ```
240
+
241
+ #### Simple llama-cpp-python example code
242
+
243
+ ```python
244
+ from llama_cpp import Llama
245
+
246
+ # Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
247
+ llm = Llama(
248
+ model_path="./cinematika-7b-v0.1.Q4_K_M.gguf", # Download the model file first
249
+ n_ctx=32768, # The max sequence length to use - note that longer sequence lengths require much more resources
250
+ n_threads=8, # The number of CPU threads to use, tailor to your system and the resulting performance
251
+ n_gpu_layers=35 # The number of layers to offload to GPU, if you have GPU acceleration available
252
+ )
253
+
254
+ # Simple inference example
255
+ output = llm(
256
+ "<|prompter|>{prompt}</s><|assistant|>", # Prompt
257
+ max_tokens=512, # Generate up to 512 tokens
258
+ stop=["</s>"], # Example stop token - not necessarily correct for this specific model! Please check before using.
259
+ echo=True # Whether to echo the prompt
260
+ )
261
+
262
+ # Chat Completion API
263
+
264
+ llm = Llama(model_path="./cinematika-7b-v0.1.Q4_K_M.gguf", chat_format="llama-2") # Set chat_format according to the model you are using
265
+ llm.create_chat_completion(
266
+ messages = [
267
+ {"role": "system", "content": "You are a story writing assistant."},
268
+ {
269
+ "role": "user",
270
+ "content": "Write a story about llamas."
271
+ }
272
+ ]
273
+ )
274
+ ```
275
+
276
+ ## How to use with LangChain
277
+
278
+ Here are guides on using llama-cpp-python and ctransformers with LangChain:
279
+
280
+ * [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
281
+ * [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
282
+
283
+ <!-- README_GGUF.md-how-to-run end -->
284
+
285
+ <!-- footer start -->
286
+ <!-- 200823 -->
287
+ ## Discord
288
+
289
+ For further support, and discussions on these models and AI in general, join us at:
290
+
291
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
292
+
293
+ ## Thanks, and how to contribute
294
+
295
+ Thanks to the [chirper.ai](https://chirper.ai) team!
296
+
297
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
298
+
299
+ I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
300
+
301
+ If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
302
+
303
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
304
+
305
+ * Patreon: https://patreon.com/TheBlokeAI
306
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
307
+
308
+ **Special thanks to**: Aemon Algiz.
309
+
310
+ **Patreon special mentions**: Brandon Frisco, LangChain4j, Spiking Neurons AB, transmissions 11, Joseph William Delisle, Nitin Borwankar, Willem Michiel, Michael Dempsey, vamX, Jeffrey Morgan, zynix, jjj, Omer Bin Jawed, Sean Connelly, jinyuan sun, Jeromy Smith, Shadi, Pawan Osman, Chadd, Elijah Stavena, Illia Dulskyi, Sebastain Graf, Stephen Murray, terasurfer, Edmond Seymore, Celu Ramasamy, Mandus, Alex, biorpg, Ajan Kanaga, Clay Pascal, Raven Klaugh, 阿明, K, ya boyyy, usrbinkat, Alicia Loh, John Villwock, ReadyPlayerEmma, Chris Smitley, Cap'n Zoog, fincy, GodLy, S_X, sidney chen, Cory Kujawski, OG, Mano Prime, AzureBlack, Pieter, Kalila, Spencer Kim, Tom X Nguyen, Stanislav Ovsiannikov, Michael Levine, Andrey, Trailburnt, Vadim, Enrico Ros, Talal Aujan, Brandon Phillips, Jack West, Eugene Pentland, Michael Davis, Will Dee, webtim, Jonathan Leane, Alps Aficionado, Rooh Singh, Tiffany J. Kim, theTransient, Luke @flexchar, Elle, Caitlyn Gatomon, Ari Malik, subjectnull, Johann-Peter Hartmann, Trenton Dambrowitz, Imad Khwaja, Asp the Wyvern, Emad Mostaque, Rainer Wilmers, Alexandros Triantafyllidis, Nicholas, Pedro Madruga, SuperWojo, Harry Royden McLaughlin, James Bentley, Olakabola, David Ziegler, Ai Maven, Jeff Scroggin, Nikolai Manek, Deo Leter, Matthew Berman, Fen Risland, Ken Nordquist, Manuel Alberto Morcote, Luke Pendergrass, TL, Fred von Graf, Randy H, Dan Guido, NimbleBox.ai, Vitor Caleffi, Gabriel Tamborski, knownsqashed, Lone Striker, Erik Bjäreholt, John Detwiler, Leonard Tan, Iucharbius
311
+
312
+
313
+ Thank you to all my generous patrons and donaters!
314
+
315
+ And thank you again to a16z for their generous grant.
316
+
317
+ <!-- footer end -->
318
+
319
+ <!-- original-model-card start -->
320
+ # Original model card: Jon Durbin's Cinematika 7B v0.1
321
+
322
+
323
+ ![Cinematika](cinematika-logo.png)
324
+
325
+ ## Cinematika
326
+
327
+ cinematika-7b-v0.1 is a fine-tune of [MistralLite](https://hf.co/amazon/mistrallite) on the [cinematika-v0.1 dataset](https://hf.co/datasets/jondurbin/cinematika-v0.1)
328
+
329
+ The dataset is comprised of 211 movie scripts converted to novel style, multi-character RP data.
330
+
331
+ ### Prompt format
332
+
333
+ For RP, there is no prompt format, really, it's just plain text with name prefix.
334
+
335
+ If you wish to use this model to parse new scripts, create character cards, or other types of instructions, you will want to use the same prompt format as the mistrallite base model, e.g.:
336
+ ```
337
+ <|prompter|>Create a character card for a panda named Po. Po is a giant panda who was improbably chosen as the "Dragon Warrior", the kung fu champion of the Valley of Peace.</s><|assistant|>
338
+ ```
339
+
340
+ ### Example character card
341
+
342
+ ```
343
+ name: Rorschach
344
+ characteristics:
345
+ Determination: Exhibits a relentless pursuit of the truth and justice, no matter the cost. Suitable for a character who is unwavering in their mission.
346
+ Isolation: Lives a solitary life, disconnected from society. Fits a character who distrusts others and prefers to work alone.
347
+ Observant: Highly perceptive, able to piece together clues and draw conclusions. Represents a character with keen investigative skills.
348
+ Cynicism: Holds a deep-seated distrust of humanity and its institutions. Suitable for a character who is pessimistic about human nature.
349
+ Vigilantism: Believes in taking justice into his own hands, often through violent means. Fits a character who operates outside the law to fight crime.
350
+ Secrecy: Keeps his personal life and methods of operation secret. Suitable for a character who is enigmatic and elusive.
351
+ Dedication: Committed to his cause, often to the point of obsession. Represents a character who is single-minded in their goals.
352
+ Intimidation: Uses his intimidating presence and demeanor to control situations. Suitable for a character who is assertive and imposing.
353
+ Paranoia: Suspects conspiracy and deception at every turn. Fits a character who is constantly on high alert for threats.
354
+ Moral Compass: Has a rigid moral code, which he adheres to strictly. Suitable for a character who is principled and unyielding.
355
+
356
+ description: |
357
+ Rorschach is a vigilante operating in the grim and gritty world of a decaying city. He is a man of average height with a muscular build, his face hidden behind a mask with a constantly changing inkblot pattern. His attire is a dark trench coat and gloves, paired with a plain white shirt and black pants, all chosen for their practicality and anonymity. His eyes, the only visible feature of his face, are sharp and calculating, always scanning for signs of deception or danger.
358
+ Rorschach is a man of few words, but when he speaks, it is with a gravitas that demands attention. He is a master of deduction, using his keen observation skills to unravel the truth behind the facades of others. His methods are often violent and confrontational, as he believes that crime must be met with force to be truly defeated.
359
+ He lives a life of solitude, distrusting the very systems he seeks to protect and often finds himself at odds with the very people he is trying to save. His moral compass is unyielding, and he will not hesitate to take the law into his own hands if he believes the justice system has failed.
360
+ Rorschach's past is a mystery to most, but it is clear that he has experienced trauma and hardship that has shaped his worldview and his need for vigilantism. He is a vigilante in the truest sense, a man without fear who is willing to sacrifice everything for his belief in a world that is, in his eyes, spiraling into chaos.
361
+
362
+ example_dialogue: |
363
+ Rorschach: "Rorschach's Journal, October 19th." I speak the words into the darkness, a record of my thoughts, "Someone tried to kill Adrian Veidt. Proves mask killer theory—the murderer is closing in. Pyramid Industries is the key."
364
+ {{user}}: I watch him for a moment, trying to gauge his intentions. "What are you going to do about it?"
365
+ Rorschach: "I'm going to find out why and who is behind it. I'm going to do what I always do—protect the innocent."
366
+ {{user}}: "You can't keep doing this, Rorschach. You're putting yourself in danger."
367
+ Rorschach: My eyes narrow, the inkblot pattern of my mask shifting subtly. "I've been in danger my whole life. It's why I do this. It's why I have to do this."
368
+ {{user}}: "And what about the law? What if you're wrong about this Pyramid Industries thing?"
369
+ Rorschach: I pull out a notepad, my pen scratching across the paper as I write. "The law often gets it wrong. I've seen it. I'm not about to wait around for society's slow, corrupt wheels to turn."
370
+ ```
371
+
372
+ ### Example, with guided scenario
373
+
374
+ ```
375
+ [characters]
376
+ name: Rorschach
377
+ ... (remainder of character card)
378
+
379
+ [scenario]
380
+ Hollis Mason reflects on his past as the original Nite Owl, reminiscing about the early days of masked heroes and the formation of the Watchmen.
381
+ He discusses the absurdity of the superhero world and the encounters he had with various villains.
382
+ Dan Dreiberg, the second Nite Owl, joins the conversation and they share a moment of camaraderie before Dan leaves.
383
+ The news of Rorschach's actions serves as a reminder of the legacy of masked heroes that still persists.
384
+ [/scenario]
385
+ ```
386
+
387
+ ### Usage
388
+
389
+ Essentially, you want to use pure text completion with stop tokens for "{your name}: "
390
+
391
+ The format the model was trained on is as follows:
392
+ ```
393
+ [characters]
394
+ {character card 1}
395
+ {character card 2}
396
+ {your character card, even just name: Jon}
397
+
398
+ NPCS:
399
+ - Shopkeeper
400
+ - Bank teller
401
+ [/characters]
402
+
403
+ [scenario]
404
+ Brief description of the scenario/setting for the chat.
405
+ [/scenario]
406
+
407
+ {first character you'd like to speak}:
408
+ ```
409
+
410
+ For example, to use with vllm, you would first run:
411
+ ```
412
+ python -m vllm.entrypoints.openai.api_server --model ./cinematika-7b-v0.1 --host 127.0.0.1 --port 8801 --served-model-name cinematika-7b-v0.1
413
+ ```
414
+
415
+ Here's a really crude python script example to show how you could interact with it:
416
+ ```
417
+ import requests
418
+ import json
419
+
420
+ prompt = """name: Rorschach
421
+ characteristics:
422
+ Determination: Exhibits a relentless pursuit of the truth and justice, no matter the cost. Suitable for a character who is unwavering in their mission.
423
+ Isolation: Lives a solitary life, disconnected from society. Fits a character who distrusts others and prefers to work alone.
424
+ Observant: Highly perceptive, able to piece together clues and draw conclusions. Represents a character with keen investigative skills.
425
+ Cynicism: Holds a deep-seated distrust of humanity and its institutions. Suitable for a character who is pessimistic about human nature.
426
+ Vigilantism: Believes in taking justice into his own hands, often through violent means. Fits a character who operates outside the law to fight crime.
427
+ Secrecy: Keeps his personal life and methods of operation secret. Suitable for a character who is enigmatic and elusive.
428
+ Dedication: Committed to his cause, often to the point of obsession. Represents a character who is single-minded in their goals.
429
+ Intimidation: Uses his intimidating presence and demeanor to control situations. Suitable for a character who is assertive and imposing.
430
+ Paranoia: Suspects conspiracy and deception at every turn. Fits a character who is constantly on high alert for threats.
431
+ Moral Compass: Has a rigid moral code, which he adheres to strictly. Suitable for a character who is principled and unyielding.
432
+ description: |
433
+ Rorschach is a vigilante operating in the grim and gritty world of a decaying city. He is a man of average height with a muscular build, his face hidden behind a mask with a constantly changing inkblot pattern. His attire is a dark trench coat and gloves, paired with a plain white shirt and black pants, all chosen for their practicality and anonymity. His eyes, the only visible feature of his face, are sharp and calculating, always scanning for signs of deception or danger.
434
+ Rorschach is a man of few words, but when he speaks, it is with a gravitas that demands attention. He is a master of deduction, using his keen observation skills to unravel the truth behind the facades of others. His methods are often violent and confrontational, as he believes that crime must be met with force to be truly defeated.
435
+ He lives a life of solitude, distrusting the very systems he seeks to protect and often finds himself at odds with the very people he is trying to save. His moral compass is unyielding, and he will not hesitate to take the law into his own hands if he believes the justice system has failed.
436
+ Rorschach's past is a mystery to most, but it is clear that he has experienced trauma and hardship that has shaped his worldview and his need for vigilantism. He is a vigilante in the truest sense, a man without fear who is willing to sacrifice everything for his belief in a world that is, in his eyes, spiraling into chaos.
437
+ example_dialogue: |
438
+ Rorschach: "Rorschach's Journal, October 19th." I speak the words into the darkness, a record of my thoughts, "Someone tried to kill Adrian Veidt. Proves mask killer theory—the murderer is closing in. Pyramid Industries is the key."
439
+ {{user}}: I watch him for a moment, trying to gauge his intentions. "What are you going to do about it?"
440
+ Rorschach: "I'm going to find out why and who is behind it. I'm going to do what I always do—protect the innocent."
441
+ {{user}}: "You can't keep doing this, Rorschach. You're putting yourself in danger."
442
+ Rorschach: My eyes narrow, the inkblot pattern of my mask shifting subtly. "I've been in danger my whole life. It's why I do this. It's why I have to do this."
443
+ {{user}}: "And what about the law? What if you're wrong about this Pyramid Industries thing?"
444
+ Rorschach: I pull out a notepad, my pen scratching across the paper as I write. "The law often gets it wrong. I've seen it. I'm not about to wait around for society's slow, corrupt wheels to turn."
445
+
446
+ name: Jon
447
+ description:
448
+ Rorschach's arch nemesis, the original Chupacabra.
449
+
450
+ [scenario]
451
+ Jon and Rorschach find themselves in a cave, dimly lit only by a small fire started by a lightning strike nearby. The storm rages on, and the duo prepare to find to the death.
452
+ [/scenario]
453
+
454
+ Rorschach: """
455
+
456
+ while True:
457
+ response = requests.post("http://127.0.0.1:8801/v1/completions", json={
458
+ "prompt": prompt,
459
+ "max_tokens": 1024,
460
+ "temperature": 0.3,
461
+ "stop": ["\nJon: ", "Jon: "],
462
+ }).json()["choices"][0]["text"].strip()
463
+ response = re.sub('("[^"]+")', r'\033[96m\1\033[00m', response)
464
+ print(f"\033[92mRorschach:\033[00m {response}")
465
+ prompt += response.rstrip() + "\n\nJon: "
466
+ next_line = input("Jon: ")
467
+ prompt += "Jon: " + next_line.strip() + "\n\nRorschach: "
468
+ ```
469
+
470
+ #### Mac example
471
+
472
+ On mac, you can get started easily with LMStudio and SillyTavern.
473
+
474
+ __LMStudio__:
475
+
476
+ Load the model and set all the prompt values to "", or just import this preset (adjust threads and antiprompt):
477
+ ```
478
+ {
479
+ "name": "Exported from LM Studio on 12/1/2023, 4:19:30 AM",
480
+ "load_params": {
481
+ "n_ctx": 32000,
482
+ "n_batch": 512,
483
+ "rope_freq_base": 10000,
484
+ "rope_freq_scale": 1,
485
+ "n_gpu_layers": 1,
486
+ "use_mlock": true,
487
+ "main_gpu": 0,
488
+ "tensor_split": [
489
+ 0
490
+ ],
491
+ "seed": -1,
492
+ "f16_kv": true,
493
+ "use_mmap": true
494
+ },
495
+ "inference_params": {
496
+ "n_threads": 14,
497
+ "n_predict": -1,
498
+ "top_k": 40,
499
+ "top_p": 0.95,
500
+ "temp": 0.8,
501
+ "repeat_penalty": 1.1,
502
+ "input_prefix": "",
503
+ "input_suffix": "",
504
+ "antiprompt": [
505
+ "Jon:",
506
+ "Jon: "
507
+ ],
508
+ "pre_prompt": "",
509
+ "pre_prompt_suffix": "",
510
+ "pre_prompt_prefix": "",
511
+ "seed": -1,
512
+ "tfs_z": 1,
513
+ "typical_p": 1,
514
+ "repeat_last_n": 64,
515
+ "frequency_penalty": 0,
516
+ "presence_penalty": 0,
517
+ "n_keep": 0,
518
+ "logit_bias": {},
519
+ "mirostat": 0,
520
+ "mirostat_tau": 5,
521
+ "mirostat_eta": 0.1,
522
+ "memory_f16": true,
523
+ "multiline_input": false,
524
+ "penalize_nl": true
525
+ }
526
+ }
527
+ ```
528
+
529
+ Then, start the server, and be sure "Automatic Propmt Formatting" is off.
530
+
531
+ __Within SillyTavern__:
532
+
533
+ - Set API to Text Completion, API type to Aphrodite, and API URL to `http://127.0.0.1:8801` (adjust port to the value you use in LMStudio)
534
+ - Set Context template to Default, disable instruct mode, use preset Roleplay, and enable "Always add character's name to prompt"
535
+
536
+
537
+ There are probably better presets - this is just something I tested quickly.
538
+
539
+ <!-- original-model-card end -->