初始化项目,由ModelHub XC社区提供模型
Model: s3dev-ai/gemma-3-4b-it-gguf Source: Original Platform
This commit is contained in:
41
.gitattributes
vendored
Normal file
41
.gitattributes
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.model filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
gemma-3-4b-it-F16.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
gemma-3-4b-it-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
gemma-3-4b-it-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
gemma-3-4b-it-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
gemma-3-4b-it-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
gemma-3-4b-it-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
77
README.md
Normal file
77
README.md
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
---
|
||||||
|
base_model:
|
||||||
|
- google/gemma-3-4b-it
|
||||||
|
language:
|
||||||
|
- en
|
||||||
|
model_creator: Google
|
||||||
|
model_name: gemma-3-4b-it
|
||||||
|
model_type: llama
|
||||||
|
quantized_by: s3dev-ai
|
||||||
|
tags:
|
||||||
|
- text-generation
|
||||||
|
---
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
|
||||||
|
This model repository provides various quantisations of the following [base model](https://huggingface.co/google/gemma-3-4b-it), in GGUF format.
|
||||||
|
- google/gemma-3-4b-it
|
||||||
|
|
||||||
|
# Model Description
|
||||||
|
|
||||||
|
For a full model description, please refer to the [base model's](https://huggingface.co/google/gemma-3-4b-it) card.
|
||||||
|
|
||||||
|
This model, and subsequent quantisations, have been converted directly from the author's base model *unaltered*.
|
||||||
|
|
||||||
|
## How are the GGUF files created?
|
||||||
|
After cloning the author's original base model repository, [`llama.cpp`](https://github.com/ggml-org/llama.cpp) is used to convert the model to GGUF format, using `--outtype=f16` to preserve the original model's 16-bit fidelity.
|
||||||
|
|
||||||
|
Finally, for each subsequent quantisation level, `llama.cpp`'s `llama-quantize` executable is called using the F16 GGUF file as the source file.
|
||||||
|
|
||||||
|
# Quantisation
|
||||||
|
The purpose of this repository is to provide *unaltered* quantisations of the author's base model. This section is designed to help the user visualise the difference in quantisation levels, in efforts to assist in model (quantisation) selection.
|
||||||
|
|
||||||
|
## Comparison Statistics
|
||||||
|
To aid a user in model/quantisation selection, the team has created the following statistics specifically for comparing the similarity scores across quantisation runs.
|
||||||
|
|
||||||
|
The dataset against which each run was conducted is composed of 175 question/answer pairs, divided amongst 7 topics, specifically designed to test a quantisation's processing ability. The test dataset was created by Mistral Large (via [Le Chat](https://chat.mistral.ai/chat)) using prompts explicitly stating the requirement for the question/answer pairs to be designed for Mistral model quantisation testing.
|
||||||
|
|
||||||
|
The similarity scores used by these statistics were calculated as the cosine similarity between the embedding of the 'gold standard' answer provided in the dataset, and the embedding of the response from the quantised model. The embedding model used in these tests is the [all-MiniLM-L6-v2 Q8_0](https://huggingface.co/s3dev-ai/all-MiniLM-L6-v2-gguf).
|
||||||
|
|
||||||
|
### Range
|
||||||
|
The range graph below illustrates how the range of similarity scores varies amongst the quantisation levels. Included in the range stats are the:
|
||||||
|
|
||||||
|
- Minimum scores
|
||||||
|
- Maximum scores
|
||||||
|
- Mean scores
|
||||||
|
- Score distribution (KDE)
|
||||||
|
- Outliers
|
||||||
|
|
||||||
|
<!-- Range image -->
|
||||||
|
<div align="center">
|
||||||
|
<img src="imgs/gemma-3-4b-range.png" alt="Stats Graph: Range" width="90%">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
### Mean
|
||||||
|
The mean graph below illustrates how the mean similarity scores (when grouped by 'topic') vary amongst the quantisation levels.
|
||||||
|
|
||||||
|
<!-- Mean image -->
|
||||||
|
<div align="center">
|
||||||
|
<img src="imgs/gemma-3-4b-mean.png" alt="Stats Graph: Mean" width="90%">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
### Standard Deviation
|
||||||
|
The standard deviation graph below illustrates the how spread of similarity scores vary amongst the quantisation levels, when grouped by the test dataset's 'topic' categories.
|
||||||
|
|
||||||
|
<!-- StdDev image -->
|
||||||
|
<div align="center">
|
||||||
|
<img src="imgs/gemma-3-4b-stddev.png" alt="Stats Graph: StdDev" width="90%">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
### Kernel Density Estimate
|
||||||
|
The KDE graph below illustrates the how distribution of similarity scores vary amongst the quantisation levels.
|
||||||
|
|
||||||
|
<!-- KDE image -->
|
||||||
|
<div align="center">
|
||||||
|
<img src="imgs/gemma-3-4b-kde.png" alt="Stats Graph: KDE" width="90%">
|
||||||
|
</div>
|
||||||
|
|
||||||
3
gemma-3-4b-it-F16.gguf
Normal file
3
gemma-3-4b-it-F16.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:99e0175169e513ad13f9bba7e8268bb28272e849b9f9974b3c0d7426e347ce6d
|
||||||
|
size 7767803776
|
||||||
3
gemma-3-4b-it-Q2_K.gguf
Normal file
3
gemma-3-4b-it-Q2_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:29da515aa72303b5a1621b97ab5e64d95d743f130cff57c3029b17ade7238c31
|
||||||
|
size 1729164416
|
||||||
3
gemma-3-4b-it-Q4_K_M.gguf
Normal file
3
gemma-3-4b-it-Q4_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:063cd62b216ef6b3da7ec726d28cb7f77facfd7d4d53948df7932ef607871306
|
||||||
|
size 2489894016
|
||||||
3
gemma-3-4b-it-Q5_K_M.gguf
Normal file
3
gemma-3-4b-it-Q5_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:24c98597c0a37d90492dc1447132c3cbda615981a3352167628c9728d1e803d1
|
||||||
|
size 2829698176
|
||||||
3
gemma-3-4b-it-Q6_K.gguf
Normal file
3
gemma-3-4b-it-Q6_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a2dd5155fc897b4e64d95fea8d7d0302da29a50fbffb4e2e421a0cd79408e61e
|
||||||
|
size 3190740096
|
||||||
3
gemma-3-4b-it-Q8_0.gguf
Normal file
3
gemma-3-4b-it-Q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7c7f476b4108c52237f793c90363c540a169c5754648f8c51bf9c0f7761a1624
|
||||||
|
size 4130402176
|
||||||
BIN
imgs/gemma-3-4b-kde.png
Normal file
BIN
imgs/gemma-3-4b-kde.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 63 KiB |
BIN
imgs/gemma-3-4b-mean.png
Normal file
BIN
imgs/gemma-3-4b-mean.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
BIN
imgs/gemma-3-4b-range.png
Normal file
BIN
imgs/gemma-3-4b-range.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 78 KiB |
BIN
imgs/gemma-3-4b-stddev.png
Normal file
BIN
imgs/gemma-3-4b-stddev.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
1
sha256/gemma-3-4b-it-F16.sha256
Normal file
1
sha256/gemma-3-4b-it-F16.sha256
Normal file
@@ -0,0 +1 @@
|
|||||||
|
99e0175169e513ad13f9bba7e8268bb28272e849b9f9974b3c0d7426e347ce6d gemma-3-4b-it-F16.gguf
|
||||||
1
sha256/gemma-3-4b-it-Q2_K.sha256
Normal file
1
sha256/gemma-3-4b-it-Q2_K.sha256
Normal file
@@ -0,0 +1 @@
|
|||||||
|
29da515aa72303b5a1621b97ab5e64d95d743f130cff57c3029b17ade7238c31 gemma-3-4b-it-Q2_K.gguf
|
||||||
1
sha256/gemma-3-4b-it-Q4_K_M.sha256
Normal file
1
sha256/gemma-3-4b-it-Q4_K_M.sha256
Normal file
@@ -0,0 +1 @@
|
|||||||
|
063cd62b216ef6b3da7ec726d28cb7f77facfd7d4d53948df7932ef607871306 gemma-3-4b-it-Q4_K_M.gguf
|
||||||
1
sha256/gemma-3-4b-it-Q5_K_M.sha256
Normal file
1
sha256/gemma-3-4b-it-Q5_K_M.sha256
Normal file
@@ -0,0 +1 @@
|
|||||||
|
24c98597c0a37d90492dc1447132c3cbda615981a3352167628c9728d1e803d1 gemma-3-4b-it-Q5_K_M.gguf
|
||||||
1
sha256/gemma-3-4b-it-Q6_K.sha256
Normal file
1
sha256/gemma-3-4b-it-Q6_K.sha256
Normal file
@@ -0,0 +1 @@
|
|||||||
|
a2dd5155fc897b4e64d95fea8d7d0302da29a50fbffb4e2e421a0cd79408e61e gemma-3-4b-it-Q6_K.gguf
|
||||||
1
sha256/gemma-3-4b-it-Q8_0.sha256
Normal file
1
sha256/gemma-3-4b-it-Q8_0.sha256
Normal file
@@ -0,0 +1 @@
|
|||||||
|
7c7f476b4108c52237f793c90363c540a169c5754648f8c51bf9c0f7761a1624 gemma-3-4b-it-Q8_0.gguf
|
||||||
Reference in New Issue
Block a user