初始化项目,由ModelHub XC社区提供模型

Model: QuantFactory/granite-3.0-3b-a800m-base-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-10-12 06:07:13 +08:00
commit 15c0f0f6b1
17 changed files with 406 additions and 0 deletions

49
.gitattributes vendored Normal file
View File

@@ -0,0 +1,49 @@
*.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
granite-3.0-3b-a800m-base.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-3b-a800m-base.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text

314
README.md Normal file
View File

@@ -0,0 +1,314 @@
---
pipeline_tag: text-generation
inference: false
license: apache-2.0
library_name: transformers
tags:
- language
- granite-3.0
model-index:
- name: granite-3.0-3b-a800m-base
results:
- task:
type: text-generation
dataset:
type: human-exams
name: MMLU
metrics:
- name: pass@1
type: pass@1
value: 48.64
veriefied: false
- task:
type: text-generation
dataset:
type: human-exams
name: MMLU-Pro
metrics:
- name: pass@1
type: pass@1
value: 18.84
veriefied: false
- task:
type: text-generation
dataset:
type: human-exams
name: AGI-Eval
metrics:
- name: pass@1
type: pass@1
value: 23.81
veriefied: false
- task:
type: text-generation
dataset:
type: commonsense
name: WinoGrande
metrics:
- name: pass@1
type: pass@1
value: 65.67
veriefied: false
- task:
type: text-generation
dataset:
type: commonsense
name: OBQA
metrics:
- name: pass@1
type: pass@1
value: 42.20
veriefied: false
- task:
type: text-generation
dataset:
type: commonsense
name: SIQA
metrics:
- name: pass@1
type: pass@1
value: 47.39
veriefied: false
- task:
type: text-generation
dataset:
type: commonsense
name: PIQA
metrics:
- name: pass@1
type: pass@1
value: 78.29
veriefied: false
- task:
type: text-generation
dataset:
type: commonsense
name: Hellaswag
metrics:
- name: pass@1
type: pass@1
value: 72.79
veriefied: false
- task:
type: text-generation
dataset:
type: commonsense
name: TruthfulQA
metrics:
- name: pass@1
type: pass@1
value: 41.34
veriefied: false
- task:
type: text-generation
dataset:
type: reading-comprehension
name: BoolQ
metrics:
- name: pass@1
type: pass@1
value: 75.75
veriefied: false
- task:
type: text-generation
dataset:
type: reading-comprehension
name: SQuAD 2.0
metrics:
- name: pass@1
type: pass@1
value: 20.96
veriefied: false
- task:
type: text-generation
dataset:
type: reasoning
name: ARC-C
metrics:
- name: pass@1
type: pass@1
value: 46.84
veriefied: false
- task:
type: text-generation
dataset:
type: reasoning
name: GPQA
metrics:
- name: pass@1
type: pass@1
value: 24.83
veriefied: false
- task:
type: text-generation
dataset:
type: reasoning
name: BBH
metrics:
- name: pass@1
type: pass@1
value: 38.93
veriefied: false
- task:
type: text-generation
dataset:
type: reasoning
name: MUSR
metrics:
- name: pass@1
type: pass@1
value: 35.05
veriefied: false
- task:
type: text-generation
dataset:
type: code
name: HumanEval
metrics:
- name: pass@1
type: pass@1
value: 26.83
veriefied: false
- task:
type: text-generation
dataset:
type: code
name: MBPP
metrics:
- name: pass@1
type: pass@1
value: 34.60
veriefied: false
- task:
type: text-generation
dataset:
type: math
name: GSM8K
metrics:
- name: pass@1
type: pass@1
value: 35.86
veriefied: false
- task:
type: text-generation
dataset:
type: math
name: MATH
metrics:
- name: pass@1
type: pass@1
value: 17.40
veriefied: false
---
[![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
# QuantFactory/granite-3.0-3b-a800m-base-GGUF
This is quantized version of [ibm-granite/granite-3.0-3b-a800m-base](https://huggingface.co/ibm-granite/granite-3.0-3b-a800m-base) created using llama.cpp
# Original Model Card
<!-- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/62cd5057674cdb524450093d/1hzxoPwqkBJXshKVVe6_9.png) -->
<!-- ![image/png](granite-3_0-language-models_Group_1.png) -->
# Granite-3.0-3B-A800M-Base
**Model Summary:**
Granite-3.0-3B-A800M-Base is a decoder-only language model to support a variety of text-to-text generation tasks. It is trained from scratch following a two-stage training strategy. In the first stage, it is trained on 8 trillion tokens sourced from diverse domains. During the second stage, it is further trained on 2 trillion tokens using a carefully curated mix of high-quality data, aiming to enhance its performance on specific tasks.
- **Developers:** Granite Team, IBM
- **GitHub Repository:** [ibm-granite/granite-3.0-language-models](https://github.com/ibm-granite/granite-3.0-language-models)
- **Website**: [Granite Docs](https://www.ibm.com/granite/docs/)
- **Paper:** [Granite 3.0 Language Models](https://github.com/ibm-granite/granite-3.0-language-models/blob/main/paper.pdf)
- **Release Date**: October 21st, 2024
- **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
**Supported Languages:**
English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. Users may finetune Granite 3.0 models for languages beyond these 12 languages.
**Intended use:**
Prominent use cases of LLMs in text-to-text generation include summarization, text classification, extraction, question-answering, and more. All Granite Base models are able to handle these tasks as they were trained on a large amount of data from various domains. Moreover, they can serve as baseline to create specialized models for specific application scenarios.
**Generation:**
This is a simple example of how to use Granite-3.0-3B-A800M-Base model.
Install the following libraries:
```shell
pip install torch torchvision torchaudio
pip install accelerate
pip install transformers
```
Then, copy the code snippet below to run the example.
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "auto"
model_path = "ibm-granite/granite-3.0-3b-a800m-base"
tokenizer = AutoTokenizer.from_pretrained(model_path)
# drop device_map if running on CPU
model = AutoModelForCausalLM.from_pretrained(model_path, device_map=device)
model.eval()
# change input text as desired
input_text = "Where is the Thomas J. Watson Research Center located?"
# tokenize the text
input_tokens = tokenizer(input_text, return_tensors="pt").to(device)
# generate output tokens
output = model.generate(**input_tokens,
max_length=4000)
# decode output tokens into text
output = tokenizer.batch_decode(output)
# print output
print(output)
```
**Model Architecture:**
Granite-3.0-3B-A800M-Base is based on a decoder-only sparse Mixture of Experts (MoE) transformer architecture. Core components of this architecture are: Fine-grained Experts, Dropless Token Routing, and Load Balancing Loss.
| Model | 2B Dense | 8B Dense | 1B MoE | 3B MoE |
| :-------- | :--------| :--------| :--------| :-------- |
| Embedding size | 2048 | 4096 | 1024 | **1536** |
| Number of layers | 40 | 40 | 24 | **32** |
| Attention head size | 64 | 128 | 64 | **64** |
| Number of attention heads | 32 | 32 | 16 | **24** |
| Number of KV heads | 8 | 8 | 8 | **8** |
| MLP hidden size | 8192 | 12800 | 512 | **512** |
| MLP activation | SwiGLU | SwiGLU | SwiGLU | **SwiGLU** |
| Number of Experts | — | — | 32 | **40** |
| MoE TopK | — | — | 8 | **8** |
| Initialization std | 0.1 | 0.1 | 0.1 | **0.1** |
| Sequence Length | 4096 | 4096 | 4096 | **4096** |
| Position Embedding | RoPE | RoPE | RoPE | **RoPE** |
| # Paremeters | 2.5B | 8.1B | 1.3B | **3.3B** |
| # Active Parameters | 2.5B | 8.1B | 400M | **800M** |
| # Training tokens | 12T | 12T | 10T | **10T** |
**Training Data:**
This model is trained on a mix of open source and proprietary data following a two-stage training strategy.
* Stage 1 data: The data for stage 1 is sourced from diverse domains, such as: web, code, academic sources, books, and math data.
* Stage 2 data: The data for stage 2 comprises a curated mix of high-quality data from the same domains, plus multilingual and instruction data. The goal of this second training phase is to enhance the model’s performance on specific tasks.
A detailed attribution of datasets can be found in the [Granite Technical Report](https://github.com/ibm-granite/granite-3.0-language-models/blob/main/paper.pdf) and [Accompanying Author List](https://github.com/ibm-granite/granite-3.0-language-models/blob/main/author-ack.pdf).
**Infrastructure:**
We train Granite 3.0 Language Models using IBM's super computing cluster, Blue Vela, which is outfitted with NVIDIA H100 GPUs. This cluster provides a scalable and efficient infrastructure for training our models over thousands of GPUs while minimizing environmental impact by utilizing 100% renewable energy sources.
**Ethical Considerations and Limitations:**
The use of Large Language Models involves risks and ethical considerations people must be aware of, including but not limited to: bias and fairness, misinformation, and autonomous decision-making. Granite-3.0-3B-A800M-Base model is not the exception in this regard. Even though this model is suited for multiple generative AI tasks, it has not undergone any safety alignment, there it may produce problematic outputs. Additionally, it remains uncertain whether smaller models might exhibit increased susceptibility to hallucination in generation scenarios by copying text verbatim from the training dataset due to their reduced sizes and memorization capacities. This aspect is currently an active area of research, and we anticipate more rigorous exploration, comprehension, and mitigations in this domain. Regarding ethics, a latent risk associated with all Large Language Models is their malicious utilization. We urge the community to use Granite-3.0-3B-A800M-Base model with ethical intentions and in a responsible way.
<!-- ## Citation
```
@misc{granite-models,
author = {author 1, author2, ...},
title = {},
journal = {},
volume = {},
year = {2024},
url = {https://arxiv.org/abs/0000.00000},
}
``` -->

1
configuration.json Normal file
View File

@@ -0,0 +1 @@
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2ddacec7f77a226a91def8cce7c6c8156f63534756d571b46a8c5ca7a988b997
size 1241360288

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:faea36cf1705067ffabadfc3e61938d6d5a94e04e7d7758234fb5bc544f577e5
size 1741531040

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:82100ceddf964bd253ad9903c76482cc9ec83e991573fd4cc1601d83957afb54
size 1611179936

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e27a5edb0d3dc9bd0390a8329eca4e74ce9049135af64cea2a0908b8b94cb83f
size 1456056224

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9e07bb1f741f3f779b0872c1837d8659a462f0b4ea83ce8a23df56acec2d14cf
size 1883875232

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13df0ce4af55578e8e2d1d4fa0a2539819b0a87b754c3b2de69db9e8c6651822
size 2085201824

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0a7a84d6b395ec4718b50823082bec7ff8dbde3b19b094829a14b9926bb18f60
size 2016880544

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4cec53e8bc738be852efb609e339b1da36576bc3c307e5aeef435ab32c895153
size 1899997088

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b75bcd2d5ebe3a4ed388cab079c256b0d236f3fb9fdc7485d533e9ab1b21a3f4
size 2286528416

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2f7ce215c66e584233b2ffeefc19dbc24b3839075e0ea69ea846f30417edecf7
size 2487855008

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a6671f4b98f5dc17a7f9ef877ab49c2b1a94a560ac02dba68ccced8a1e1f2aa2
size 2355046304

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:18b1a4a7fe3388b8a02bbb0dd60013c7d9ef613f08c2c1509e921cc8377ba4e5
size 2286528416

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:783ea9091493d785a6c10d6238bf66d6103c0c170cdd91f20f7611b2adbc8193
size 2714347424

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2da3ea21a5b8a51dc8c56e818309e516c8d7b89218a5cca35e4516b570f0be6c
size 3512772512