A LoRA fine-tune of
Nanbeige4.1-3B trained on electrical engineering Q&A data with the goal of reducing reasoning trace length and producing more concise, emoji-free answers.
This is my first end-to-end LLM fine-tuning experiment. Results and analysis are documented below.
The behavioural objective was achieved — reasoning traces and answer length were both significantly reduced:
However, LLM-as-judge evaluation on 50 held-out EE Q&A pairs showed significant quality degradation:
Full pipeline and methodology in the
GitHub repository.
1from unsloth import FastLanguageModel
2
3model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name="amoughnieh/Nanbeige4.1-3B-EE-Reasoning-SFT",
5 max_seq_length=8192,
6 load_in_4bit=True,
7)
8
9system_prompt = "You are an expert electrical engineer. Answer technical questions accurately and in depth."
The quantized GGUF file
Nanbeige4.1-3B-EE-FT-r11-Q6_K.gguf is included in this repo and can be loaded directly in
Ollama or
LM Studio.