Heinecke says the rapid pace of new models and features makes it hard for practitioners to keep up. Moving from demos to production requires attention to efficiency, especially when serving AI at scale. She describes her Salesforce team’s work shipping LLM solutions and publishing research and open-source projects.
A Practical Guide to Efficient AI
Speaker
Shelby Heinecke, who leads an AI research team at Salesforce, shares practical ways AI builders can improve efficiency at a conference focused on putting AI into customers’ hands.
Heinecke groups efficiency techniques into architecture, pretraining, fine-tuning, inference, and prompting. Examples include small models and mixture-of-experts architectures, mixed-precision training, LoRA or QLoRA, post-training quantization, and concise prompts. She focuses on small models and quantization as approaches engineers can apply directly.
Large models such as PaLM at 540 billion parameters consume substantial memory and compute. Heinecke defines small LLMs as 13 billion parameters or fewer, noting their lower resource needs and latency can make them suitable for cloud, on-premises, mobile, laptop, and edge deployments. She highlights Phi-3 at 3.8 billion parameters, Mobile LLM at 350 million, and an Octopus model fine-tuned for Android tasks.
Quantization reduces the precision of model weights, for example from 16 or 32 bits to 4 bits, lowering storage and resource use. Heinecke describes results showing reduced disk space and time to first token, with little performance change in one evaluated case at 4 bits; performance dropped at 3 bits. She recommends measuring performance and names llama.cpp and ONNX Runtime as tools.
Heinecke introduces Mobile AI Bench, an open-source framework from her team for evaluating quantized models across text, trust and safety, and vision-language tasks. Its iOS app measures latency and hardware usage for on-device models, including battery drain. She emphasizes evaluation before deployment to check that model quality and safety hold up.
Takeaways
- Treat efficiency as a core part of moving AI from prototype to production, especially when resources are constrained.
- Consider small models when deployment needs include low latency or mobile and edge hardware.
- Use parameter-efficient fine-tuning methods such as LoRA or QLoRA when full fine-tuning is unnecessary.
- Try 4-bit quantization to reduce resource use, then measure quality on your own tasks before deploying.
- Include trust and safety checks when evaluating quantized models.
Mentioned in this talk
Search inside this talk
What was claimed 13
- works atShelby Heinecke works at
Salesforce
Senior AI Research Manager (Senior Manager, Research)“I lead an AI research team at Salesforce.”
YouTube Verified2 sources· Talk, Web· archived
- feature
Salesforce: Deploying AI for 10 years
“Salesforce has been deploying AI for 10 years.”
YouTube Unverified1 source· Talk
- metric
Salesforce: Over 300 AI patents and over 227 AI research papers in the last 10 years
“Salesforce has accumulated over 300 AI patents and over 227 AI research papers.”
YouTube Unverified1 source· Talk
- metric
Salesforce: AI research team founded in 2014
“The AI research team was founded in 2014.”
YouTube Unverified1 source· Talk
- metric
Phi-3: 3.8 billion parameters“It's a 3.8-billion-parameter model.”
YouTube Unverified1 source· Talk
- featureMobile LLM: After fine-tuning, performs on par with 7B models on tasks
“After fine-tuning, it's on par with 7B models on tasks.”
YouTube Unverified1 source· Talk
- metricMobile LLM: 350 million parameters
“This one has 350 million parameters.”
YouTube Unverified1 source· Talk
- featureOctopus model: Reported to outperform GPT-4 and Llama 7B on Android tasks after fine-tuning
“After fine-tuning, it's outperforming GPT-4 and Llama 7B on these Android tasks.”
YouTube Unverified1 source· Talk












