A QLoRA adapter for Qwen3.5-4B trained as NC Sound Lab's mixing and mastering assistant. It turns a plain-language production question into a practical answer, or into a single JSON recipe with concrete gain, EQ, compression, saturation, sidechain, reverb and loudness values.
This is the model behind the Mixing model link on NCSoundlab. It is a text model: it does not listen to audio and it does not render a mix. It gives the engineer moves to make in NCSoundlab, NC Studio or another DAW.
| Base model | unsloth/Qwen3.5-4B |
| Adapter | LoRA, rank 32, alpha 32, dropout 0.05 |
| Training | 4-bit QLoRA on one Kaggle T4, 729 steps / 3 epochs |
| Trainable parameters | Reported by the run at roughly 1% of the base model |
| Train / validation / test rows | 1,937 / 154 / 78 |
| Train loss | 0.3309 |
| Validation loss | 0.2292 |
| Test loss | 0.2459 |
| Peak VRAM | 5.0 GB |
| Adapter size | 169.9 MB |
| Training run | Kaggle: qwen-mix-full-train-v2 |
The training data combines mixing recipes, engineer notes, mastering chains, reference tracks, psychoacoustics, restoration material and NC Studio workflow notes. Duplicate and holdout rows were removed before training. The test split was never trained on.
The run's held-out comparison was strongest on audio rows: test loss 0.6626 on the 78 audio rows, versus 2.2924 for the coding adapter trained on the same base. The audio adapter is not a general coding model and should not be used as one.
The training system prompt was:
You are NC Sound Lab's expert audio mixing and mastering engineer. You give precise, practical advice on gain staging, EQ, compression, saturation, spatial processing, bus routing, reference matching, and mastering. When the user asks for a mixing recipe, return a single valid JSON object with concrete numbers (Hz, dB, ms, ratios, LUFS). Do not wrap JSON in markdown fences.
Ask for a recipe when you want structured output:
Mix a trap 808 at 140 BPM. Return a JSON recipe with gain, EQ, saturation, sidechain and reverb.
Ask a normal question when you want prose:
How do I get a modern pop vocal to sit forward without harshness? Give exact EQ and compression moves.
Install the adapter runtime:
pip install "transformers>=5.16" peft accelerate torch
Attach the adapter to the base model. Qwen3.5 is a vision-language architecture, so use the image-text-to-text auto class recommended by the base model card:
import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer
from peft import PeftModel
base_id = "unsloth/Qwen3.5-4B"
adapter_id = "gsmg878/ncsound-audio-mix-4b"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
model = AutoModelForImageTextToText.from_pretrained(
base_id,
torch_dtype="auto",
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter_id)
model.eval()
system = (
"You are NC Sound Lab's expert audio mixing and mastering engineer. "
"You give precise, practical advice on gain staging, EQ, compression, saturation, "
"spatial processing, bus routing, reference matching, and mastering. "
"When the user asks for a mixing recipe, return a single valid JSON object with "
"concrete numbers (Hz, dB, ms, ratios, LUFS). Do not wrap JSON in markdown fences."
)
question = (
"Mix a trap 808 at 140 BPM. Return a JSON recipe with gain, EQ, saturation, "
"sidechain, and reverb."
)
messages = [
{"role": "system", "content": system},
{"role": "user", "content": question},
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=False,
)
inputs = tokenizer(text=prompt, return_tensors="pt").to(model.device)
with torch.inference_mode():
output = model.generate(
**inputs,
max_new_tokens=256,
do_sample=False,
repetition_penalty=1.05,
pad_token_id=tokenizer.pad_token_id or tokenizer.eos_token_id,
)
new_tokens = output[0][inputs["input_ids"].shape[1]:]
print(tokenizer.decode(new_tokens, skip_special_tokens=True).strip())
Always pass the prompt with tokenizer(text=prompt, ...). Qwen3.5 treats a positional
string as an image input on some versions; the keyword avoids that trap.
The adapter weights are released under Apache-2.0. The base model
unsloth/Qwen3.5-4B and the Qwen3.5 model
family remain subject to their own licence and terms. Check the base model card before
commercial deployment.
Trained by NC Sound / Overlay 365 in Raleigh, North Carolina, on Kaggle with Unsloth 2026.10.9, TRL 1.15.0, Transformers 5.16.1, Torch 2.11.0+cu128 and PEFT 0.20.0.
unsloth/Qwen3.5-4B