TheBloke commited on
Commit
b8ae464
1 Parent(s): 9902c74

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +469 -0
README.md ADDED
@@ -0,0 +1,469 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: stabilityai/japanese-stablelm-instruct-beta-70b
3
+ datasets:
4
+ - kunishou/hh-rlhf-49k-ja
5
+ - kunishou/databricks-dolly-15k-ja
6
+ - kunishou/oasst1-89k-ja
7
+ inference: false
8
+ language:
9
+ - ja
10
+ license:
11
+ - llama2
12
+ model_creator: Stability AI
13
+ model_name: Japanese StableLM Instruct Beta 70B
14
+ model_type: llama
15
+ pipeline_tag: text-generation
16
+ prompt_template: "<s>[INST] <<SYS>>\n\u3042\u306A\u305F\u306F\u5F79\u7ACB\u3064\u30A2\
17
+ \u30B7\u30B9\u30BF\u30F3\u30C8\u3067\u3059\u3002\n<<SYS>>\n\n{prompt} [/INST] \n"
18
+ quantized_by: TheBloke
19
+ tags:
20
+ - japanese-stablelm
21
+ - causal-lm
22
+ ---
23
+ <!-- markdownlint-disable MD041 -->
24
+
25
+ <!-- header start -->
26
+ <!-- 200823 -->
27
+ <div style="width: auto; margin-left: auto; margin-right: auto">
28
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
29
+ </div>
30
+ <div style="display: flex; justify-content: space-between; width: 100%;">
31
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
32
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
33
+ </div>
34
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
35
+ <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>
36
+ </div>
37
+ </div>
38
+ <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>
39
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
40
+ <!-- header end -->
41
+
42
+ # Japanese StableLM Instruct Beta 70B - AWQ
43
+ - Model creator: [Stability AI](https://huggingface.co/stabilityai)
44
+ - Original model: [Japanese StableLM Instruct Beta 70B](https://huggingface.co/stabilityai/japanese-stablelm-instruct-beta-70b)
45
+
46
+ <!-- description start -->
47
+ ## Description
48
+
49
+ This repo contains AWQ model files for [Stability AI's Japanese StableLM Instruct Beta 70B](https://huggingface.co/stabilityai/japanese-stablelm-instruct-beta-70b).
50
+
51
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
52
+
53
+
54
+ ### About AWQ
55
+
56
+ AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference with equivalent or better quality compared to the most commonly used GPTQ settings.
57
+
58
+ It is supported by:
59
+
60
+ - [Text Generation Webui](https://github.com/oobabooga/text-generation-webui) - using Loader: AutoAWQ
61
+ - [vLLM](https://github.com/vllm-project/vllm) - Llama and Mistral models only
62
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
63
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) - for use from Python code
64
+
65
+ <!-- description end -->
66
+ <!-- repositories-available start -->
67
+ ## Repositories available
68
+
69
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/japanese-stablelm-instruct-beta-70B-AWQ)
70
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/japanese-stablelm-instruct-beta-70B-GPTQ)
71
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/japanese-stablelm-instruct-beta-70B-GGUF)
72
+ * [Stability AI's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/stabilityai/japanese-stablelm-instruct-beta-70b)
73
+ <!-- repositories-available end -->
74
+
75
+ <!-- prompt-template start -->
76
+ ## Prompt template: Japanese-StableLM-Llama-2-Chat
77
+
78
+ ```
79
+ <s>[INST] <<SYS>>
80
+ あなたは役立つアシスタントです。
81
+ <<SYS>>
82
+
83
+ {prompt} [/INST]
84
+
85
+ ```
86
+
87
+ <!-- prompt-template end -->
88
+ <!-- licensing start -->
89
+ ## Licensing
90
+
91
+ The creator of the source model has listed its license as `['llama2']`, and this quantization has therefore used that same license.
92
+
93
+ As this model is based on Llama 2, it is also subject to the Meta Llama 2 license terms, and the license files for that are additionally included. It should therefore be considered as being claimed to be licensed under both licenses. I contacted Hugging Face for clarification on dual licensing but they do not yet have an official position. Should this change, or should Meta provide any feedback on this situation, I will update this section accordingly.
94
+
95
+ In the meantime, any questions regarding licensing, and in particular how these two licenses might interact, should be directed to the original model repository: [Stability AI's Japanese StableLM Instruct Beta 70B](https://huggingface.co/stabilityai/japanese-stablelm-instruct-beta-70b).
96
+ <!-- licensing end -->
97
+ <!-- README_AWQ.md-provided-files start -->
98
+ ## Provided files, and AWQ parameters
99
+
100
+ For my first release of AWQ models, I am releasing 128g models only. I will consider adding 32g as well if there is interest, and once I have done perplexity and evaluation comparisons, but at this time 32g models are still not fully tested with AutoAWQ and vLLM.
101
+
102
+ Models are released as sharded safetensors files.
103
+
104
+ | Branch | Bits | GS | AWQ Dataset | Seq Len | Size |
105
+ | ------ | ---- | -- | ----------- | ------- | ---- |
106
+ | [main](https://huggingface.co/TheBloke/japanese-stablelm-instruct-beta-70B-AWQ/tree/main) | 4 | 128 | japanese | 4096 | 36.61 GB
107
+
108
+ <!-- README_AWQ.md-provided-files end -->
109
+
110
+ <!-- README_AWQ.md-text-generation-webui start -->
111
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
112
+
113
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
114
+
115
+ It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install.
116
+
117
+ 1. Click the **Model tab**.
118
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/japanese-stablelm-instruct-beta-70B-AWQ`.
119
+ 3. Click **Download**.
120
+ 4. The model will start downloading. Once it's finished it will say "Done".
121
+ 5. In the top left, click the refresh icon next to **Model**.
122
+ 6. In the **Model** dropdown, choose the model you just downloaded: `japanese-stablelm-instruct-beta-70B-AWQ`
123
+ 7. Select **Loader: AutoAWQ**.
124
+ 8. Click Load, and the model will load and is now ready for use.
125
+ 9. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
126
+ 10. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
127
+ <!-- README_AWQ.md-text-generation-webui end -->
128
+
129
+ <!-- README_AWQ.md-use-from-vllm start -->
130
+ ## Multi-user inference server: vLLM
131
+
132
+ Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/).
133
+
134
+ - Please ensure you are using vLLM version 0.2 or later.
135
+ - When using vLLM as a server, pass the `--quantization awq` parameter.
136
+
137
+ For example:
138
+
139
+ ```shell
140
+ python3 python -m vllm.entrypoints.api_server --model TheBloke/japanese-stablelm-instruct-beta-70B-AWQ --quantization awq
141
+ ```
142
+
143
+ - When using vLLM from Python code, again set `quantization=awq`.
144
+
145
+ For example:
146
+
147
+ ```python
148
+ from vllm import LLM, SamplingParams
149
+
150
+ prompts = [
151
+ "Tell me about AI",
152
+ "Write a story about llamas",
153
+ "What is 291 - 150?",
154
+ "How much wood would a woodchuck chuck if a woodchuck could chuck wood?",
155
+ ]
156
+ prompt_template=f'''<s>[INST] <<SYS>>
157
+ あなたは役立つアシスタントです。
158
+ <<SYS>>
159
+
160
+ {prompt} [/INST]
161
+ '''
162
+
163
+ prompts = [prompt_template.format(prompt=prompt) for prompt in prompts]
164
+
165
+ sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
166
+
167
+ llm = LLM(model="TheBloke/japanese-stablelm-instruct-beta-70B-AWQ", quantization="awq", dtype="auto")
168
+
169
+ outputs = llm.generate(prompts, sampling_params)
170
+
171
+ # Print the outputs.
172
+ for output in outputs:
173
+ prompt = output.prompt
174
+ generated_text = output.outputs[0].text
175
+ print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
176
+ ```
177
+ <!-- README_AWQ.md-use-from-vllm start -->
178
+
179
+ <!-- README_AWQ.md-use-from-tgi start -->
180
+ ## Multi-user inference server: Hugging Face Text Generation Inference (TGI)
181
+
182
+ Use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
183
+
184
+ Example Docker parameters:
185
+
186
+ ```shell
187
+ --model-id TheBloke/japanese-stablelm-instruct-beta-70B-AWQ --port 3000 --quantize awq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
188
+ ```
189
+
190
+ Example Python code for interfacing with TGI (requires [huggingface-hub](https://github.com/huggingface/huggingface_hub) 0.17.0 or later):
191
+
192
+ ```shell
193
+ pip3 install huggingface-hub
194
+ ```
195
+
196
+ ```python
197
+ from huggingface_hub import InferenceClient
198
+
199
+ endpoint_url = "https://your-endpoint-url-here"
200
+
201
+ prompt = "Tell me about AI"
202
+ prompt_template=f'''<s>[INST] <<SYS>>
203
+ あなたは役立つアシスタントです。
204
+ <<SYS>>
205
+
206
+ {prompt} [/INST]
207
+ '''
208
+
209
+ client = InferenceClient(endpoint_url)
210
+ response = client.text_generation(prompt,
211
+ max_new_tokens=128,
212
+ do_sample=True,
213
+ temperature=0.7,
214
+ top_p=0.95,
215
+ top_k=40,
216
+ repetition_penalty=1.1)
217
+
218
+ print(f"Model output: ", response)
219
+ ```
220
+ <!-- README_AWQ.md-use-from-tgi end -->
221
+
222
+ <!-- README_AWQ.md-use-from-python start -->
223
+ ## Inference from Python code using AutoAWQ
224
+
225
+ ### Install the AutoAWQ package
226
+
227
+ Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.1.1 or later.
228
+
229
+ ```shell
230
+ pip3 install autoawq
231
+ ```
232
+
233
+ If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead:
234
+
235
+ ```shell
236
+ pip3 uninstall -y autoawq
237
+ git clone https://github.com/casper-hansen/AutoAWQ
238
+ cd AutoAWQ
239
+ pip3 install .
240
+ ```
241
+
242
+ ### AutoAWQ example code
243
+
244
+ ```python
245
+ from awq import AutoAWQForCausalLM
246
+ from transformers import AutoTokenizer
247
+
248
+ model_name_or_path = "TheBloke/japanese-stablelm-instruct-beta-70B-AWQ"
249
+
250
+ # Load tokenizer
251
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=False)
252
+ # Load model
253
+ model = AutoAWQForCausalLM.from_quantized(model_name_or_path, fuse_layers=True,
254
+ trust_remote_code=False, safetensors=True)
255
+
256
+ prompt = "Tell me about AI"
257
+ prompt_template=f'''<s>[INST] <<SYS>>
258
+ あなたは役立つアシスタントです。
259
+ <<SYS>>
260
+
261
+ {prompt} [/INST]
262
+ '''
263
+
264
+ print("*** Running model.generate:")
265
+
266
+ token_input = tokenizer(
267
+ prompt_template,
268
+ return_tensors='pt'
269
+ ).input_ids.cuda()
270
+
271
+ # Generate output
272
+ generation_output = model.generate(
273
+ token_input,
274
+ do_sample=True,
275
+ temperature=0.7,
276
+ top_p=0.95,
277
+ top_k=40,
278
+ max_new_tokens=512
279
+ )
280
+
281
+ # Get the tokens from the output, decode them, print them
282
+ token_output = generation_output[0]
283
+ text_output = tokenizer.decode(token_output)
284
+ print("LLM output: ", text_output)
285
+
286
+ """
287
+ # Inference should be possible with transformers pipeline as well in future
288
+ # But currently this is not yet supported by AutoAWQ (correct as of September 25th 2023)
289
+ from transformers import pipeline
290
+
291
+ print("*** Pipeline:")
292
+ pipe = pipeline(
293
+ "text-generation",
294
+ model=model,
295
+ tokenizer=tokenizer,
296
+ max_new_tokens=512,
297
+ do_sample=True,
298
+ temperature=0.7,
299
+ top_p=0.95,
300
+ top_k=40,
301
+ repetition_penalty=1.1
302
+ )
303
+
304
+ print(pipe(prompt_template)[0]['generated_text'])
305
+ """
306
+ ```
307
+ <!-- README_AWQ.md-use-from-python end -->
308
+
309
+ <!-- README_AWQ.md-compatibility start -->
310
+ ## Compatibility
311
+
312
+ The files provided are tested to work with:
313
+
314
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui) using `Loader: AutoAWQ`.
315
+ - [vLLM](https://github.com/vllm-project/vllm) version 0.2.0 and later.
316
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) version 1.1.0 and later.
317
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) version 0.1.1 and later.
318
+
319
+ <!-- README_AWQ.md-compatibility end -->
320
+
321
+ <!-- footer start -->
322
+ <!-- 200823 -->
323
+ ## Discord
324
+
325
+ For further support, and discussions on these models and AI in general, join us at:
326
+
327
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
328
+
329
+ ## Thanks, and how to contribute
330
+
331
+ Thanks to the [chirper.ai](https://chirper.ai) team!
332
+
333
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
334
+
335
+ 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.
336
+
337
+ 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.
338
+
339
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
340
+
341
+ * Patreon: https://patreon.com/TheBlokeAI
342
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
343
+
344
+ **Special thanks to**: Aemon Algiz.
345
+
346
+ **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
347
+
348
+
349
+ Thank you to all my generous patrons and donaters!
350
+
351
+ And thank you again to a16z for their generous grant.
352
+
353
+ <!-- footer end -->
354
+
355
+ # Original model card: Stability AI's Japanese StableLM Instruct Beta 70B
356
+
357
+
358
+ # Japanese-StableLM-Instruct-Beta-70B
359
+
360
+ ![A cute robot wearing a kimono writes calligraphy with one single brush](./japanese-stablelm-robot.jpg)
361
+
362
+ > A cute robot wearing a kimono writes calligraphy with one single brush — [Stable Diffusion XL](https://clipdrop.co/stable-diffusion)
363
+
364
+ ## Model Description
365
+
366
+ `japanese-stablelm-instruct-beta-70b` is a 70B-parameter decoder-only language model based on [japanese-stablelm-base-beta-70b](https://huggingface.co/stabilityai/japanese-stablelm-base-beta-70b) and further fine tuned on Databricks Dolly-15k, Anthropic HH, and other public data.
367
+
368
+ This model is also available in a [smaller 7b version](https://huggingface.co/stabilityai/japanese-stablelm-instruct-beta-7b), or a [smaller and faster version with a specialized tokenizer](https://huggingface.co/stabilityai/japanese-stablelm-instruct-ja_vocab-beta-7b).
369
+
370
+ ## Usage
371
+
372
+ First install additional dependencies in [requirements.txt](./requirements.txt):
373
+
374
+ ```sh
375
+ pip install -r requirements.txt
376
+ ```
377
+
378
+ Then start generating text with `japanese-stablelm-instruct-beta-70b` by using the following code snippet:
379
+
380
+ ```python
381
+ import torch
382
+ from transformers import AutoTokenizer, AutoModelForCausalLM
383
+
384
+ model_name = "stabilityai/japanese-stablelm-instruct-beta-70b"
385
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
386
+
387
+ # The next line may need to be modified depending on the environment
388
+ model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, low_cpu_mem_usage=True, device_map="auto")
389
+
390
+ def build_prompt(user_query, inputs):
391
+ sys_msg = "<s>[INST] <<SYS>>\nあなたは役立つアシスタントです。\n<<SYS>>\n\n"
392
+ p = sys_msg + user_query + "\n\n" + inputs + " [/INST] "
393
+ return p
394
+
395
+ # Infer with prompt without any additional input
396
+ user_inputs = {
397
+ "user_query": "与えられたことわざの意味を小学生でも分かるように教えてください。",
398
+ "inputs": "情けは人のためならず"
399
+ }
400
+ prompt = build_prompt(**user_inputs)
401
+
402
+ input_ids = tokenizer.encode(
403
+ prompt,
404
+ add_special_tokens=False,
405
+ return_tensors="pt"
406
+ )
407
+
408
+ # this is for reproducibility.
409
+ # feel free to change to get different result
410
+ seed = 23
411
+ torch.manual_seed(seed)
412
+
413
+ tokens = model.generate(
414
+ input_ids.to(device=model.device),
415
+ max_new_tokens=128,
416
+ temperature=0.99,
417
+ top_p=0.95,
418
+ do_sample=True,
419
+ )
420
+
421
+ out = tokenizer.decode(tokens[0], skip_special_tokens=True)
422
+ print(out)
423
+ ```
424
+
425
+ We suggest playing with different generation config (`top_p`, `repetition_penalty` etc) to find the best setup for your tasks. For example, use higher temperature for roleplay task, lower temperature for reasoning.
426
+
427
+ ## Model Details
428
+
429
+ * **Model type**: `japanese-stablelm-instruct-beta-70b` model is an auto-regressive language model based on the Llama2 transformer architecture.
430
+ * **Language(s)**: Japanese
431
+ * **License**: [Llama2 Community License](https://ai.meta.com/llama/license/).
432
+ * **Contact**: For questions and comments about the model, please join [Stable Community Japan](https://discord.gg/StableJP). For future announcements / information about Stability AI models, research, and events, please follow https://twitter.com/StabilityAI_JP.
433
+
434
+ ## Training Dataset
435
+
436
+ The following datasets were used for the instruction training. Note these are Japanese translated versions of the original datasets, shared by [kunishou](https://huggingface.co/kunishou).
437
+
438
+ - [Anthropic HH-RLHF](https://huggingface.co/datasets/kunishou/hh-rlhf-49k-ja)
439
+ - [Databricks Dolly 15-k](https://huggingface.co/datasets/kunishou/databricks-dolly-15k-ja)
440
+ - [OpenAssistant Conversations Dataset](https://huggingface.co/datasets/kunishou/oasst1-89k-ja)
441
+
442
+ ## Use and Limitations
443
+
444
+ ### Intended Use
445
+
446
+ The model is intended to be used by all individuals as a foundation for application-specific fine-tuning without strict limitations on commercial use.
447
+
448
+ ### Limitations and bias
449
+
450
+ The pre-training dataset may have contained offensive or inappropriate content even after applying data cleansing filters which can be reflected in the model generated text. We recommend users exercise reasonable caution when using these models in production systems. Do not use the model for any applications that may cause harm or distress to individuals or groups.
451
+
452
+ ## Authors
453
+ This model was developed by the Research & Development team at Stability AI Japan, and the development was co-led by [Takuya Akiba](https://huggingface.co/iwiwi) and [Meng Lee](https://huggingface.co/leemeng). The members of the team are as follows:
454
+
455
+ - [Meng Lee](https://huggingface.co/leemeng)
456
+ - [Fujiki Nakamura](https://huggingface.co/fujiki)
457
+ - [Makoto Shing](https://huggingface.co/mkshing)
458
+ - [Paul McCann](https://huggingface.co/polm-stability)
459
+ - [Takuya Akiba](https://huggingface.co/iwiwi)
460
+ - [Naoki Orii](https://huggingface.co/mrorii)
461
+
462
+ ## Acknowledgements
463
+
464
+ We thank Meta Research for releasing Llama 2 under an open license for others to build on.
465
+
466
+ We are grateful for the contributions of the EleutherAI Polyglot-JA team in helping us to collect a large amount of pre-training data in Japanese. Polyglot-JA members includes Hyunwoong Ko (Project Lead), Fujiki Nakamura (originally started this project when he commited to the Polyglot team), Yunho Mo, Minji Jung, KeunSeok Im, and Su-Kyeong Jang.
467
+
468
+ We are also appreciative of [AI Novelist/Sta (Bit192, Inc.)](https://ai-novel.com/index.php) and the numerous contributors from [Stable Community Japan](https://discord.gg/VPrcE475HB) for assisting us in gathering a large amount of high-quality Japanese textual data for model training.
469
+