LangSmith has introduced a new tool called smithtune, a command-line interface (CLI) for fine-tuning models. It helps teams turn agent trajectories stored in LangSmith into custom models. The process includes dataset creation, training, and evaluation, all in one workflow.
smithtune supports supervised fine-tuning, which trains models based on examples of good behavior. It uses trajectories that record what the agent saw at each step, preserving context. This makes training more accurate, especially for complex tasks.
The CLI can pull data from LangSmith, filter and label it, and prepare it for training. It also splits data into training, validation, and test sets. Users can review and adjust training settings before starting the process.
Training runs on Fireworks or Baseten, which handle the infrastructure. smithtune monitors performance and saves the best model based on validation results. After training, it compares the fine-tuned model with the original base model using built-in evaluation tools.
This new tool makes it easier for teams to create specialized models without building data pipelines or managing infrastructure. It aims to lower costs and improve speed for custom AI solutions.
Why it matters
This tool helps teams build better models faster and cheaper, with more control over training data and results.
What to do
Try smithtune on GitHub and use agent trajectories to create your own fine-tuned models. Review training settings before starting.
Source: https://www.langchain.com/blog/langsmith-fine-tuning



