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

Model: GGUF-A-Lot/DeepHat-V1-7B-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-05-07 12:01:53 +08:00
commit fe504bd726
6 changed files with 260 additions and 0 deletions

39
.gitattributes vendored Normal file
View File

@@ -0,0 +1,39 @@
*.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
DeepHat-V1-7B-f16.gguf filter=lfs diff=lfs merge=lfs -text
DeepHat-V1-7B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
DeepHat-V1-7B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
DeepHat-V1-7B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text

View File

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

3
DeepHat-V1-7B-Q6_K.gguf Normal file
View File

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

3
DeepHat-V1-7B-Q8_0.gguf Normal file
View File

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

3
DeepHat-V1-7B-f16.gguf Normal file
View File

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

209
README.md Normal file
View File

@@ -0,0 +1,209 @@
---
license: apache-2.0
---
<style>
a.magic-link {
color: #2a4db0;
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease;
}
a.magic-link:hover {
color: #c0c0c0;
text-shadow: 0 0 6px #ffd700, 0 0 12px #ffd700;
}
a.magic-link-purple {
color: #3c048c;
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease;
}
a.magic-link-purple:hover {
color: #1b013f;
text-shadow: 0 0 6px #4701a8, 0 0 12px #4701a8;
}
.gguf-float-wrapper {
max-width: 900px;
margin: 0 auto;
font-family: sans-serif;
line-height: 1.6;
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.gguf-image {
flex: 0 0 300px;
}
.gguf-image img {
width: 100%;
height: auto;
}
.gguf-text {
flex: 1;
min-width: 250px;
}
@media (max-width: 700px) {
.gguf-float-wrapper {
flex-direction: column;
align-items: center;
}
.gguf-image {
width: 80%;
max-width: 250px;
}
.gguf-text {
width: 100%;
}
}
</style>
<a href="https://huggingface.co/DeepHat/DeepHat-V1-7B" class="magic-link-purple">DeepHat-V1-7B</a>
> [!TIP]
> Quantized by 3Simplex using llama.cpp b907255f
> From download to quant in 10 minutes using our magical <a href="https://github.com/3Simplex/Llama.Cpp-Toolbox" class="magic-link">LlamaCpp-Toolbox</a>! (2gbps Broadband, AMD 5800x & rx6900xt)
<div class="gguf-float-wrapper">
<div class="gguf-image">
<img src="https://huggingface.co/spaces/GGUF-A-Lot/README/resolve/main/DeepHat-V1-7B.png" alt="Holy-Hand-GGUF-DeepHat-V1-7B"/>
</div>
<div class="gguf-text">
<br>
<p><strong>Model Developer:</strong> Kindo - Deephat</p>
<p><strong>Model Dates:</strong><br>September 2025</p>
<p><strong>Data Freshness:</strong><br>September 2024</p>
<p>The pretraining data has a cutoff date of September 2024.</p>
</div>
</div>
## Model Overview
<br>
![DeepHat](https://huggingface.co/DeepHat/DeepHat-V1-7B/resolve/main/deephat_grey_logo.svg)
<br>
DeepHat is a model series that can be used for offensive and defensive cybersecurity. Access at [Deephat.ai](https://www.deephat.ai/) or go to [Kindo.ai](https://www.kindo.ai/) to create agents.
# Community
Join us on [Discord](https://discord.gg/8Ynkrcbk92)
# Technical Overview
DeepHat is a finetune of [Qwen2.5-Coder-7B](https://huggingface.co/Qwen/Qwen2.5-Coder-7B/), and inherits the following features:
- Type: Causal Language Models
- Training Stage: Pretraining & Post-training
- Architecture: transformers with RoPE, SwiGLU, RMSNorm, and Attention QKV bias
- Number of Parameters: 7.61B
- Number of Paramaters (Non-Embedding): 6.53B
- Number of Layers: 28
- Number of Attention Heads (GQA): 28 for Q and 4 for KV
- Context Length: Full 131,072 tokens
- Please refer to [this section](#processing-long-texts) for detailed instructions on how to deploy Qwen2.5 for handling long texts.
## Requirements
We advise you to use the latest version of `transformers`.
With `transformers<4.37.0`, you will encounter the following error:
```
KeyError: 'qwen2'
```
## Quickstart
Here provides a code snippet with `apply_chat_template` to show you how to load the tokenizer and model and how to generate contents.
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "DeepHat/DeepHat-V1-7B"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "write a quick sort algorithm."
messages = [
{"role": "system", "content": "You are DeepHat, created by Kindo.ai. You are a helpful assistant that is an expert in Cybersecurity and DevOps."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
```
### Processing Long Texts
The current `config.json` is set for context length up to 32,768 tokens.
To handle extensive inputs exceeding 32,768 tokens, we utilize [YaRN](https://arxiv.org/abs/2309.00071), a technique for enhancing model length extrapolation, ensuring optimal performance on lengthy texts.
For supported frameworks, you could add the following to `config.json` to enable YaRN:
```json
{
...,
"rope_scaling": {
"factor": 4.0,
"original_max_position_embeddings": 32768,
"type": "yarn"
}
}
```
# License
Apache-2.0 + DeepHat Extended Version
## DeepHat Extension to Apache-2.0 Licence: Usage Restrictions
```
You agree not to use the Model or Derivatives of the Model:
- In any way that violates any applicable national or international law or regulation or infringes upon the lawful rights and interests of any third party;
- For military use in any way;
- For the purpose of exploiting, harming or attempting to exploit or harm minors in any way;
- To generate or disseminate verifiably false information and/or content with the purpose of harming others;
- To generate or disseminate inappropriate content subject to applicable regulatory requirements;
- To generate or disseminate personal identifiable information without due authorization or for unreasonable use;
- To defame, disparage or otherwise harass others;
- For fully automated decision making that adversely impacts an individuals legal rights or otherwise creates or modifies a binding, enforceable obligation;
- For any use intended to or which has the effect of discriminating against or harming individuals or groups based on online or offline social behavior or known or predicted personal or personality characteristics;
- To exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;
- For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories.
```
# Terms of Use
By accessing and using this Artificial Intelligence (AI) model, you, the user, acknowledge and agree that you are solely responsible for your use of the model and its outcomes. You hereby agree to indemnify, defend, and hold harmless the creators, developers, and any affiliated persons or entities of this AI model from and against any and all claims, liabilities, damages, losses, costs, expenses, fees (including reasonable attorneys' fees and court costs) that may arise, directly or indirectly, from your use of the AI model.
This AI model is provided "as is" and "as available" without any warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. The creators make no warranty that the AI model will meet your requirements or be available on an uninterrupted, secure, or error-free basis.
Your use of the AI model is at your own risk and discretion, and you will be solely responsible for any damage to computer systems or loss of data that results from the use of the AI model.
This disclaimer constitutes part of the agreement between you and the creators of the AI model regarding your use of the model, superseding any prior agreements between you and the creators regarding your use of this AI model.