Qwen3 8B Q5 K M
Qwen3-8B in Q5KM GGUF format for CPU/GPU inference with llama.cpp or llama-cpp-python.
Fonte do modelo
- Tipo
- Other
- Tamanho do arquivo
- 5,45 GB
- Modelo base
- Qwen/Qwen3-8B
- Versão
- vQwen3 8 B Q5 K M
- Atualizado
- 18 de out. de 2026
- Fonte
- Hugging Face
Descrição da fonte
Qwen3-8B-Q5_K_M
Qwen3-8B in Q5_K_M GGUF format for CPU/GPU inference with llama.cpp or llama-cpp-python.
- Source base model: Qwen/Qwen3-8B
- Original GGUF source: Qwen/Qwen3-8B-GGUF
- Quantization: Q5_K_M (~5.85 GB)
- License: Apache 2.0
Usage
py -3.11 -m pip install llama-cpp-python transformers
from llama_cpp import Llama
from transformers import AutoTokenizer
llm = Llama(model_path="Qwen3-8B-Q5_K_M.gguf", n_ctx=8192)
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-8B")
messages = [{"role": "user", "content": "Hello!"}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
out = llm(prompt, max_tokens=256, stop=[tokenizer.eos_token])
print(out["choices"][0]["text"])
Fontes
1 fonte
Fontes
1 fonteVerificado 18 de out.
Artefatos de modelo
1 artefato
Artefatos de modelo
1 artefatoTrechos de fonte
3 trechos
Trechos de fonte
3 trechos--- license: apache-2.0 base_model: Qwen/Qwen3-8B tags: - gguf - qwen3 - q5_k_m - text-generation library_name: llama-cpp-python --- # Qwen3-8B-Q5_K_M Qwen3-8B in **Q5_K_M** GGUF format for CPU/GPU inference with llama.cpp or llama-cpp-python. - Source base model: [Qwen/Qwen3-8B](https://huggingface.co/Qwen/Qwen3-8B) - Original GGUF source: [Qwen/Qwen3-8B-GGUF](https://huggingface.co/Qwen/Qwen3-8B-GGUF) - Quantization: Q5_K_M (~5.85 GB) - License: Apache 2.0 ## Usage ```powershell py -3.11 -m pip install llama-cpp-python transformers ``` ```python from llama_cpp import Llama from transformers import AutoTokenizer llm = Llama(model_path="Qwen3-8B-Q5_K_M.gguf", n_ctx=8192) tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-8B") messages = [{"role": "user", "content": "Hello!"}] prompt = tokenizer.apply_chat_template( messages, tokenize=False, add_generation_prompt=True, enable_thinking=False ) out = llm(prompt, max_tokens=256, stop=[tokenizer.eos_token]) print(out["choices"][0]["text"]) ```
Source context: 60 downloads · 0 likes · Pipeline text-generation · Library llama-cpp-python · Repo Mukilan06/Qwen3-8B-Q5_K_M
Source context: 20 downloads · 0 likes · Pipeline text-generation · Library llama-cpp-python · Repo Mukilan06/Qwen3-8B-Q5_K_M
