Instructions to use Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound", filename="Qwen3-Coder-30B-A3B-Instruct-128x1.8B-Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M
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 Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M
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 Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M
Use Docker
docker model run hf.co/Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M
- Ollama
How to use Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound with Ollama:
ollama run hf.co/Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M
- Unsloth Studio new
How to use Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound 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 Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound 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 Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound to start chatting
- Pi new
How to use Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M
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": "Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M
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 Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound with Docker Model Runner:
docker model run hf.co/Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M
- Lemonade
How to use Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound-Q4_K_M
List all available models
lemonade list
Model Details
This model is a gguf q4km format of Qwen/Qwen3-Coder-30B-A3B-Instruct generated by intel/auto-round algorithm. Embedding layer and lm-head layer are fallback to 8 bits and non expert layers are fallback to 4 bits. Please refer to Section Generate the model for more details.
Please follow the license of the original model.
How To Use
Llamacpp inference
/llama-cli -hf Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound
> Write a quick sort algorithm.
Here's a quick sort algorithm implementation in Python:
```python
def quicksort(arr, low, high):
"""
Quick sort implementation
arr: array to be sorted
low: starting index
high: ending index
"""
if low < high:
# Partition the array and get pivot index
pivot_index = partition(arr, low, high)
# Recursively sort elements before and after partition
quicksort(arr, low, pivot_index - 1)
quicksort(arr, pivot_index + 1, high)
def partition(arr, low, high):
"""
Partition function using last element as pivot
"""
# Choose the rightmost element as pivot
pivot = arr[high]
# Index of smaller element (indicates right position of pivot)
i = low - 1
for j in range(low, high):
# If current element is smaller than or equal to pivot
if arr[j] <= pivot:
i += 1
arr[i], arr[j] = arr[j], arr[i] # Swap elements
# Place pivot in its correct position
arr[i + 1], arr[high] = arr[high], arr[i + 1]
return i + 1
# Wrapper function for easier use
def quick_sort(arr):
if len(arr) <= 1:
return arr
quicksort(arr, 0, len(arr) - 1)
return arr
# Example usage
if __name__ == "__main__":
# Test the algorithm
test_array = [64, 34, 25, 12, 22, 11, 90]
print("Original array:", test_array)
sorted_array = quick_sort(test_array.copy())
print("Sorted array:", sorted_array)
# Test with edge cases
print("Empty array:", quick_sort([]))
print("Single element:", quick_sort([42]))
print("Already sorted:", quick_sort([1, 2, 3, 4, 5]))
print("Reverse sorted:", quick_sort([5, 4, 3, 2, 1]))
```
**How it works:**
1. **Choose a pivot**: Select an element from the array (here we use the last element)
2. **Partition**: Rearrange the array so that:
- Elements smaller than the pivot go to the left
- Elements greater than the pivot go to the right
3. **Recursively sort**: Apply the same process to the sub-arrays on both sides of the pivot
**Time Complexity:**
- Best/Average case: O(n log n)
- Worst case: O(n²) - when pivot is always the smallest or largest element
**Space Complexity:** O(log n) - due to recursion stack
**Key Features:**
- In-place sorting (modifies original array)
- Not stable (doesn't preserve relative order of equal elements)
- Efficient for large datasets
- Good average performance
The algorithm handles edge cases like empty arrays, single elements, and already sorted arrays.
Generate the model
Here is the sample command to reproduce the model
auto_round --format gguf:q4_k_m --iters 0 --nsamples 512 --dataset github-code-clean --model Qwen/Qwen3-Coder-30B-A3B-Instruct/ --output_dir tmp_autoround
Ethical Considerations and Limitations
The model can produce factually incorrect output, and should not be relied on to produce factually accurate information. Because of the limitations of the pretrained model and the finetuning datasets, it is possible that this model could generate lewd, biased or otherwise offensive outputs.
Therefore, before deploying any applications of the model, developers should perform safety testing.
Caveats and Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Here are a couple of useful links to learn more about Intel's AI software:
- Intel Neural Compressor link
Disclaimer
The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please consult an attorney before using this model for commercial purposes.
Cite
@article{cheng2023optimize, title={Optimize weight rounding via signed gradient descent for the quantization of llms}, author={Cheng, Wenhua and Zhang, Weiwei and Shen, Haihao and Cai, Yiyang and He, Xin and Lv, Kaokao and Liu, Yi}, journal={arXiv preprint arXiv:2309.05516}, year={2023} }
- Downloads last month
- 323
4-bit
Model tree for Intel/Qwen3-Coder-30B-A3B-Instruct-gguf-q4km-AutoRound
Base model
Qwen/Qwen3-Coder-30B-A3B-Instruct