# Speeding up language models for travel applications

DevFeed: [Speeding up language models for travel applications](<https://devfeed.tech/articles/speeding-up-language-models-for-travel-applications-107128.md>)

Original publisher: [Read original article](<https://www.amazon.science/blog/speeding-up-language-models-for-travel-applications>)

Author: Daniel Zagyva; Laurens van der Maas

Published: 2026-10-29T16:51:26Z

Content type: article

Language: en

Sources: [Amazon Science homepage](<https://devfeed.tech/sources/amazon-science-homepage.md>)

Topics: [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [applications](<https://devfeed.tech/tags/applications.md>), [compression](<https://devfeed.tech/tags/compression.md>), [conversational-ai](<https://devfeed.tech/tags/conversational-ai.md>), [distillation](<https://devfeed.tech/tags/distillation.md>), [language](<https://devfeed.tech/tags/language.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [search-and-information-retrieval](<https://devfeed.tech/tags/search-and-information-retrieval.md>), [speed](<https://devfeed.tech/tags/speed.md>), [techniques](<https://devfeed.tech/tags/techniques.md>), [travel](<https://devfeed.tech/tags/travel.md>)

## AI overview

Combining knowledge distillation (KD) with Medusa made compact, task-specific travel models match the quality of a 70-billion-parameter teacher while running 10-20 times faster, depending on the use case. KD trained TinyLlama (1.1B parameters) on human-labeled data and teacher-generated predictions, closing more than 90% of its initial performance gap; Medusa added parallel token prediction, yielding a further 2-3.6x inference speedup. Medusa-1 trained its heads separately after fine-tuning and freezing the base model, while Medusa-2 trained everything in one stage; both had comparable speedups and no meaningful quality loss, with Medusa-2's pipeline described as more practical for production. In Booking.com applications, Smart Filters responded 15x faster for 99% of queries, AI Trip Planner engagement rose 2.9% versus GPT-3.5, and accommodation descriptions received 1.4% more helpful ratings at less than one-third the cost of GPT-4.

## Source excerpt

Two optimization techniques, when combined, can significantly improve a model's speed and cost effectiveness without sacrificing quality.