AI Cloud Architect

Training Azerbaijani language models on Amazon SageMaker AI

AWSCustomer story by Aleksei Iancheruk, Hanno Bever, Debby Wehner, Sabir Mardanov and Irada BunyatovaAWS Artificial Intelligence Blog

Azercell Telecom LLC, Azerbaijan’s leading telecommunications provider, wanted to build an Azerbaijani large language model (LLM) on Amazon SageMaker AI for telecom use cases and a customer-facing chatbot. The challenge: adapting foundation models (FMs) to a morphologically rich language with limited training data and no existing blueprint for efficient LLM training in Azerbaijani. In a six-week collaboration, Azercell worked with the AWS Generative AI Innovation Center to establish a…

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Azercell and the AWS Generative AI Innovation Center built a three-stage pipeline on SageMaker AI to adapt Llama 3.2 1B to Azerbaijani, using a custom tokenizer, FSDP with Liger Kernels, and LoRA.

Who it is for

Teams training or adapting LLMs for low-resource or morphologically rich languages on SageMaker AI who need to cut tokens per word and GPU memory.

Key points

  • Custom 100k-vocabulary tokenizer cut tokens per word from 3.22 to 1.59 (AWS-reported).
  • Liger Kernels with FSDP gave 23% higher per-GPU throughput and 58% lower peak GPU memory on ml.p5.48xlarge (AWS-reported).
  • Fine-tuning used about 2,000 question-answer pairs on a single ml.g5.8xlarge instance.

Timeline

  1. What the customer usesScale LLM fine-tuning with Hugging Face and Amazon SageMaker AI · AWS · How-to
  2. This postTraining Azerbaijani language models on Amazon SageMaker AI

Go deeper