Emiliyan Pavlov
commited on
Commit
•
95218a5
0
Parent(s):
Initial commit
Browse files- .gitattributes +49 -0
- BgGPT-Gemma-2-9B-IT-v1.0.F16.gguf +3 -0
- BgGPT-Gemma-2-9B-IT-v1.0.Q4_K_M.gguf +3 -0
- BgGPT-Gemma-2-9B-IT-v1.0.Q4_K_S.gguf +3 -0
- BgGPT-Gemma-2-9B-IT-v1.0.Q5_K_M.gguf +3 -0
- BgGPT-Gemma-2-9B-IT-v1.0.Q5_K_S.gguf +3 -0
- BgGPT-Gemma-2-9B-IT-v1.0.Q6_K.gguf +3 -0
- BgGPT-Gemma-2-9B-IT-v1.0.Q8_0.gguf +3 -0
- LICENSE +78 -0
- README.md +61 -0
.gitattributes
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
BgGPT-Gemma-2-9B-Instruct.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
BgGPT-Gemma-2-9B-Instruct.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
38 |
+
BgGPT-Gemma-2-9B-Instruct.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
39 |
+
BgGPT-Gemma-2-9B-Instruct.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
40 |
+
BgGPT-Gemma-2-9B-Instruct.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
41 |
+
BgGPT-Gemma-2-9B-Instruct.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
42 |
+
BgGPT-Gemma-2-9B-Instruct.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
43 |
+
BgGPT-Gemma-2-9B-IT-v1.0.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
44 |
+
BgGPT-Gemma-2-9B-IT-v1.0.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
45 |
+
BgGPT-Gemma-2-9B-IT-v1.0.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
46 |
+
BgGPT-Gemma-2-9B-IT-v1.0.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
47 |
+
BgGPT-Gemma-2-9B-IT-v1.0.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
48 |
+
BgGPT-Gemma-2-9B-IT-v1.0.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
49 |
+
BgGPT-Gemma-2-9B-IT-v1.0.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
BgGPT-Gemma-2-9B-IT-v1.0.F16.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a7c2f3fb0f2c72695605ba78ce92f75a04c57973b90f7334072ec9c4832ab5d9
|
3 |
+
size 18490680160
|
BgGPT-Gemma-2-9B-IT-v1.0.Q4_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a44a1def2b97273f4efc70244d3f2abc2d385c57122a23abb816d25535aef999
|
3 |
+
size 5761057632
|
BgGPT-Gemma-2-9B-IT-v1.0.Q4_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b9ea7b3f36ee5b79bd1418d13675776b567cbcd10a55856cc8a76e238faf3897
|
3 |
+
size 5478925152
|
BgGPT-Gemma-2-9B-IT-v1.0.Q5_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5f469186246e098f6f5177e668587b4fb56928f01e7071631d49d6fac9cbb3a4
|
3 |
+
size 6647366496
|
BgGPT-Gemma-2-9B-IT-v1.0.Q5_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d12241105252c90ce13752161a147987b12522c412043e070650d042009d7cb5
|
3 |
+
size 6483592032
|
BgGPT-Gemma-2-9B-IT-v1.0.Q6_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e5141277d0fe53d1cfa23c9328333030be99a87131535fc5a8800986e1f9930f
|
3 |
+
size 7589069664
|
BgGPT-Gemma-2-9B-IT-v1.0.Q8_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5e02a0f4cf20c9a7e053712c8dc622b42ce70a449258ef515d651bda35b110f7
|
3 |
+
size 9827148640
|
LICENSE
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Gemma Terms of Use
|
2 |
+
|
3 |
+
Last modified: April 1, 2024
|
4 |
+
|
5 |
+
By using, reproducing, modifying, distributing, performing or displaying any portion or element of Gemma, Model Derivatives including via any Hosted Service, (each as defined below) (collectively, the "Gemma Services") or otherwise accepting the terms of this Agreement, you agree to be bound by this Agreement.
|
6 |
+
Section 1: DEFINITIONS
|
7 |
+
1.1 Definitions
|
8 |
+
|
9 |
+
(a) "Agreement" or "Gemma Terms of Use" means these terms and conditions that govern the use, reproduction, Distribution or modification of the Gemma Services and any terms and conditions incorporated by reference.
|
10 |
+
|
11 |
+
(b) "Distribution" or "Distribute" means any transmission, publication, or other sharing of Gemma or Model Derivatives to a third party, including by providing or making Gemma or its functionality available as a hosted service via API, web access, or any other electronic or remote means ("Hosted Service").
|
12 |
+
|
13 |
+
(c) "Gemma" means the set of machine learning language models, trained model weights and parameters identified at ai.google.dev/gemma, regardless of the source that you obtained it from.
|
14 |
+
|
15 |
+
(d) "Google" means Google LLC.
|
16 |
+
|
17 |
+
(e) "Model Derivatives" means all (i) modifications to Gemma, (ii) works based on Gemma, or (iii) any other machine learning model which is created by transfer of patterns of the weights, parameters, operations, or Output of Gemma, to that model in order to cause that model to perform similarly to Gemma, including distillation methods that use intermediate data representations or methods based on the generation of synthetic data Outputs by Gemma for training that model. For clarity, Outputs are not deemed Model Derivatives.
|
18 |
+
|
19 |
+
(f) "Output" means the information content output of Gemma or a Model Derivative that results from operating or otherwise using Gemma or the Model Derivative, including via a Hosted Service.
|
20 |
+
1.2
|
21 |
+
|
22 |
+
As used in this Agreement, "including" means "including without limitation".
|
23 |
+
Section 2: ELIGIBILITY AND USAGE
|
24 |
+
2.1 Eligibility
|
25 |
+
|
26 |
+
You represent and warrant that you have the legal capacity to enter into this Agreement (including being of sufficient age of consent). If you are accessing or using any of the Gemma Services for or on behalf of a legal entity, (a) you are entering into this Agreement on behalf of yourself and that legal entity, (b) you represent and warrant that you have the authority to act on behalf of and bind that entity to this Agreement and (c) references to "you" or "your" in the remainder of this Agreement refers to both you (as an individual) and that entity.
|
27 |
+
2.2 Use
|
28 |
+
|
29 |
+
You may use, reproduce, modify, Distribute, perform or display any of the Gemma Services only in accordance with the terms of this Agreement, and must not violate (or encourage or permit anyone else to violate) any term of this Agreement.
|
30 |
+
Section 3: DISTRIBUTION AND RESTRICTIONS
|
31 |
+
3.1 Distribution and Redistribution
|
32 |
+
|
33 |
+
You may reproduce or Distribute copies of Gemma or Model Derivatives if you meet all of the following conditions:
|
34 |
+
|
35 |
+
You must include the use restrictions referenced in Section 3.2 as an enforceable provision in any agreement (e.g., license agreement, terms of use, etc.) governing the use and/or distribution of Gemma or Model Derivatives and you must provide notice to subsequent users you Distribute to that Gemma or Model Derivatives are subject to the use restrictions in Section 3.2.
|
36 |
+
You must provide all third party recipients of Gemma or Model Derivatives a copy of this Agreement.
|
37 |
+
You must cause any modified files to carry prominent notices stating that you modified the files.
|
38 |
+
All Distributions (other than through a Hosted Service) must be accompanied by a "Notice" text file that contains the following notice: "Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms".
|
39 |
+
|
40 |
+
You may add your own intellectual property statement to your modifications and, except as set forth in this Section, may provide additional or different terms and conditions for use, reproduction, or Distribution of your modifications, or for any such Model Derivatives as a whole, provided your use, reproduction, modification, Distribution, performance, and display of Gemma otherwise complies with the terms and conditions of this Agreement. Any additional or different terms and conditions you impose must not conflict with the terms of this Agreement.
|
41 |
+
3.2 Use Restrictions
|
42 |
+
|
43 |
+
You must not use any of the Gemma Services:
|
44 |
+
|
45 |
+
for the restricted uses set forth in the Gemma Prohibited Use Policy at ai.google.dev/gemma/prohibited_use_policy ("Prohibited Use Policy"), which is hereby incorporated by reference into this Agreement; or
|
46 |
+
in violation of applicable laws and regulations.
|
47 |
+
|
48 |
+
To the maximum extent permitted by law, Google reserves the right to restrict (remotely or otherwise) usage of any of the Gemma Services that Google reasonably believes are in violation of this Agreement.
|
49 |
+
3.3 Generated Output
|
50 |
+
|
51 |
+
Google claims no rights in Outputs you generate using Gemma. You and your users are solely responsible for Outputs and their subsequent uses.
|
52 |
+
Section 4: ADDITIONAL PROVISIONS
|
53 |
+
4.1 Updates
|
54 |
+
|
55 |
+
Google may update Gemma from time to time.
|
56 |
+
4.2 Trademarks
|
57 |
+
|
58 |
+
Nothing in this Agreement grants you any rights to use Google's trademarks, trade names, logos or to otherwise suggest endorsement or misrepresent the relationship between you and Google. Google reserves any rights not expressly granted herein.
|
59 |
+
4.3 DISCLAIMER OF WARRANTY
|
60 |
+
|
61 |
+
UNLESS REQUIRED BY APPLICABLE LAW, THE GEMMA SERVICES, AND OUTPUTS, ARE PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING, REPRODUCING, MODIFYING, PERFORMING, DISPLAYING OR DISTRIBUTING ANY OF THE GEMMA SERVICES OR OUTPUTS AND ASSUME ANY AND ALL RISKS ASSOCIATED WITH YOUR USE OR DISTRIBUTION OF ANY OF THE GEMMA SERVICES OR OUTPUTS AND YOUR EXERCISE OF RIGHTS AND PERMISSIONS UNDER THIS AGREEMENT.
|
62 |
+
4.4 LIMITATION OF LIABILITY
|
63 |
+
|
64 |
+
TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY, CONTRACT, OR OTHERWISE, UNLESS REQUIRED BY APPLICABLE LAW, SHALL GOOGLE OR ITS AFFILIATES BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, EXEMPLARY, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR LOST PROFITS OF ANY KIND ARISING FROM THIS AGREEMENT OR RELATED TO, ANY OF THE GEMMA SERVICES OR OUTPUTS EVEN IF GOOGLE OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
65 |
+
4.5 Term, Termination, and Survival
|
66 |
+
|
67 |
+
The term of this Agreement will commence upon your acceptance of this Agreement (including acceptance by your use, modification, or Distribution, reproduction, performance or display of any portion or element of the Gemma Services) and will continue in full force and effect until terminated in accordance with the terms of this Agreement. Google may terminate this Agreement if you are in breach of any term of this Agreement. Upon termination of this Agreement, you must delete and cease use and Distribution of all copies of Gemma and Model Derivatives in your possession or control. Sections 1, 2.1, 3.3, 4.2 to 4.9 shall survive the termination of this Agreement.
|
68 |
+
4.6 Governing Law and Jurisdiction
|
69 |
+
|
70 |
+
This Agreement will be governed by the laws of the State of California without regard to choice of law principles. The UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement. The state and federal courts of Santa Clara County, California shall have exclusive jurisdiction of any dispute arising out of this Agreement.
|
71 |
+
4.7 Severability
|
72 |
+
|
73 |
+
If any provision of this Agreement is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.
|
74 |
+
4.8 Entire Agreement
|
75 |
+
|
76 |
+
This Agreement states all the terms agreed between the parties and supersedes all other agreements between the parties as of the date of acceptance relating to its subject matter.
|
77 |
+
4.9 No Waiver
|
78 |
+
Google will not be treated as having waived any rights by not exercising (or delaying the exercise of) any rights under this Agreement.
|
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: gemma
|
3 |
+
---
|
4 |
+
# BgGPT-Gemma-2-9B-IT-v1.0-GGUF
|
5 |
+
|
6 |
+
BgGPT is distributed under [Gemma Terms of Use](https://ai.google.dev/gemma/terms).
|
7 |
+
|
8 |
+
This repo contains the GGUF format model files for [INSAIT-Institute/BgGPT-Gemma-2-9B-IT-v1.0](https://huggingface.co/INSAIT-Institute/BgGPT-Gemma-2-9B-IT-v1.0).
|
9 |
+
|
10 |
+
## Quick Start using Python
|
11 |
+
|
12 |
+
Install the required package:
|
13 |
+
```bash
|
14 |
+
pip install llama-cpp-python
|
15 |
+
```
|
16 |
+
|
17 |
+
Example chat completion:
|
18 |
+
|
19 |
+
```python
|
20 |
+
from llama_cpp import Llama
|
21 |
+
|
22 |
+
llm = Llama(
|
23 |
+
model_path="path/to/your/model.gguf",
|
24 |
+
n_ctx=8192,
|
25 |
+
penalize_nl=False
|
26 |
+
)
|
27 |
+
|
28 |
+
messages = [{"role": "user", "content": "Кога е основан Софийският университет?"}]
|
29 |
+
response = llm.create_chat_completion(
|
30 |
+
messages=messages,
|
31 |
+
max_tokens=2048, # Choose maximum generated tokens
|
32 |
+
temperature=0.1,
|
33 |
+
top_p=0.9,
|
34 |
+
repeat_penalty=1.0,
|
35 |
+
stop=["<eos>", "<end_of_turn>"]
|
36 |
+
)
|
37 |
+
|
38 |
+
|
39 |
+
```
|
40 |
+
|
41 |
+
Example normal completion:
|
42 |
+
|
43 |
+
```python
|
44 |
+
from llama_cpp import Llama
|
45 |
+
|
46 |
+
llm = Llama(
|
47 |
+
model_path="path/to/your/model.gguf",
|
48 |
+
n_ctx=8192,
|
49 |
+
penalize_nl=False
|
50 |
+
)
|
51 |
+
|
52 |
+
prompt = "<bos><start_of_turn>user\nКога е основан Софийският университет?\n<end_of_turn>\n<start_of_turn>model\n"
|
53 |
+
response = llm(
|
54 |
+
prompt,
|
55 |
+
max_tokens=2048, # Choose maximum generated tokens
|
56 |
+
temperature=0.1,
|
57 |
+
top_p=0.9,
|
58 |
+
repeat_penalty=1.0,
|
59 |
+
stop=["<eos>","<end_of_turn>"]
|
60 |
+
)
|
61 |
+
```
|