---
title: "Introducing LangSmith Fine-Tuning"
description: "LangSmith Fine-Tuning and its `smithtune` CLI turn agent trajectories recorded in LangSmith into supervised fine-tuned models in one workflow."
url: "https://swe.quest/articles/introducing-langsmith-fine-tuning-14e7ff1bff14370e"
canonical: "https://www.langchain.com/blog/langsmith-fine-tuning"
source: "LangChain"
published: "2026-10-08"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 7
tags: ["model-training","ai-agents","llms","evals"]
---

# Introducing LangSmith Fine-Tuning

A post on [LangChain](https://swe.quest/sources/langchain.md), published 2026-10-08, 7 min read, Announcement. Original: [https://www.langchain.com/blog/langsmith-fine-tuning](https://www.langchain.com/blog/langsmith-fine-tuning)

## Summary

LangSmith Fine-Tuning and its \`smithtune\` CLI turn agent trajectories recorded in LangSmith into supervised fine-tuned models in one workflow. The workflow covers curating and labeling golden trajectories, LoRA training on Fireworks or Baseten with checkpoint selection by validation loss, and replay-based evaluation against the base model. Trajectories record the exact context, including tool availability, the model saw at each turn. In internal tests, SFT lifted Kimi K3 from 90.0 to 96.0 on an issue-detection benchmark, and raised Qwen-3.8-27B's code-review F1 from 48.9% to 53.7% with about 30% fewer model and tool calls. Data selection was decisive, since a less curated training set lowered F1, and the recommendation is to exhaust harness engineering before trying SFT.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)

## Prerequisites

- supervised fine-tuning basics ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- LLM agents and tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- LLM tracing ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

LangSmith, smithtune, Fireworks, Baseten Loops, LoRA, Kimi K3, Qwen-3.8-27B, OpenSWE Review

## Related posts

- [How Podium optimized agent behavior and reduced engineering intervention by 90% with LangSmith](https://swe.quest/articles/how-podium-optimized-agent-behavior-and-reduced-engineering-intervention-by-90-fa598a71aaa6c2e6.md): LangChain · 2026-08-26 · Easy · 6 min read · Evaluation, AI agents, LLMs, Observability, Model training
  Podium used LangSmith tracing and evaluation to improve its AI Employee agent, which makes 20-30 LLM calls per customer interaction.
- [CoderForge-Preview: SOTA open dataset for training efficient coding agents](https://swe.quest/articles/coderforge-preview-sota-open-dataset-for-training-efficient-coding-agents-83e1f3c7a7bdb67a.md): Together AI · 2026-02-25 · Hard · 14 min read · Model training, AI for coding, AI agents, Evaluation, LLMs
  CoderForge-Preview is an open dataset of 258K test-verified coding agent trajectories (155K passing) covering 51K tasks across 1,655 repositories from R2E-Gym, SWE-Smith and SWE-Rebench.
- [Sidekick's continual learning loop](https://swe.quest/articles/sidekick-s-continual-learning-loop-f72e46000910fa09.md): Shopify Engineering · 2026-08-05 · Hard · 9 min read · Model training, Evaluation, Inference & serving, LLMs, Cost optimization
  Shopify's Sidekick GraphQL agent improves daily through a continual learning loop that turns production failures into model weight updates, beating frontier-model quality while cutting estimated serving costs from about $27M to $1M per year (96%).
- [Training and Finetuning Embedding Models with Sentence Transformers](https://swe.quest/articles/training-and-finetuning-embedding-models-with-sentence-transformers-d6dcb3eebe384143.md): Hugging Face · 2024-05-28 · Medium · 14 min read · Model training, Python, Machine learning, Search, Evaluation
  Sentence Transformers v3 trains and finetunes embedding models through a SentenceTransformerTrainer that combines Hugging Face datasets, a loss function, optional training arguments and evaluators.
- [Flow generation through natural language: An agentic modeling approach](https://swe.quest/articles/flow-generation-through-natural-language-an-agentic-modeling-approach-84b1ba2f65ecd1a0.md): Shopify Engineering · 2026-04-22 · Medium · 12 min read · Model training, AI agents, Evaluation, LLMs, ML platforms
  Shopify fine-tuned Qwen3-32B into a tool-calling agent that turns natural-language requests into Shopify Flow automations for Sidekick, reporting 2.2x lower latency and 68% lower cost than the closed frontier model it replaced.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
