Instructions to use Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning 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 Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M # Run inference directly in the terminal: llama cli -hf Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M # Run inference directly in the terminal: llama cli -hf Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M
Use Docker
docker model run hf.co/Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M
- Ollama
How to use Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning with Ollama:
ollama run hf.co/Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M
- Unsloth Desktop
- Pi
How to use Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning with Docker Model Runner:
docker model run hf.co/Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M
- Lemonade
How to use Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M
Run and chat with the model
lemonade run user.qwen3.5-2b.Q4_K_M-excel_fine_tuning-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning: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:9931/v1 hermes config set model.default Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M
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:9931/v1 \ --custom-model-id "Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning:Q4_K_M" \ --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"
Qwen3.5-2B Excel Assistant โ GGUF Q4_K_M
A lightweight Qwen3.5-2B model fine-tuned on ~2,000 Excel instructionโresponse pairs and quantized to GGUF Q4_K_M โ shrinking from 2.7 GB down to 1.27 GB (52.96% smaller) for fast, fully local inference via Ollama or llama.cpp. Drop-in alternative to the larger 4B variant when running on resource-constrained hardware.
Companion model: Qwen3-4B Excel FT (higher accuracy) Training dataset: Nikhil1581/excel_dataset
Model Details
| Property | Value |
|---|---|
| Base model | Qwen3.5 2B Instruct |
| Fine-tuning method | QLoRA (via Unsloth) |
| Training data | ~1,200 Alpaca-format Excel instruction pairs |
| Quantization | GGUF Q4_K_M |
| Task | Excel / spreadsheet instruction following |
| Language | English |
| License | MIT |
What It Does
This model is specialized for Excel and spreadsheet tasks, including:
- Writing and explaining Excel formulas (
VLOOKUP,INDEX/MATCH,SUMIFS, array formulas) - Data analysis guidance (pivot tables, conditional formatting, data validation)
- VBA macro writing and debugging
- Financial modelling and worksheet structuring
- Step-by-step spreadsheet troubleshooting
Quick Start
Ollama (recommended)
# Pull and run directly
ollama run hf.co/Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning
llama.cpp
# Download the model file
wget https://huggingface.co/Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning/resolve/main/qwen3.5-2b-excel.Q4_K_M.gguf
# Run inference
./llama-cli -m qwen3.5-2b-excel.Q4_K_M.gguf \
--chat-template qwen \
-p "How do I use VLOOKUP to find a value across two sheets?" \
-n 512
Python โ llama-cpp-python
from llama_cpp import Llama
llm = Llama(
model_path="qwen3.5-2b-excel.Q4_K_M.gguf",
n_ctx=2048,
chat_format="qwen",
)
response = llm.create_chat_completion(
messages=[
{
"role": "system",
"content": "You are an expert Excel assistant. Provide clear, accurate spreadsheet help."
},
{
"role": "user",
"content": "Write a formula to calculate the running total of sales in column B, starting from B2."
}
]
)
print(response["choices"][0]["message"]["content"])
Example Prompts & Responses
Formula writing
User: How do I sum only the cells in column C where column A equals "Sales" and column B is greater than 100?
Model: Use SUMIFS:
=SUMIFS(C:C, A:A, "Sales", B:B, ">"&100)
This sums all values in column C where column A contains exactly "Sales" AND
column B is greater than 100. The "&" concatenates the operator with the number.
VBA
User: Write a VBA macro to highlight all cells in a selection that contain negative values in red.
Model: Sub HighlightNegatives()
Dim cell As Range
For Each cell In Selection
If IsNumeric(cell.Value) And cell.Value < 0 Then
cell.Interior.Color = RGB(255, 0, 0)
End If
Next cell
End Sub
Troubleshooting
User: My VLOOKUP returns #N/A even though the value exists. What's wrong?
Model: The most common causes are:
1. Leading/trailing spaces โ use TRIM(lookup_value) to clean the search term
2. Number stored as text โ format the column consistently
3. Exact match vs. approximate match โ ensure the 4th argument is FALSE (or 0) for exact match
4. Lookup column isn't the leftmost column in your table_array
Try: =VLOOKUP(TRIM(A2), Sheet2!$A:$C, 2, FALSE)
Evaluation Results
Evaluated on a held-out set of 751 Excel instruction prompts spanning formulas, VBA, financial modelling, and spreadsheet concepts. Pass/fail graded by keyword matching against expected outputs.
| Model | Correct | Total | Accuracy |
|---|---|---|---|
| Qwen3.5-2B base (untuned) | 167 | 751 | 22.2% |
| Qwen3.5-2B Excel FT (this model) | 621 | 751 | 82.7% |
| Improvement | +454 | โ | +60.5 pp |
Fine-tuning delivers a 3.7ร accuracy gain over the base model on domain-specific Excel tasks.
Training Details
| Property | Value |
|---|---|
| Framework | Unsloth + HuggingFace Transformers |
| Method | QLoRA (4-bit quantized LoRA) |
| Training steps | 200 |
| Dataset size | ~2,000 Alpaca-format instruction pairs |
| Starting loss | 1.1366 (step 25) |
| Final loss | 0.2526 (step 200) |
| Total loss reduction | 77.8% |
| Pre-quantization size | 2.7 GB |
| Post-quantization size | 1.27 GB |
| Size reduction | 52.96% (Q4_K_M) |
Training Loss Curve
Loss
1.20 โโโ
โ โโ
1.00 โ โ
โ โโ
0.80 โ โโ
โ โโโ
0.60 โ โโโ
โ โโโ
0.40 โ โโโโโโ
โ โโโ
0.20 โ โโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Steps
25 50 75 100 125 150 175 200
Step-by-Step Loss
| Step | Train Loss | ฮ from previous |
|---|---|---|
| 25 | 1.1366 | โ |
| 50 | 0.8256 | โ0.3110 (โ27.4%) |
| 75 | 0.7333 | โ0.0923 (โ11.2%) |
| 100 | 0.4733 | โ0.2600 (โ35.5%) |
| 125 | 0.4592 | โ0.0141 (โ3.0%) |
| 150 | 0.4402 | โ0.0190 (โ4.1%) |
| 175 | 0.2561 | โ0.1841 (โ41.8%) |
| 200 | 0.2526 | โ0.0035 (โ1.4%) |
The sharpest drops occur at step 50โ100 (โ35.5%) and step 150โ175 (โ41.8%), indicating the model learned core formula syntax early and then refined nuanced task understanding in the final quarter of training. Loss plateaus briefly between steps 100โ150 before a strong final descent, consistent with LoRA adapters settling into domain-specific knowledge.
For higher accuracy on complex tasks (array formulas, advanced VBA, financial modelling), use the 4B variant linked above.
Hardware Requirements
| Setup | Requirement |
|---|---|
| Model file size | 1.27 GB (down from 2.7 GB pre-quantization) |
| CPU only | 4 GB RAM |
| Recommended | 8 GB RAM / 4 GB VRAM |
Limitations
- Optimized for English-language Excel tasks; non-English function names (e.g., German
SVERWEIS) may not perform as well - Complex multi-sheet workbook reasoning may require the larger 4B model
- Not intended for general-purpose chat; best results come from Excel-specific prompts
- Model may occasionally produce plausible-looking but incorrect formulas โ always verify in your spreadsheet
Related Resources
- Qwen3-4B Excel FT (larger, higher accuracy)
- excel_dataset โ training data
- ARIA โ AI Desktop Assistant (GitHub)
Citation
If you use this model in research or a project, a mention is appreciated:
Nikhil Bisht (2026). Qwen3.5-2B Excel Fine-Tune (GGUF Q4_K_M).
HuggingFace. https://huggingface.co/Nikhil1581/qwen3.5-2b.Q4_K_M-excel_fine_tuning
Built by @Nikhil1581 ยท MIT License
- Downloads last month
- 316
4-bit