commit 9b91a49a513db6d78001f6e43acf053eca70d757 Author: ModelHub XC Date: Thu Jun 18 09:53:19 2026 +0800 初始化项目,由ModelHub XC社区提供模型 Model: igarin/Qwen2.5-Coder-7B-20260219-GGUF Source: Original Platform diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..459c7ab --- /dev/null +++ b/.gitattributes @@ -0,0 +1,41 @@ +*.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.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.Q6_K.gguf 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.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 diff --git a/Modelfile b/Modelfile new file mode 100644 index 0000000..c919a17 --- /dev/null +++ b/Modelfile @@ -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 : + +{{- range .Tools }} +{"type": "function", "function": {{ .Function }}} +{{- end }} + + +For each function call, return a json object with function name and arguments within with NO other text. Do not include any backticks or ```json. + +{"name": , "arguments": } + +{{- 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 }} +{{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}} +{{ end }} +{{- end }}{{ if not $last }}<|im_end|> +{{ end }} +{{- else if eq .Role "tool" }}<|im_start|>user + +{{ .Content }} +<|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.""" \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..baeca61 --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +--- +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-20260219 +--- + + # 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-20260219-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-20260219-GGUF --jinja` +- For multimodal models: `./llama.cpp/llama-mtmd-cli -hf igarin/Qwen2.5-Coder-7B-20260219-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.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) +[](https://github.com/unslothai/unsloth) \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..6f228f0 --- /dev/null +++ b/config.json @@ -0,0 +1,62 @@ +{ + "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_parameters": { + "rope_theta": 1000000.0, + "rope_type": "default" + }, + "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 +} \ No newline at end of file diff --git a/qwen2.5-coder-7b-instruct.F16.gguf b/qwen2.5-coder-7b-instruct.F16.gguf new file mode 100644 index 0000000..116bba4 --- /dev/null +++ b/qwen2.5-coder-7b-instruct.F16.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b92397f6745b758377fce46cfc9455754ce5c885f4856ecd0e0d479a96b95f66 +size 15237853152 diff --git a/qwen2.5-coder-7b-instruct.Q2_K.gguf b/qwen2.5-coder-7b-instruct.Q2_K.gguf new file mode 100644 index 0000000..f650ebe --- /dev/null +++ b/qwen2.5-coder-7b-instruct.Q2_K.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:084bdb94b63b29bb6b37a26fa0de77421a878438ab382914004c60d8cf976c30 +size 3015940064 diff --git a/qwen2.5-coder-7b-instruct.Q4_K_M.gguf b/qwen2.5-coder-7b-instruct.Q4_K_M.gguf new file mode 100644 index 0000000..7cb5cd0 --- /dev/null +++ b/qwen2.5-coder-7b-instruct.Q4_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a46108d77f7212bfcbb271a741158a95bee753962e438f0d46087d996cce335f +size 4683073504 diff --git a/qwen2.5-coder-7b-instruct.Q5_K_M.gguf b/qwen2.5-coder-7b-instruct.Q5_K_M.gguf new file mode 100644 index 0000000..68be888 --- /dev/null +++ b/qwen2.5-coder-7b-instruct.Q5_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72433850eab24bf89770464182d04b2bc50ec1f70ceda1d0225e704844ed97d0 +size 5444831200 diff --git a/qwen2.5-coder-7b-instruct.Q6_K.gguf b/qwen2.5-coder-7b-instruct.Q6_K.gguf new file mode 100644 index 0000000..b3f9951 --- /dev/null +++ b/qwen2.5-coder-7b-instruct.Q6_K.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1fb9226e1b91f12ae6ddcbab946106a469de67916a930dff58de74e3e6c0514 +size 6254198752 diff --git a/qwen2.5-coder-7b-instruct.Q8_0.gguf b/qwen2.5-coder-7b-instruct.Q8_0.gguf new file mode 100644 index 0000000..a6f153c --- /dev/null +++ b/qwen2.5-coder-7b-instruct.Q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a133963888b0a7b0aa0d47ec468a9db4623b55e866f8ac39cadfa443e60d0f89 +size 8098525152