Initial GGML model commit
Browse files
README.md
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
inference: false
|
3 |
+
language:
|
4 |
+
- hu
|
5 |
+
license: cc-by-nc-4.0
|
6 |
+
model_creator: NYTK
|
7 |
+
model_link: https://huggingface.co/NYTK/PULI-GPT-3SX
|
8 |
+
model_name: PULI GPT 3SX
|
9 |
+
model_type: gpt-neox
|
10 |
+
quantized_by: TheBloke
|
11 |
+
tags:
|
12 |
+
- text-generation
|
13 |
+
- puli
|
14 |
+
widget:
|
15 |
+
- text: "Elmes\xE9lek egy t\xF6rt\xE9netet a nyelvtechnol\xF3gi\xE1r\xF3l."
|
16 |
+
---
|
17 |
+
|
18 |
+
<!-- header start -->
|
19 |
+
<div style="width: 100%;">
|
20 |
+
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
21 |
+
</div>
|
22 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
23 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
24 |
+
<p><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p>
|
25 |
+
</div>
|
26 |
+
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
27 |
+
<p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
|
28 |
+
</div>
|
29 |
+
</div>
|
30 |
+
<!-- header end -->
|
31 |
+
|
32 |
+
# PULI GPT 3SX - GGML
|
33 |
+
- Model creator: [NYTK](https://huggingface.co/NYTK)
|
34 |
+
- Original model: [PULI GPT 3SX](https://huggingface.co/NYTK/PULI-GPT-3SX)
|
35 |
+
|
36 |
+
## Description
|
37 |
+
|
38 |
+
This repo contains GPT-NeoX GGML format model files for [NYTK's PULI GPT 3SX](https://huggingface.co/NYTK/PULI-GPT-3SX).
|
39 |
+
|
40 |
+
Please note that these GGMLs are **not compatible with llama.cpp, text-generation-webui or llama-cpp-python**. Please see below for a list of tools that work with this GGML model.
|
41 |
+
|
42 |
+
## Repositories available
|
43 |
+
|
44 |
+
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/PULI-GPT-3SX-GPTQ)
|
45 |
+
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/PULI-GPT-3SX-GGML)
|
46 |
+
* [NYTK's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/NYTK/PULI-GPT-3SX)
|
47 |
+
|
48 |
+
## Prompt template: None
|
49 |
+
|
50 |
+
```
|
51 |
+
{prompt}
|
52 |
+
```
|
53 |
+
|
54 |
+
<!-- compatibility_ggml start -->
|
55 |
+
## Compatibilty
|
56 |
+
|
57 |
+
These files are **not** compatible with llama.cpp, text-generation-webui or llama-cpp-python.
|
58 |
+
|
59 |
+
They can be used with:
|
60 |
+
* [KoboldCpp](https://github.com/LostRuins/koboldcpp), a powerful inference engine based on llama.cpp with full GPU acceleration and good UI.
|
61 |
+
* [LM Studio](https://lmstudio.ai/), a fully featured local GUI for GGML inference on Windows and macOS.
|
62 |
+
* [LoLLMs-WebUI](https://github.com/ParisNeo/LoLLMs-WebUI) a web UI which supports nearly every backend out there. Use ctransformers backend for support for this model.
|
63 |
+
* [ctransformers](https://github.com/marella/ctransformers): for use in Python code, including LangChain support.
|
64 |
+
* [rustformers' llm](https://github.com/rustformers/llm)
|
65 |
+
* The example `gpt-neox` binary provided with [ggml](https://github.com/ggerganov/ggml)
|
66 |
+
|
67 |
+
As other options become available I will endeavour to update them here (do let me know in the Community tab if I've missed something!)
|
68 |
+
|
69 |
+
## Tutorial for using LoLLMs-WebUI:
|
70 |
+
|
71 |
+
* [Video tutorial, by LoLLMs-WebUI's author **ParisNeo**](https://youtu.be/vBU1b5n0GMU)
|
72 |
+
<!-- compatibility_ggml end -->
|
73 |
+
|
74 |
+
## Provided files
|
75 |
+
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|
76 |
+
| ---- | ---- | ---- | ---- | ---- | ----- |
|
77 |
+
| [puli-gpt-3sx.ggmlv1.q4_0.bin](https://huggingface.co/TheBloke/PULI-GPT-3SX-GGML/blob/main/puli-gpt-3sx.ggmlv1.q4_0.bin) | q4_0 | 4 | 3.86 GB| 6.36 GB | 4-bit. |
|
78 |
+
| [puli-gpt-3sx.ggmlv1.q4_1.bin](https://huggingface.co/TheBloke/PULI-GPT-3SX-GGML/blob/main/puli-gpt-3sx.ggmlv1.q4_1.bin) | q4_1 | 4 | 4.29 GB| 6.79 GB | 4-bit. Higher accuracy than q4_0 but not as high as q5_0. However has quicker inference than q5 models. |
|
79 |
+
| [puli-gpt-3sx.ggmlv1.q5_0.bin](https://huggingface.co/TheBloke/PULI-GPT-3SX-GGML/blob/main/puli-gpt-3sx.ggmlv1.q5_0.bin) | q5_0 | 5 | 4.72 GB| 7.22 GB | 5-bit. Higher accuracy, higher resource usage and slower inference. |
|
80 |
+
| [puli-gpt-3sx.ggmlv1.q5_1.bin](https://huggingface.co/TheBloke/PULI-GPT-3SX-GGML/blob/main/puli-gpt-3sx.ggmlv1.q5_1.bin) | q5_1 | 5 | 5.15 GB| 7.65 GB | 5-bit. Even higher accuracy, resource usage and slower inference. |
|
81 |
+
| [puli-gpt-3sx.ggmlv1.q8_0.bin](https://huggingface.co/TheBloke/PULI-GPT-3SX-GGML/blob/main/puli-gpt-3sx.ggmlv1.q8_0.bin) | q8_0 | 8 | 7.29 GB| 9.79 GB | 8-bit. Almost indistinguishable from float16. High resource use and slow. Not recommended for most users. |
|
82 |
+
|
83 |
+
**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.
|
84 |
+
|
85 |
+
<!-- footer start -->
|
86 |
+
## Discord
|
87 |
+
|
88 |
+
For further support, and discussions on these models and AI in general, join us at:
|
89 |
+
|
90 |
+
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
91 |
+
|
92 |
+
## Thanks, and how to contribute.
|
93 |
+
|
94 |
+
Thanks to the [chirper.ai](https://chirper.ai) team!
|
95 |
+
|
96 |
+
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.
|
97 |
+
|
98 |
+
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.
|
99 |
+
|
100 |
+
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
|
101 |
+
|
102 |
+
* Patreon: https://patreon.com/TheBlokeAI
|
103 |
+
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
104 |
+
|
105 |
+
**Special thanks to**: Luke from CarbonQuill, Aemon Algiz.
|
106 |
+
|
107 |
+
**Patreon special mentions**: Ajan Kanaga, David Ziegler, Raymond Fosdick, SuperWojo, Sam, webtim, Steven Wood, knownsqashed, Tony Hughes, Junyu Yang, J, Olakabola, Dan Guido, Stephen Murray, John Villwock, vamX, William Sang, Sean Connelly, LangChain4j, Olusegun Samson, Fen Risland, Derek Yates, Karl Bernard, transmissions 11, Trenton Dambrowitz, Pieter, Preetika Verma, Swaroop Kallakuri, Andrey, Slarti, Jonathan Leane, Michael Levine, Kalila, Joseph William Delisle, Rishabh Srivastava, Deo Leter, Luke Pendergrass, Spencer Kim, Geoffrey Montalvo, Thomas Belote, Jeffrey Morgan, Mandus, ya boyyy, Matthew Berman, Magnesian, Ai Maven, senxiiz, Alps Aficionado, Luke @flexchar, Raven Klaugh, Imad Khwaja, Gabriel Puliatti, Johann-Peter Hartmann, usrbinkat, Spiking Neurons AB, Artur Olbinski, chris gileta, danny, Willem Michiel, WelcomeToTheClub, Deep Realms, alfie_i, Dave, Leonard Tan, NimbleBox.ai, Randy H, Daniel P. Andersen, Pyrater, Will Dee, Elle, Space Cruiser, Gabriel Tamborski, Asp the Wyvern, Illia Dulskyi, Nikolai Manek, Sid, Brandon Frisco, Nathan LeClaire, Edmond Seymore, Enrico Ros, Pedro Madruga, Eugene Pentland, John Detwiler, Mano Prime, Stanislav Ovsiannikov, Alex, Vitor Caleffi, K, biorpg, Michael Davis, Lone Striker, Pierre Kircher, theTransient, Fred von Graf, Sebastain Graf, Vadim, Iucharbius, Clay Pascal, Chadd, Mesiah Bishop, terasurfer, Rainer Wilmers, Alexandros Triantafyllidis, Stefan Sabev, Talal Aujan, Cory Kujawski, Viktor Bowallius, subjectnull, ReadyPlayerEmma, zynix
|
108 |
+
|
109 |
+
|
110 |
+
Thank you to all my generous patrons and donaters!
|
111 |
+
|
112 |
+
<!-- footer end -->
|
113 |
+
|
114 |
+
# Original model card: NYTK's PULI GPT 3SX
|
115 |
+
|
116 |
+
|
117 |
+
# PULI GPT-3SX (6.7 billion parameter)
|
118 |
+
|
119 |
+
For further details, see [our demo site](https://juniper.nytud.hu/demo/puli).
|
120 |
+
|
121 |
+
- Hungarian GPT-NeoX model (6.7 billion parameter)
|
122 |
+
- Trained with EleutherAI's GPT-NeoX [github](https://github.com/EleutherAI/gpt-neox)
|
123 |
+
- Dataset: 36.3 billion words
|
124 |
+
- Checkpoint: 150 000 steps
|
125 |
+
|
126 |
+
## Limitations
|
127 |
+
|
128 |
+
- max_seq_length = 2048
|
129 |
+
|
130 |
+
|
131 |
+
## Citation
|
132 |
+
If you use this model, please cite the following paper:
|
133 |
+
|
134 |
+
```
|
135 |
+
@inproceedings {yang-puli,
|
136 |
+
title = {Jönnek a nagyok! BERT-Large, GPT-2 és GPT-3 nyelvmodellek magyar nyelvre},
|
137 |
+
booktitle = {XIX. Magyar Számítógépes Nyelvészeti Konferencia (MSZNY 2023)},
|
138 |
+
year = {2023},
|
139 |
+
publisher = {Szegedi Tudományegyetem, Informatikai Intézet},
|
140 |
+
address = {Szeged, Hungary},
|
141 |
+
author = {Yang, Zijian Győző and Dodé, Réka and Ferenczi, Gergő and Héja, Enikő and Jelencsik-Mátyus, Kinga and Kőrös, Ádám and Laki, László János and Ligeti-Nagy, Noémi and Vadász, Noémi and Váradi, Tamás},
|
142 |
+
pages = {247--262}
|
143 |
+
}
|
144 |
+
```
|
145 |
+
|
146 |
+
## Usage
|
147 |
+
|
148 |
+
```python
|
149 |
+
from transformers import GPTNeoXForCausalLM, AutoTokenizer
|
150 |
+
|
151 |
+
model = GPTNeoXForCausalLM.from_pretrained("NYTK/PULI-GPT-3SX")
|
152 |
+
tokenizer = AutoTokenizer.from_pretrained("NYTK/PULI-GPT-3SX")
|
153 |
+
prompt = "Elmesélek egy történetet a nyelvtechnológiáról."
|
154 |
+
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
|
155 |
+
|
156 |
+
gen_tokens = model.generate(
|
157 |
+
input_ids,
|
158 |
+
do_sample=True,
|
159 |
+
temperature=0.9,
|
160 |
+
max_length=100,
|
161 |
+
)
|
162 |
+
|
163 |
+
gen_text = tokenizer.batch_decode(gen_tokens)[0]
|
164 |
+
print(gen_text)
|
165 |
+
```
|
166 |
+
## Usage with pipeline
|
167 |
+
|
168 |
+
```python
|
169 |
+
from transformers import pipeline, GPTNeoXForCausalLM, AutoTokenizer
|
170 |
+
|
171 |
+
model = GPTNeoXForCausalLM.from_pretrained("NYTK/PULI-GPT-3SX")
|
172 |
+
tokenizer = AutoTokenizer.from_pretrained("NYTK/PULI-GPT-3SX")
|
173 |
+
prompt = "Elmesélek egy történetet a nyelvtechnológiáról."
|
174 |
+
generator = pipeline(task="text-generation", model=model, tokenizer=tokenizer)
|
175 |
+
|
176 |
+
print(generator(prompt)[0]["generated_text"])
|
177 |
+
```
|