From fe504bd7262d89ecd461696200fdcdb2cb9d5e43 Mon Sep 17 00:00:00 2001 From: ModelHub XC Date: Thu, 7 May 2026 12:01:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=EF=BC=8C=E7=94=B1ModelHub=20XC=E7=A4=BE=E5=8C=BA=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Model: GGUF-A-Lot/DeepHat-V1-7B-GGUF Source: Original Platform --- .gitattributes | 39 +++++++ DeepHat-V1-7B-Q4_K_M.gguf | 3 + DeepHat-V1-7B-Q6_K.gguf | 3 + DeepHat-V1-7B-Q8_0.gguf | 3 + DeepHat-V1-7B-f16.gguf | 3 + README.md | 209 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 260 insertions(+) create mode 100644 .gitattributes create mode 100644 DeepHat-V1-7B-Q4_K_M.gguf create mode 100644 DeepHat-V1-7B-Q6_K.gguf create mode 100644 DeepHat-V1-7B-Q8_0.gguf create mode 100644 DeepHat-V1-7B-f16.gguf create mode 100644 README.md diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3018f5e --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/DeepHat-V1-7B-Q4_K_M.gguf b/DeepHat-V1-7B-Q4_K_M.gguf new file mode 100644 index 0000000..2a7f13f --- /dev/null +++ b/DeepHat-V1-7B-Q4_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:970503a6c26b716b7809ef7258513a5802068278cfc9004fb248a122fe7ccc96 +size 5326001536 diff --git a/DeepHat-V1-7B-Q6_K.gguf b/DeepHat-V1-7B-Q6_K.gguf new file mode 100644 index 0000000..1fdb683 --- /dev/null +++ b/DeepHat-V1-7B-Q6_K.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad2230378b56a5544eeb41a8dd399de823bd355cb7c7fa6d6a2cf861b932bed1 +size 6897126784 diff --git a/DeepHat-V1-7B-Q8_0.gguf b/DeepHat-V1-7B-Q8_0.gguf new file mode 100644 index 0000000..94e65fe --- /dev/null +++ b/DeepHat-V1-7B-Q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5badf4873974ee570d468c140a4a8142e14262717888701de7c9c6acb3877ba4 +size 8609461632 diff --git a/DeepHat-V1-7B-f16.gguf b/DeepHat-V1-7B-f16.gguf new file mode 100644 index 0000000..6a39d14 --- /dev/null +++ b/DeepHat-V1-7B-f16.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4069d802185ed3b3889ff03d39b7f8020ecf4a070f3314a58e5e8bee958e3553 +size 15237854592 diff --git a/README.md b/README.md new file mode 100644 index 0000000..c621b6f --- /dev/null +++ b/README.md @@ -0,0 +1,209 @@ +--- +license: apache-2.0 +--- + +DeepHat-V1-7B + +> [!TIP] +> Quantized by 3Simplex using llama.cpp b907255f +> From download to quant in 10 minutes using our magical LlamaCpp-Toolbox! (2gbps Broadband, AMD 5800x & rx6900xt) + +
+
+ Holy-Hand-GGUF-DeepHat-V1-7B +
+
+
+

Model Developer: Kindo - Deephat

+

Model Dates:
September 2025

+

Data Freshness:
September 2024

+

The pretraining data has a cutoff date of September 2024.

+
+
+ +## Model Overview + +
+ +![DeepHat](https://huggingface.co/DeepHat/DeepHat-V1-7B/resolve/main/deephat_grey_logo.svg) + +
+ +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 individual’s 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.