Dzhulgakov says general-purpose proprietary models can be slower and more costly than a smaller model tailored to a narrow task. He cites fine-tuned Llama 3 performing similarly on some function-calling tasks at up to 10 times the speed, and estimates that a high-volume GPT-4 or GPT-4o workload could cost around $7 million a year.
Customized, production ready inference with open source models
Speaker
Dmytro (Dima) Dzhulgakov of Fireworks AI discusses productionizing and customizing open source models at an AI Engineer event.
Running open models requires teams to find GPUs, choose frameworks, download models, and tune performance, then repeat that work as models change. Dzhulgakov also points to workload-specific tradeoffs such as latency versus throughput, and the operational demands of scaling, telemetry, and observability.
Fireworks built a serving stack with custom CUDA kernels and deployment orchestration, aiming to optimize cost and latency for each workload. For long, repetitive prompts common in RAG, Dzhulgakov describes using caching and other settings to improve throughput while maintaining latency. He also says LoRA adapters can share a GPU, allowing thousands of variants to be served without fixed costs per model.
Dzhulgakov describes applications as compound systems that combine models with retrieval, tools, and external actions. Fireworks' FireFunction models handle chat and function calling; in the demo, a model identifies the top cloud providers, retrieves their stock prices, and sends them to a charting tool. The open-source demo also shows how an agent can use conversation context and switch topics.
Fireworks offers serverless inference for prototyping, on-demand dedicated hardware for greater control, and enterprise arrangements with hardware personalization and performance tuning. Dzhulgakov says the service supports fine-tunes and LoRA adapters, is OpenAI API-compatible, and was serving more than 150 billion tokens per day when he last checked.
Takeaways
- Benchmark a smaller, fine-tuned model against a general-purpose model on your actual task, including latency and cost.
- Tune inference settings to your prompt lengths and latency targets; throughput gains can reduce GPU needs.
- Plan for deployment, monitoring, and scaling work when estimating the effort to productionize open models.
- Treat retrieval, function calling, and external tools as parts of the application architecture, not add-ons to a model.
- Choose an inference setup that matches your current needs, then revisit dedicated hardware as volume and control requirements grow.
Mentioned in this talk
Search inside this talk
What was claimed 8
- builtDmytro Dzhulgakov built PyTorchcore maintainer for five years
“I’ve personally been a core maintainer of PyTorch for the past five years”
YouTube Verified3 sources· Talk, Web· archived
- foundedDmytro Dzhulgakov founded Fireworks AICo-founder
“My co-founder Lino”
YouTube Verified5 sources· Talk, Web· archived
- featureFireworks AI: Serves Stable Diffusion 3; its API routes to Fireworks servers
“their API routes to our servers”
YouTube Unverified1 source· Talk
- featureFireworks AI: Offers serverless inference with pay-per-token pricing
“offer serverless inference with pay-per-token pricing”
YouTube Unverified1 source· Talk
- featureFireworks AI: Supports deploying thousands of LoRA models on the same GPU
“deploy multiple LoRA models on the same GPU—actually, thousands of them”
YouTube Unverified1 source· Talk
- launchedFireworks AI launched FireFunctionFireFunction V
“The latest one, FireFunction V, was released two weeks ago”
YouTube Verified2 sources· Talk
- metricFireworks AI: Serving more than 150 billion tokens per day
“more than 150 billion tokens per day”
YouTube Unverified1 source· Talk
- integrates withFireworks AI integrates with
OpenAI API
API-compatible“we're OpenAI API-compatible”
YouTube Unverified1 source· Talk












