Views
No views yet
Qwen/Qwen2.5-Coder-7B-Instruct, converted with llama.cpp.Qwen/Qwen2.5-Coder-7B-Instructapache-2.0convert_hf_to_gguf.py from llama.cppllama-quantizeQwen2.5-Coder-7B-Instruct-Q4_K_M.gguf| Quant | Filename | Size | SHA256 | Notes |
|---|---|---|---|---|
| FP16 | Qwen2.5-Coder-7B-Instruct-FP16.gguf | ~14.19 GiB | 274c0eb05fe4... | Full precision converted GGUF baseline |
| Q2_K | Qwen2.5-Coder-7B-Instruct-Q2_K.gguf | ~2.81 GiB | 3200d17f49c6... | Smallest, lowest quality |
| Q3_K_M | Qwen2.5-Coder-7B-Instruct-Q3_K_M.gguf | ~3.55 GiB | 30be23c2bc76... | Small balanced version |
| Q4_0 | Qwen2.5-Coder-7B-Instruct-Q4_0.gguf | ~4.13 GiB | 339fbe41f5d4... | Simple 4-bit quantization |
| Q4_K_M | Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf | ~4.36 GiB | 46caa6175bbe... | Recommended default for most users |
| Q5_K_M | Qwen2.5-Coder-7B-Instruct-Q5_K_M.gguf | ~5.07 GiB | 38d6bd18220d... | Better quality with moderate size |
| Q6_K | Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | ~5.82 GiB | 86b8e1701365... | High quality |
| Q8_0 | Qwen2.5-Coder-7B-Instruct-Q8_0.gguf | ~7.54 GiB | d4cdb65b1880... | Near FP16 quality |
llama-cli for basic load + generation.| Quant | Filename | Status |
|---|---|---|
| FP16 | Qwen2.5-Coder-7B-Instruct-FP16.gguf | ✅ passed |
| Q2_K | Qwen2.5-Coder-7B-Instruct-Q2_K.gguf | ✅ passed |
| Q3_K_M | Qwen2.5-Coder-7B-Instruct-Q3_K_M.gguf | ✅ passed |
| Q4_0 | Qwen2.5-Coder-7B-Instruct-Q4_0.gguf | ✅ passed |
| Q4_K_M | Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf | ✅ passed |
| Q5_K_M | Qwen2.5-Coder-7B-Instruct-Q5_K_M.gguf | ✅ passed |
| Q6_K | Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | ✅ passed |
| Q8_0 | Qwen2.5-Coder-7B-Instruct-Q8_0.gguf | ✅ passed |
llama-cli -m Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf -p "Hello! Introduce yourself briefly."./main -m Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf -p "Hello! Introduce yourself briefly."llama-cli -hf ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M -p "Hello! Introduce yourself briefly."1from huggingface_hub import hf_hub_download
2from llama_cpp import Llama
3
4model_path = hf_hub_download(
5 repo_id="ShahzebKhoso/Qwen2.5-Coder-7B-Instruct",
6 filename="Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf",
7)
8
9llm = Llama(model_path=model_path)
10
11out = llm.create_chat_completion(
12 messages=[
13 {"role": "system", "content": "You are a helpful assistant."},
14 {"role": "user", "content": "Hello! Introduce yourself briefly."},
15 ],
16 max_tokens=128,
17)
18
19print(out["choices"][0]["message"]["content"])Q4_K_M for the best default balance.Q5_K_M for better quality.Q8_0 if you want near-original quality and have more memory.Q2_K or Q3_K_M only when memory is very limited.Qwen/Qwen2.5-Coder-7B-Instruct1revision: c03e6d358207e414f1eca0bb1891e29f1db0e242
2pipeline_tag: text-generation
3tags: transformers, safetensors, qwen2, text-generation, code, codeqwen, chat, qwen, qwen-coder, conversational, en, arxiv:2409.12186, arxiv:2309.00071, arxiv:2407.10671, base_model:Qwen/Qwen2.5-Coder-7B, base_model:finetune:Qwen/Qwen2.5-Coder-7B, license:apache-2.0, text-generation-inference, endpoints_compatible, deploy:azure