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

Model: igarin/Qwen2.5-Coder-7B-20260302-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-09-02 03:58:17 +08:00
commit a73eb5df15
12 changed files with 228 additions and 0 deletions

43
.gitattributes vendored Normal file
View File

@@ -0,0 +1,43 @@
*.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
qwen2.5-coder-7b-instruct.F16.gguf filter=lfs diff=lfs merge=lfs -text
qwen2.5-coder-7b-instruct.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
qwen2.5-coder-7b-instruct.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
qwen2.5-coder-7b-instruct.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
qwen2.5-coder-7b-instruct.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
qwen2.5-coder-7b-instruct.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
qwen2.5-coder-7b-instruct.Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
qwen2.5-coder-7b-instruct.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text

54
Modelfile Normal file
View File

@@ -0,0 +1,54 @@
FROM qwen2.5-coder-7b-instruct.Q4_K_M.gguf
TEMPLATE """{{- if .Suffix }}<|fim_prefix|>{{ .Prompt }}<|fim_suffix|>{{ .Suffix }}<|fim_middle|>
{{- else if .Messages }}
{{- if or .System .Tools }}<|im_start|>system
{{- if .System }}
{{ .System }}
{{- end }}
{{- if .Tools }}
# Tools
You may call one or more functions to assist with the user query.
You are provided with function signatures within <tools></tools>:
<tools>
{{- range .Tools }}
{"type": "function", "function": {{ .Function }}}
{{- end }}
</tools>
For each function call, return a json object with function name and arguments within <tool_call></tool_call> with NO other text. Do not include any backticks or ```json.
<tool_call>
{"name": <function-name>, "arguments": <args-json-object>}
</tool_call>
{{- end }}<|im_end|>
{{ end }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
{{- if eq .Role "user" }}<|im_start|>user
{{ .Content }}<|im_end|>
{{ else if eq .Role "assistant" }}<|im_start|>assistant
{{ if .Content }}{{ .Content }}
{{- else if .ToolCalls }}<tool_call>
{{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
{{ end }}</tool_call>
{{- end }}{{ if not $last }}<|im_end|>
{{ end }}
{{- else if eq .Role "tool" }}<|im_start|>user
<tool_response>
{{ .Content }}
</tool_response><|im_end|>
{{ end }}
{{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
{{ end }}
{{- end }}
{{- else }}
{{- if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ if .Prompt }}<|im_start|>user
{{ .Prompt }}<|im_end|>
{{ end }}<|im_start|>assistant
{{ end }}{{ .Response }}{{ if .Response }}<|im_end|>{{ end }}"""
SYSTEM """You are Qwen, created by Alibaba Cloud. You are a helpful assistant."""

47
README.md Normal file
View File

@@ -0,0 +1,47 @@
---
base_model: unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit
tags:
- text-generation-inference
- transformers
- unsloth
- qwen2
- swift
- python
- code
- gguf
license: cc-by-nc-4.0
language:
- en
- ja
datasets:
- igarin/swift-python-textbook-20260302
---
# Uploaded finetuned model
- **Developed by:** igarin
- **License:** cc-by-nc-4.0
- **Finetuned from model :** unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit
# Qwen2.5-Coder-7B-20260302-GGUF : GGUF
This model was finetuned and converted to GGUF format using [Unsloth](https://github.com/unslothai/unsloth).
**Example usage**:
- For text only LLMs: `./llama.cpp/llama-cli -hf igarin/Qwen2.5-Coder-7B-20260302-GGUF --jinja`
- For multimodal models: `./llama.cpp/llama-mtmd-cli -hf igarin/Qwen2.5-Coder-7B-20260302-GGUF --jinja`
## Available Model files:
- `qwen2.5-coder-7b-instruct.F16.gguf`
- `qwen2.5-coder-7b-instruct.Q2_K.gguf`
- `qwen2.5-coder-7b-instruct.Q3_K_M.gguf`
- `qwen2.5-coder-7b-instruct.Q4_1.gguf`
- `qwen2.5-coder-7b-instruct.Q4_K_M.gguf`
- `qwen2.5-coder-7b-instruct.Q5_K_M.gguf`
- `qwen2.5-coder-7b-instruct.Q6_K.gguf`
- `qwen2.5-coder-7b-instruct.Q8_0.gguf`
## Ollama
An Ollama Modelfile is included for easy deployment.
This was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth)
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)

60
config.json Normal file
View File

@@ -0,0 +1,60 @@
{
"architectures": [
"Qwen2ForCausalLM"
],
"attention_dropout": 0.0,
"bos_token_id": 151643,
"torch_dtype": "float16",
"eos_token_id": 151645,
"hidden_act": "silu",
"hidden_size": 3584,
"initializer_range": 0.02,
"intermediate_size": 18944,
"layer_types": [
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention"
],
"max_position_embeddings": 32768,
"max_window_layers": 28,
"model_type": "qwen2",
"num_attention_heads": 28,
"num_hidden_layers": 28,
"num_key_value_heads": 4,
"pad_token_id": 151665,
"rms_norm_eps": 1e-06,
"rope_scaling": null,
"rope_theta": 1000000.0,
"sliding_window": null,
"tie_word_embeddings": false,
"unsloth_fixed": true,
"unsloth_version": "2026.2.1",
"use_cache": true,
"use_sliding_window": false,
"vocab_size": 152064
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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