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

Model: Mungert/granite-3.0-1b-a400m-base-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-10-05 22:29:21 +08:00
commit 67bb901cc9
22 changed files with 520 additions and 0 deletions

68
.gitattributes vendored Normal file
View File

@@ -0,0 +1,68 @@
*.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-1b-a400m-base-f16.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-f16_q8_0.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-bf16_q8_0.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-f16_q6_k.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-bf16_q6_k.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q5_k_l.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q6_k_l.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q6_k_m.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q4_0.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q4_1.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q4_0_l.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q4_1_l.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q5_0.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q5_1.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q5_0_l.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q5_1_l.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-iq3_xs.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-iq3_xxs.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-iq3_s.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-iq3_m.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-iq4_xs.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-iq4_nl.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base.imatrix filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-bf16.gguf filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-q4_k_l.gguf.tmp filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-f16_q4_k.gguf.tmp filter=lfs diff=lfs merge=lfs -text
granite-3.0-1b-a400m-base-bf16_q4_k.gguf.tmp filter=lfs diff=lfs merge=lfs -text

392
README.md Normal file
View File

@@ -0,0 +1,392 @@
---
pipeline_tag: text-generation
inference: false
license: apache-2.0
library_name: transformers
tags:
- language
- granite-3.0
model-index:
- name: granite-3.0-1b-a400m-base
results:
- task:
type: text-generation
dataset:
type: human-exams
name: MMLU
metrics:
- name: pass@1
type: pass@1
value: 25.69
veriefied: false
- task:
type: text-generation
dataset:
type: human-exams
name: MMLU-Pro
metrics:
- name: pass@1
type: pass@1
value: 11.38
veriefied: false
- task:
type: text-generation
dataset:
type: human-exams
name: AGI-Eval
metrics:
- name: pass@1
type: pass@1
value: 19.96
veriefied: false
- task:
type: text-generation
dataset:
type: commonsense
name: WinoGrande
metrics:
- name: pass@1
type: pass@1
value: 62.43
veriefied: false
- task:
type: text-generation
dataset:
type: commonsense
name: OBQA
metrics:
- name: pass@1
type: pass@1
value: 39
veriefied: false
- task:
type: text-generation
dataset:
type: commonsense
name: SIQA
metrics:
- name: pass@1
type: pass@1
value: 35.76
veriefied: false
- task:
type: text-generation
dataset:
type: commonsense
name: PIQA
metrics:
- name: pass@1
type: pass@1
value: 75.35
veriefied: false
- task:
type: text-generation
dataset:
type: commonsense
name: Hellaswag
metrics:
- name: pass@1
type: pass@1
value: 64.92
veriefied: false
- task:
type: text-generation
dataset:
type: commonsense
name: TruthfulQA
metrics:
- name: pass@1
type: pass@1
value: 39.49
veriefied: false
- task:
type: text-generation
dataset:
type: reading-comprehension
name: BoolQ
metrics:
- name: pass@1
type: pass@1
value: 65.44
veriefied: false
- task:
type: text-generation
dataset:
type: reading-comprehension
name: SQuAD 2.0
metrics:
- name: pass@1
type: pass@1
value: 17.78
veriefied: false
- task:
type: text-generation
dataset:
type: reasoning
name: ARC-C
metrics:
- name: pass@1
type: pass@1
value: 38.14
veriefied: false
- task:
type: text-generation
dataset:
type: reasoning
name: GPQA
metrics:
- name: pass@1
type: pass@1
value: 24.41
veriefied: false
- task:
type: text-generation
dataset:
type: reasoning
name: BBH
metrics:
- name: pass@1
type: pass@1
value: 29.84
veriefied: false
- task:
type: text-generation
dataset:
type: reasoning
name: MUSR
metrics:
- name: pass@1
type: pass@1
value: 33.99
veriefied: false
- task:
type: text-generation
dataset:
type: code
name: HumanEval
metrics:
- name: pass@1
type: pass@1
value: 21.95
veriefied: false
- task:
type: text-generation
dataset:
type: code
name: MBPP
metrics:
- name: pass@1
type: pass@1
value: 23.2
veriefied: false
- task:
type: text-generation
dataset:
type: math
name: GSM8K
metrics:
- name: pass@1
type: pass@1
value: 19.26
veriefied: false
- task:
type: text-generation
dataset:
type: math
name: MATH
metrics:
- name: pass@1
type: pass@1
value: 8.96
veriefied: false
new_version: ibm-granite/granite-3.1-1b-a400m-base
---
# <span style="color: #7FFF7F;">granite-3.0-1b-a400m-base GGUF Models</span>
## <span style="color: #7F7FFF;">Model Generation Details</span>
This model was generated using [llama.cpp](https://github.com/ggerganov/llama.cpp) at commit [`0a5a3b5c`](https://github.com/ggerganov/llama.cpp/commit/0a5a3b5cdfd887cf0f8e09d9ff89dee130cfcdde).
---
<a href="https://readyforquantum.com/huggingface_gguf_selection_guide.html" style="color: #7FFF7F;">
Click here to get info on choosing the right GGUF model format
</a>
---
<!--Begin 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-1B-A400M-Base
**Model Summary:**
Granite-3.0-1B-A400M-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-1B-A400M-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-1b-a400m-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-1B-A400M-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 |
| # Parameters | 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-1B-A400M-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-1B-A400M-Base model with ethical intentions and in a responsible way.
**Resources**
- ⭐️ Learn about the latest updates with Granite: https://www.ibm.com/granite
- 📄 Get started with tutorials, best practices, and prompt engineering advice: https://www.ibm.com/granite/docs/
- 💡 Learn about the latest Granite learning resources: https://ibm.biz/granite-learning-resources
<!-- ## Citation
```
@misc{granite-models,
author = {author 1, author2, ...},
title = {},
journal = {},
volume = {},
year = {2024},
url = {https://arxiv.org/abs/0000.00000},
}
``` -->
<!--End Original Model Card-->
---
# <span id="testllm" style="color: #7F7FFF;">🚀 If you find these models useful</span>
Help me test my **AI-Powered Quantum Network Monitor Assistant** with **quantum-ready security checks**:
👉 [Quantum Network Monitor](https://readyforquantum.com/?assistant=open&utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme)
The full Open Source Code for the Quantum Network Monitor Service available at my github repos ( repos with NetworkMonitor in the name) : [Source Code Quantum Network Monitor](https://github.com/Mungert69). You will also find the code I use to quantize the models if you want to do it yourself [GGUFModelBuilder](https://github.com/Mungert69/GGUFModelBuilder)
💬 **How to test**:
Choose an **AI assistant type**:
- `TurboLLM` (GPT-4.1-mini)
- `HugLLM` (Hugginface Open-source models)
- `TestLLM` (Experimental CPU-only)
### **What I’m Testing**
I’m pushing the limits of **small open-source models for AI network monitoring**, specifically:
- **Function calling** against live network services
- **How small can a model go** while still handling:
- Automated **Nmap security scans**
- **Quantum-readiness checks**
- **Network Monitoring tasks**
🟡 **TestLLM** – Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space):
- ✅ **Zero-configuration setup**
- ⏳ 30s load time (slow inference but **no API costs**) . No token limited as the cost is low.
- 🔧 **Help wanted!** If you’re into **edge-device AI**, let’s collaborate!
### **Other Assistants**
🟢 **TurboLLM** – Uses **gpt-4.1-mini** :
- **It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited.
- **Create custom cmd processors to run .net code on Quantum Network Monitor Agents**
- **Real-time network diagnostics and monitoring**
- **Security Audits**
- **Penetration testing** (Nmap/Metasploit)
🔵 **HugLLM** – Latest Open-source models:
- 🌐 Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita.
### 💡 **Example commands you could test**:
1. `"Give me info on my websites SSL certificate"`
2. `"Check if my server is using quantum safe encyption for communication"`
3. `"Run a comprehensive security audit on my server"`
4. '"Create a cmd processor to .. (what ever you want)" Note you need to install a [Quantum Network Monitor Agent](https://readyforquantum.com/Download/?utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme) to run the .net code on. This is a very flexible and powerful feature. Use with caution!
### Final Word
I fund the servers used to create these model files, run the Quantum Network Monitor service, and pay for inference from Novita and OpenAI—all out of my own pocket. All the code behind the model creation and the Quantum Network Monitor project is [open source](https://github.com/Mungert69). Feel free to use whatever you find helpful.
If you appreciate the work, please consider [buying me a coffee](https://www.buymeacoffee.com/mahadeva) ☕. Your support helps cover service costs and allows me to raise token limits for everyone.
I'm also open to job opportunities or sponsorship.
Thank you! 😊

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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