Fine-tuned Qwen3-Coder-30B-A3B-Instruct model specialized for generating n8n workflow JSONs from natural language descriptions.
This model is a QLoRA fine-tuned version of Qwen/Qwen3-Coder-30B-A3B-Instruct on the n8nbuilder-n8n-workflows-dataset, containing +2.5K n8n workflow templates.
Key Features:
Training Details:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "mbakgun/qwen3-coder-30b-a3b-n8n-workflow-generator"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
system_prompt = "You are an expert n8n workflow generation assistant. Your goal is to create valid, efficient, and functional n8n workflow configurations."
user_input = "Create a workflow that monitors a RSS feed and sends new items to Discord."
prompt = f"{system_prompt}\n\n{user_input}"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=4096,
temperature=0.7,
do_sample=True
)
workflow_json = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(workflow_json)
# Download MLX Q4 model
mlx_lm.generate \
--model mbakgun/qwen3-coder-30b-a3b-n8n-workflow-generator/mlx-q4 \
--prompt "You are an expert n8n workflow generation assistant. Your goal is to create valid, efficient, and functional n8n workflow configurations.\n\nCreate a workflow that sends Slack notifications when GitHub issues are created." \
--max-tokens 4096 \
--temp 0.7
If you want to load the base model and apply the LoRA adapter separately:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base_model_name = "Qwen/Qwen3-Coder-30B-A3B-Instruct"
adapter_name = "mbakgun/qwen3-coder-30b-a3b-n8n-workflow-generator"
tokenizer = AutoTokenizer.from_pretrained(base_model_name, trust_remote_code=True)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_name,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
model = PeftModel.from_pretrained(base_model, adapter_name)
model = model.merge_and_unload() # Optional: merge adapter into base model
This model was fine-tuned on the n8nbuilder-n8n-workflows-dataset, which contains:
This model uses the A3B (Activate 3 Billion) MoE architecture, which means:
The MoE architecture enables this model to maintain the quality of a 30B parameter model while achieving inference speeds closer to a 3B parameter model.
Apple M4 Pro (64 GB) x1
This model uses the A3B Mixture of Experts architecture, so only ~3B parameters are active per token, enabling 30B-class quality with significantly lower memory and faster inference compared to dense 30B models.
This repository contains:
adapter_model.safetensors, adapter_config.json)mlx-q4/ directory)@model{qwen3_coder_n8n_2025,
title={Qwen3-Coder-30B-A3B-n8n-Workflow-Generator},
author={mbakgun},
year={2025},
base_model={Qwen/Qwen3-Coder-30B-A3B-Instruct},
dataset={mbakgun/n8nbuilder-n8n-workflows-dataset},
url={https://huggingface.co/mbakgun/qwen3-coder-30b-a3b-n8n-workflow-generator}
}
Apache 2.0
mlx-q4/model-00002-of-00004.safetensors 5.4 GBmlx-q4/model-00001-of-00004.safetensors 5.3 GBmlx-q4/model-00003-of-00004.safetensors 5.3 GBmodel-00004-of-00013.safetensors 5.0 GBmodel-00005-of-00013.safetensors 5.0 GBmodel-00006-of-00013.safetensors 5.0 GBmodel-00007-of-00013.safetensors 5.0 GBmodel-00008-of-00013.safetensors 5.0 GBmodel-00009-of-00013.safetensors 5.0 GBmodel-00010-of-00013.safetensors 5.0 GBmodel-00011-of-00013.safetensors 5.0 GBmodel-00012-of-00013.safetensors 5.0 GBmodel-00003-of-00013.safetensors 5.0 GBmodel-00002-of-00013.safetensors 5.0 GBmodel-00001-of-00013.safetensors 5.0 GBmlx-q4/model-00004-of-00004.safetensors 1.2 GBmodel-00013-of-00013.safetensors 1.1 GBadapter_model.safetensors 849 MBHave the files? Submit a torrent.
Submit a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo mbakgun/qwen3-coder-30b-a3b-n8n-workflow-generator ./model-folderQwen/Qwen3-Coder-30B-A3B-Instruct