aashish1904 commited on
Commit
16eda7c
·
verified ·
1 Parent(s): c85a682

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +118 -0
README.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ language:
5
+ - en
6
+ - ja
7
+ license: apache-2.0
8
+ library_name: transformers
9
+ pipeline_tag: text-generation
10
+
11
+ ---
12
+
13
+ [![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
14
+
15
+
16
+ # QuantFactory/plamo-13b-GGUF
17
+ This is quantized version of [pfnet/plamo-13b](https://huggingface.co/pfnet/plamo-13b) created using llama.cpp
18
+
19
+ # Original Model Card
20
+
21
+
22
+ # PLaMo-13B
23
+
24
+ ## Model Description
25
+ PLaMo-13B is a LLaMA-based 13B model pre-trained on English and Japanese open datasets, developed by Preferred Networks, Inc.
26
+ PLaMo-13B is released under Apache v2.0 license.
27
+
28
+ [PLaMo-13B Release blog (Japanese)](https://tech.preferred.jp/ja/blog/llm-plamo/)
29
+
30
+ ## Usage
31
+
32
+ ### Requirements
33
+
34
+ - numpy
35
+ - sentencepiece
36
+ - torch
37
+ - transformers
38
+
39
+ ### Use a pipeline as a high-level helper
40
+ ```python
41
+ import transformers
42
+ pipeline = transformers.pipeline("text-generation", model="pfnet/plamo-13b", trust_remote_code=True)
43
+ print(pipeline("The future of artificial intelligence technology is ", max_new_tokens=32))
44
+ ```
45
+
46
+ ### Load model directly
47
+ ```python
48
+ from transformers import AutoTokenizer, AutoModelForCausalLM
49
+ tokenizer = AutoTokenizer.from_pretrained("pfnet/plamo-13b", trust_remote_code=True)
50
+ model = AutoModelForCausalLM.from_pretrained("pfnet/plamo-13b", trust_remote_code=True)
51
+ text = "これからの人工知能技術は"
52
+ input_ids = tokenizer(text, return_tensors="pt").input_ids
53
+ generated_tokens = model.generate(
54
+ inputs=input_ids,
55
+ max_new_tokens=32,
56
+ do_sample=True,
57
+ top_k=50,
58
+ top_p=0.95,
59
+ temperature=1.0,
60
+ )[0]
61
+ generated_text = tokenizer.decode(generated_tokens)
62
+ print(generated_text)
63
+ ```
64
+
65
+ ## Model Details
66
+
67
+ - Model size: 13B
68
+ - Trained tokens: 1.5T tokens (English: 1.32T tokens, Japanese: 0.18T tokens)
69
+ - Context length: 4096
70
+ - Developed by: Preferred Networks, Inc
71
+ - Model type: Causal decoder-only
72
+ - Language(s): English, Japanese
73
+ - License: Apache v2.0
74
+
75
+ ## Training Dataset
76
+
77
+ ### English
78
+
79
+ - C4 - English
80
+ - Project Gutenberg
81
+ - RedPajama - Arxiv
82
+ - RedPajama - CommonCrawl - English
83
+ - RedPajama - Github
84
+ - RedPajama - StackExchange
85
+ - RedPajama - Wikipedia
86
+
87
+ ### Japanese
88
+
89
+ - mC4 - Japanese
90
+ - Wikipedia - Japanese
91
+
92
+ ## Tokenizer
93
+ PLaMo-13B uses sentencepiece tokenizer which is trained on a subset of the datasets for model pre-training.
94
+
95
+ ## Bias, Risks, and Limitations
96
+ PLaMo-13B is a new technology that carries risks with use. Testing conducted to date has been in English and Japanese, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, PLaMo-13B’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of PLaMo-13B, developers should perform safety testing and tuning tailored to their specific applications of the model.
97
+
98
+ ## How to cite
99
+ ```tex
100
+ @online{PLaMo2023Introducing,
101
+ author = {Preferred Networks, Inc},
102
+ title = {PLaMo-13B},
103
+ year = {2023},
104
+ url = {https://huggingface.co/pfnet/plamo-13b},
105
+ urldate = {2023-09-28}
106
+ }
107
+ ```
108
+
109
+ ## Citations
110
+ ```tex
111
+ @article{touvron2023llama,
112
+ title={LLaMA: Open and Efficient Foundation Language Models},
113
+ author={Touvron, Hugo and Lavril, Thibaut and Izacard, Gautier and Martinet, Xavier and Lachaux, Marie-Anne and Lacroix, Timoth{\'e}e and Rozi{\`e}re, Baptiste and Goyal, Naman and Hambro, Eric and Azhar, Faisal and Rodriguez, Aurelien and Joulin, Armand and Grave, Edouard and Lample, Guillaume},
114
+ journal={arXiv preprint arXiv:2302.13971},
115
+ year={2023}
116
+ }
117
+ ```
118
+