FormulaLM Qwen3-1.7B v3
Excel Formula Generator from Text
2 min readupdated
The model is designed to automatically generate executable Excel formulas (like =...) based on table schemas, cell previews, and natural language prompts. It is fine-tuned on Qwen/Qwen3-1.7B using the LoRA approach (a lightweight add-on to the base model) in non-thinking mode. The new v3 version improves generalization on real spreadsheets and handles complex queries, including tricky ranges and 2D lookups. The model is useful for analysts, accountants, and developers of automated spreadsheet solutions.
Key features
- High accuracy: 90% correct formulas on a test set of real spreadsheets and improved results on the external SpreadsheetBench benchmark.
- Contextual understanding: accounts for cell previews, multi-table layouts, dynamic wildcards, and nested
IFfunctions. - Training efficiency: built using the Unsloth QLoRA method on a free environment with low VRAM requirements.
- Flexible deployment: available as a LoRA adapter for integration or in a ready-to-use quantized GGUF format for running on a CPU.
What you can do
- Chatbot integration: connect the model to an assistant to automatically write complex Excel formulas from user text prompts.
- Spreadsheet automation: embed it in analytical tools for quick formula generation based on the structure of real worksheets.
- Formula testing: use the local GGUF version of the model to check and build formulas offline.
Example
Prompt: "Calculate the total sum including the discount from cell B2 for the range C5:C20"
Generated formula result:=SUM(C5:C20)*B2
Read more
DetailsBenchmarks: 90.0% on
test_real_v2 and 30.4% on SpreadsheetBench.Hardware requirements: peak consumption around 4.24 GB VRAM during training, quantized version (Q5_K_M, 1.20 GB) available for CPU.
Limitations: only the Excel dialect is supported (36 single-sheet functions), synthetic data used for initial training, checking formulas before production is recommended.
Training details: Unsloth QLoRA, r=16, lora_alpha=32, 1 epoch on the
Qwen/Qwen3-1.7B base.









Comments