Instructions to use Tendrun/qwen3.6-27b-django-coder-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tendrun/qwen3.6-27b-django-coder-gguf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Tendrun/qwen3.6-27b-django-coder-gguf") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Tendrun/qwen3.6-27b-django-coder-gguf", device_map="auto") - llama-cpp-python
How to use Tendrun/qwen3.6-27b-django-coder-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Tendrun/qwen3.6-27b-django-coder-gguf", filename="qwen3.6-27b-django-coder-gguf.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Tendrun/qwen3.6-27b-django-coder-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Tendrun/qwen3.6-27b-django-coder-gguf # Run inference directly in the terminal: llama cli -hf Tendrun/qwen3.6-27b-django-coder-gguf
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Tendrun/qwen3.6-27b-django-coder-gguf # Run inference directly in the terminal: llama cli -hf Tendrun/qwen3.6-27b-django-coder-gguf
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Tendrun/qwen3.6-27b-django-coder-gguf # Run inference directly in the terminal: ./llama-cli -hf Tendrun/qwen3.6-27b-django-coder-gguf
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Tendrun/qwen3.6-27b-django-coder-gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf Tendrun/qwen3.6-27b-django-coder-gguf
Use Docker
docker model run hf.co/Tendrun/qwen3.6-27b-django-coder-gguf
- LM Studio
- Jan
- vLLM
How to use Tendrun/qwen3.6-27b-django-coder-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Tendrun/qwen3.6-27b-django-coder-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tendrun/qwen3.6-27b-django-coder-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Tendrun/qwen3.6-27b-django-coder-gguf
- SGLang
How to use Tendrun/qwen3.6-27b-django-coder-gguf with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Tendrun/qwen3.6-27b-django-coder-gguf" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tendrun/qwen3.6-27b-django-coder-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Tendrun/qwen3.6-27b-django-coder-gguf" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tendrun/qwen3.6-27b-django-coder-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Tendrun/qwen3.6-27b-django-coder-gguf with Ollama:
ollama run hf.co/Tendrun/qwen3.6-27b-django-coder-gguf
- Unsloth Studio
How to use Tendrun/qwen3.6-27b-django-coder-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Tendrun/qwen3.6-27b-django-coder-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Tendrun/qwen3.6-27b-django-coder-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Tendrun/qwen3.6-27b-django-coder-gguf to start chatting
- Pi
How to use Tendrun/qwen3.6-27b-django-coder-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Tendrun/qwen3.6-27b-django-coder-gguf
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Tendrun/qwen3.6-27b-django-coder-gguf" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Tendrun/qwen3.6-27b-django-coder-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Tendrun/qwen3.6-27b-django-coder-gguf
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Tendrun/qwen3.6-27b-django-coder-gguf
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use Tendrun/qwen3.6-27b-django-coder-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Tendrun/qwen3.6-27b-django-coder-gguf
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Tendrun/qwen3.6-27b-django-coder-gguf" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use Tendrun/qwen3.6-27b-django-coder-gguf with Docker Model Runner:
docker model run hf.co/Tendrun/qwen3.6-27b-django-coder-gguf
- Lemonade
How to use Tendrun/qwen3.6-27b-django-coder-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Tendrun/qwen3.6-27b-django-coder-gguf
Run and chat with the model
lemonade run user.qwen3.6-27b-django-coder-gguf-{{QUANT_TAG}}List all available models
lemonade list
qwen3.6-27b-django-coder-gguf
A Qwen3.6 27B LoRA fine-tune focused on Python/Django coding-agent workflows, released as a GGUF Q4_K_M quantization for local inference.
This model was trained to improve local coding-agent behavior on Python repositories, with emphasis on Django project development, traceback-driven debugging, and iterative code repair.
The release includes a GGUF Q4_K_M quantization intended for local inference with llama.cpp-compatible tools and coding agents.
Model Overview
- Model name:
qwen3.6-27b-django-coder-gguf - Base model:
Qwen/Qwen3.6-27B - Fine-tuning method: LoRA
- Release format: GGUF
- Quantization: Q4_K_M
- Primary focus: Python and Django coding-agent workflows
- Recommended use: local coding assistants, repository-level debugging, Django backend implementation, iterative code repair
Intended Use
This model is intended for local coding-agent workflows, especially when working with Python and Django repositories.
It is designed for tasks such as:
- building Django applications,
- adding backend features to existing Django projects,
- debugging Django runtime errors from logs and tracebacks,
- fixing issues across models, views, URLs, templates, forms, and admin configuration,
- performing iterative code repair inside a local development loop.
The model is best used inside coding-agent tools such as Kilo Code, llama.cpp-compatible interfaces, LM Studio, Ollama, or similar local inference setups.
Training Data Preparation
The training dataset was built from selected Python/Django repositories.
The data preparation process used a repository-to-SFT workflow based on Repo-to-sft, which extracts real Python/Django code from repositories and prepares supervised fine-tuning records in the following format:
Message, Response, Reasoning
The important design choice is that the Response field is based on original repository code, while the local model is used to generate the corresponding instruction-style Message and Reasoning.
The dataset was focused on Python .py files and Django-oriented repository code rather than frontend-specific training.
Dataset Design Rationale
The dataset was intentionally curated and balanced for practical backend Django/Python development rather than general Python syntax.
The goal was to expose the model to repository-level implementation patterns that appear in real Django systems, including database relationships, ORM/queryset usage, transactions, forms, validation, middleware, authentication, authorization, permissions, security-related patterns, signals, admin configuration, migrations, DRF/API views, and iterative traceback-driven debugging.
This design was intended to fill practical behavior gaps in local coding-agent workflows: understanding how Django components interact across files, making focused backend changes, preserving project structure, and repairing runtime issues without unnecessary rewrites.
The dataset contains 24k+ SFT records in Message, Response, Reasoning format and is weighted toward backend implementation patterns rather than frontend styling.
Source Repositories
The dataset was created from multiple Python/Django repositories, including projects such as:
- Django real-world example projects
- Django Oscar
- edx-platform
- Sentry
- Django polls examples
- Django todo applications
- Django Guardian
- Django framework code
- additional Python/Django repository datasets prepared for training
The goal was not to train a general frontend model, but to improve backend-oriented Python/Django coding behavior.
Conversion and Quantization Pipeline
The final GGUF model was produced using the following pipeline:
Qwen/Qwen3.6-27B base model
+
LoRA adapter
↓
merged BF16/HF model
↓
GGUF F16
↓
GGUF Q4_K_M
During conversion, the merged model configuration required a compatibility fix before GGUF export.
The merged config declared:
"mtp_num_hidden_layers": 1
However, the merged weights did not contain MTP / NextN tensors for an additional layer. This caused the GGUF loader to expect a missing tensor:
blk.64.attn_norm.weight
The fix was to set:
"mtp_num_hidden_layers": 0
before running the HF-to-GGUF conversion. After this config correction, the F16 GGUF loaded successfully and was then quantized to Q4_K_M.
Observed Behavior
In local manual testing, the model showed strong practical behavior for Django coding-agent workflows.
Observed strengths:
- created a working Django e-commerce application,
- implemented cart, wishlist, orders, and checkout flows,
- quickly fixed Django errors when given runtime logs or tracebacks,
- produced shorter and more direct coding-agent outputs compared to the base model in local testing,
- worked well in an iterative development loop: generate code, run app, inspect error, patch code.
The model appears strongest on backend-oriented Django work, especially when editing or debugging existing Python/Django code.
Known Limitations
This model is primarily backend-oriented.
Known limitations:
- frontend design quality can be basic or visually inconsistent,
- generated UI may look plain or overly template-like,
- form validation may require explicit prompting and manual review,
- security-sensitive logic must always be reviewed,
- generated payment-related code should be treated as demo code only,
- the model has not been evaluated on a standardized public coding benchmark,
- outputs may contain bugs or incomplete assumptions.
- Because the dataset was intentionally backend-focused, frontend design quality can be basic or visually inconsistent. The model should be evaluated primarily as a Python/Django backend coding assistant rather than a frontend/UI generation model.
For production Django projects, always review generated code, run tests, inspect migrations, and manually verify authentication, authorization, validation, and security-sensitive behavior.
Recommended System Prompt
For Django-focused work, the following system instruction is recommended:
You are a Django-only Python coding agent. When the user asks for a Django app, always use Django project structure, Python files, templates, static files, models, views, urls, forms, admin and migrations. Never use Node.js, Express, npm, React, Next.js, Vite or TypeScript unless the user explicitly asks for them.
For stricter backend-only work:
Focus on Django backend implementation. Prefer models, views, forms, URLs, admin, migrations, templates, and server-side validation. Do not prioritize frontend styling unless explicitly requested.
Example Usage
llama.cpp
llama-cli \
-m qwen3.6-27b-django-coder-Q4_K_M.gguf \
-p "Create a Django e-commerce app with products, cart, wishlist, orders, and checkout." \
-n 2048
llama-server
llama-server \
-m qwen3.6-27b-django-coder-Q4_K_M.gguf \
-c 32768
Example Prompt
You are working inside an existing Django project.
Add a wishlist feature:
- authenticated users can add and remove products from wishlist
- create or update the required model
- add views and URLs
- update templates
- do not use Node.js or frontend frameworks
- preserve the existing Django project structure
Debugging Prompt
Fix this Django error. Explain the cause briefly, then patch the relevant files only.
Traceback:
[paste traceback here]
Suggested Evaluation Areas
Recommended areas to test:
| Area | What to check |
|---|---|
| Django project generation | Does it create valid Django structure? |
| Existing project editing | Does it preserve the current architecture? |
| Traceback debugging | Does it identify the correct file and fix the root cause? |
| Forms and validation | Does it use Django Forms and backend validation correctly? |
| Auth and permissions | Does it prevent users from accessing other users' data? |
| Migrations | Are model changes reflected in migrations? |
| Frontend output | Is the UI usable, even if simple? |
| Token efficiency | Does it solve tasks with fewer tokens than the base model? |
Release Notes
This release contains only the GGUF Q4_K_M model file.
No adapter, merged BF16 model, dataset, or evaluation suite is included in this release.
Disclaimer
This is a code-generation model intended for local development assistance. Generated code should be reviewed before use. Do not use generated payment, authentication, authorization, or validation logic without manual inspection and testing.
- Downloads last month
- 420
We're not able to determine the quantization variants.
Model tree for Tendrun/qwen3.6-27b-django-coder-gguf
Base model
Qwen/Qwen3.6-27B