Home icon

Customize small language models on AWS with automotive terminology

Machine Learning Blog



This article discusses the process of customizing small language models (SLMs) for specialized domains, specifically focusing on automotive diagnostics using AWS services like Amazon SageMaker and Amazon Bedrock. The key highlights of the approach include:

  • Using the Automotive_NER dataset to fine-tune a Meta Llama 3.1 8B Instruct model
  • Employing advanced data selection techniques using TF-IDF vectorization to create a balanced training dataset
  • Applying Low Rank Adaptation (LoRA) for efficient model fine-tuning
  • Demonstrating two deployment methods: SageMaker real-time inference and Amazon Bedrock Custom Model Import
  • Evaluating the fine-tuned model using BLEU scores and Normalized Levenshtein distance

The evaluation showed that the fine-tuned model outperformed base models in understanding automotive terminology and generating more accurate diagnostic responses. The approach can be extended to other specialized domains, showcasing the potential of customizing small language models for specific use cases.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Nov 21
2024
Fine-tune large language models with Amazon SageMaker Autopilot
Feb 13
2024
Customize large language models with oil and gas terminology using Amazon Bedrock
Jan 7
2025
Evaluate large language models for your machine translation tasks on AWS
Oct 27
2025
Building large language models for the public sector on AWS

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.