Downloads · 30 days
20
6% of all-time downloads
nadizik/Qwen2.5-1.5B-Instruct-Code-En-GGUF-789MB
Qwen2.5-1.5B-Instruct-Code-En-GGUF-789MB is a text generation model from nadizik. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This is an extremely optimized, lightweight version of Qwen2.5-1.5B-Instruct, compressed down to just 789 MB in GGUF format (INT4 quantization).
Downloads · 30 days
20
6% of all-time downloads
All-time downloads
316
Public
Repo size
808 MB
Likes
0
Public
Click a slice to open those files.
.gguf808 MB · 100%
From the Hugging Face model README
This is an extremely optimized, lightweight version of Qwen2.5-1.5B-Instruct, compressed down to just 789 MB in GGUF format (INT4 quantization).
To achieve this ultra-compact size, advanced optimization techniques were applied, including heavy pruning of non-essential language components and embedding reduction. The model's primary focus has been narrowed down to English language proficiency and Python programming/scripting tasks, while completely preserving its conversational, reasoning, and chain-of-thought ("thinking") capabilities.
.gguf file from this repository.llama-cpp-pythonfrom llama_cpp import Llama
llm = Llama( model_path="./model_q4_k_m.gguf", n_ctx=2048, # Context window size n_threads=4, # Number of CPU threads (adjust based on your CPU) n_gpu_layers=0 # Increase if you want to offload layers to GPU )
system_prompt = "You are a helpful AI assistant specialized in English and Python coding." user_prompt = "Write a clean Python script to scrape data from a website using requests and BeautifulSoup."
full_prompt = ( f"<|im_start|>system\n{system_prompt}<|im_end|>\n" f"<|im_start|>user\n{user_prompt}<|im_end|>\n" f"<|im_start|>assistant\n" )
print("\n--- Generating Response ---") output = llm( prompt=full_prompt, max_tokens=1024, temperature=0.7, stop=["<|im_end|>", "<|im_start|>"], # Crucial stop tokens for GGUF format echo=False )
print(output["choices"][0]["text"].strip())