AIToday
Large Language ModelsAI Coding AssistantsQiita 機械学習Published: Oct 20, 2026, 22:01 JST

LoRA tuning of Qwen2.5-1.5B on small Japanese data: format beats volume

Send on LINE
LoRA tuning of Qwen2.5-1.5B on small Japanese data: format beats volume

3 Key Points

  1. What happened

    A hands-on guide fine-tunes Qwen/Qwen2.5-1.5B-Instruct with LoRA (r=8, alpha=16) on a small JSONL set of Japanese Q&A pairs, masking user-input labels with -100 and running 3 epochs at a 2e-4 learning rate.

  2. Why it matters

    The author argues small datasets are better used to standardize answer format, honor in-house terminology and unify tone than to memorize broad knowledge, since a few examples can erode the base model's ability.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The piece is written from direct experience rather than as a product announcement. In the configuration the author actually tried, the base model's weights stayed frozen and only a small set of additional parameters was trained, which the author describes as a relatively manageable procedure.

The guide is explicit about where this approach fits. Rather than loading the model with large amounts of new knowledge, it is suited to aligning responses to a specific format, matching in-house terminology, handling a limited set of FAQ-style questions, and unifying tone and honorific style. With only a few examples, the author warns, attempting to teach a broad domain can damage the original model's capabilities.

Practical caution runs through the steps: mixed polite and plain styles in the training data tend to produce wavering output, duplicate or contradictory answers hit small datasets especially hard, and answers should be checked after training because a high learning rate encourages rote memorization. Evaluation is split into identical questions, rephrased similar questions, and general questions absent from the training data — the last a check that the model has not degraded. The suggested starting point is a few dozen clean samples, with data volume and model size increased only after the output has been reviewed.

FAQ
Which model and settings does the walkthrough use?
It uses Qwen/Qwen2.5-1.5B-Instruct with LoRA set to r=8, lora_alpha=16, dropout 0.05, and target modules q_proj, k_proj, v_proj and o_proj.
How does it avoid overfitting on a few examples?
It starts with a small LoRA setting and few epochs, avoids too-high learning rates that memorise a handful of answers, and evaluates on paraphrased questions the model was not trained on.
When is LoRA not enough?
For facts that change often, the author suggests combining LoRA with RAG, passing search results into the prompt rather than relying on fine-tuning alone.
Qiita 機械学習Read Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleCharakuru kit splits VRM avatar work between user and AI