Red Hat Demonstrates FP8 Quantization Cuts GPU Memory Needs 50%

I’ve Got 99 Problems, but LLMs Ain’t One! With Red Hat — Ai4

Ai4

Compressing foundation models from FP16 to FP8 doubles inference speed and cuts GPU memory requirements in half while retaining 99.14% of benchmark accuracy.

AI-assisted summary of I’ve Got 99 Problems, but LLMs Ain’t One! With Red Hat — original source. Check the original for full context.

Source published:

Detailed notes

## Background Published on YouTube by Ai4 on August 29, 2025, this talk features Cedric Clyburn, Senior Developer Advocate at Red Hat. The page description highlights how open-source runtimes and quantization techniques like vLLM enable organizations to self-host, compress, and scale foundation models efficiently on private cloud or on-premises infrastructure.

## TL;DR Cedric Clyburn demonstrates how to quantize a foundational LLM from FP16 to FP8 using `lm-compressor`, cutting GPU resource demands by half while retaining 99.14% of its benchmark accuracy on the GSM8K dataset. He outlines the progression from local developer prototyping with lightweight tools like Ollama or RamaLama to enterprise-scale production using Kubernetes and vLLM. Ultimately, the session underscores that open models and quantization give organizations full sovereignty over privacy, costs, and infrastructure without sacrificing performance.

## Atmosphere & style The presentation feels fast-paced, practical, and highly encouraging, blending live technical validation with clear architectural frameworks. Clyburn maintains an approachable, developer-focused narrative style, keeping the energy focused and engaging even under time constraints. Watching the talk conveys a sense of empowerment, assuring tech teams that hosting and scaling AI locally is entirely manageable.

## Key takeaways - 83% of organizations are moving workloads back to private cloud or on-premises environments due to privacy and cost concerns. - Open-source AI tools and runtimes are leading the movement toward private, local, and large-scale model deployments. - [15:28](https://www.youtube.com/watch?v=_FF-piswIvQ&t=928s) Quantizing a model from FP16 to FP8 cuts GPU memory and hardware resource requirements roughly in half while doubling inference performance. - [15:28](https://www.youtube.com/watch?v=_FF-piswIvQ&t=928s) Using lm-compressor on the GSM8K math benchmark, FP8 compression reduced accuracy from 88.93% to 88.17%, retaining 99.14% of original model capabilities. - [16:46](https://www.youtube.com/watch?v=_FF-piswIvQ&t=1006s) Local prototyping and testing can be conducted using lightweight tooling like llama.cpp, Ollama, or RamaLama. - [16:46](https://www.youtube.com/watch?v=_FF-piswIvQ&t=1006s) Enterprise production deployment scales out local models onto Kubernetes using vLLM for high-throughput serving and GPU utilization. - [16:46](https://www.youtube.com/watch?v=_FF-piswIvQ&t=1006s) Production AI infrastructure provides operational controls such as dynamic auto-scaling, request rate limiting, load balancing, and monitoring. - [17:33](https://www.youtube.com/watch?v=_FF-piswIvQ&t=1053s) Deploying private and sovereign AI gives organizations full authority over data privacy, operational costs, and infrastructure control without relying on proprietary APIs.

## Detailed walkthrough Sorry, something went wrong. Please try your request again.

[15:28](https://www.youtube.com/watch?v=_FF-piswIvQ&t=928s) Model Quantization and Benchmarking with lm-compressor

Cedric Clyburn demonstrates a live practical demonstration using a quantization recipe to compress a foundational model from FP16 (floating-point 16) to FP8 (floating-point 8). Running `python quantize.py`, the script converts the model into an 8-bit representation, effectively cutting memory and resource requirements in half. To evaluate the performance impact of this compression, the model is tested against standard benchmarks using `lm-eval`, specifically testing performance on the GSM8K (GSM8000) math dataset.

The initial baseline evaluation on the uncompressed FP16 model yields an accuracy score of 88.93%. Upon re-running the benchmark for the newly compressed FP8 model, it achieves a score of 88.17%. This minimal drop means the model retains 99.14% of its original accuracy and capabilities while delivering double the inference speed and utilizing half the GPU resources. This quantization process is powered by `lm-compressor`, an open-source library that operates as part of the broader vLLM ecosystem.

- **Compression target:** Converted weights from FP16 down to FP8, reducing resource footprints by approximately 50%. - **Benchmark dataset:** GSM8K (GSM8000). - **Original FP16 score:** 88.93%. - **Compressed FP8 score:** 88.17%. - **Accuracy retention:** 99.14% relative capability retention at half the hardware footprint.

---

[16:46](https://www.youtube.com/watch?v=_FF-piswIvQ&t=1006s) From Local Prototyping to Enterprise Production Scaling

Transitioning back to the slides with a two-minute remaining prompt from the stage host, Clyburn maps out the journey of taking AI workloads from local developer environments to enterprise-grade production. Developers can initiate early testing using lightweight tools like llama.cpp, Ollama, or RamaLama on local machines without requiring dedicated server GPUs. Once models are quantized and prompt-engineering iterations prove successful, organizations can scale out their workloads.

``` +-------------------------------------------------------------+ | LOCAL / PROTOTYPING | | llama.cpp | Ollama | RamaLama | +-------------------------------------------------------------+ | v +-------------------------------------------------------------+ | PRODUCTION / SCALED AI | | vLLM | Kubernetes | Auto-scaling | +-------------------------------------------------------------+ ```

When scaling up becomes necessary, Kubernetes and vLLM provide the infrastructure required to maximize GPU utilization across clusters. Moving to this architecture provides production-ready capabilities such as dynamic auto-scaling, request rate limiting, rigorous model evaluations, and enterprise monitoring.

- **Local tooling:** llama.cpp, Ollama, and RamaLama for developer iterations. - **Production platform:** Kubernetes and vLLM for high-throughput serving. - **Operational controls:** Load balancing, request throttling, dynamic auto-scaling, and performance benchmarks.

---

[17:33](https://www.youtube.com/watch?v=_FF-piswIvQ&t=1053s) Key Takeaways: Private, Sovereign, and Compressed AI

Clyburn wraps up the session by summarizing the central themes of the talk. First, open models are rapidly advancing, achieving impressive benchmark scores that compete directly with proprietary alternatives. Second, deploying private and sovereign AI gives enterprises direct authority over data privacy, maintenance schedules, and operational costs instead of relying entirely on external API vendors.

Finally, quantization techniques allow organizations to maximize their existing hardware investments by compressing models with virtually zero noticeable quality degradation. Local serving allows teams to experiment on standard hardware before scaling out high-throughput deployments with vLLM. As Clyburn quips in his closing sentence, "Even if you might have 99 problems, LLMs ain't one."

- **Open models:** High benchmark performance competitive with closed APIs. - **Sovereign AI:** Full ownership over deployment costs, privacy posture, and infrastructure lifecycle. - **Quantization impact:** Compression enables rapid scaling with minimal quality loss. - **Closing quote:** "Even if you might have 99 problems, LLMs ain't one."

## Notable quotes > [17:33](https://www.youtube.com/watch?v=_FF-piswIvQ&t=1053s) Even if you might have 99 problems, LLMs ain't one. — Cedric Clyburn

## Mentioned Ai4, Cedric Clyburn, DeepSeek, Google, GSM8K, Kubernetes, Linux, Meta, Ollama, RamaLama, Red Hat, UC Berkeley, lm-compressor, lm-eval, llama.cpp, vLLM

## Video description Cedric Clyburn, Senior Developer Advocate, Red Hat

Abstracts

With 83% of organizations moving workloads back to private cloud or on-premises for privacy and cost concerns, AI is no different. But while many of us have explored running local LLMs on our own machine, scaling things up can be quite difficult. From the difficulty of sourcing hardware, to effective model serving and inference, it’s not always quite clear how to self-host models in production. Fortunately, open source has been leading the AI wave, from models to now the serving runtimes underneath. Curious as to how Meta, Google, DeepSeek, and many others support both small-scale and large-scale model deployments on Linux, Kubernetes, and beyond? Join us as we start from a foundation model, compress it to cut GPU requirements by half and boost performance, and inference it with vLLM, a UC Berkeley-based project that’s leading the private and local AI revolution. You might still have 99 other problems, but LLMs won’t be one!

[Source](https://www.youtube.com/watch?v=_FF-piswIvQ)

中文简报

红帽展示FP8量化可将GPU显存需求减半 将基础模型从FP16压缩至FP8可在保留99.14%基准准确率的同时,使推理速度翻倍并将GPU显存需求降低一半。 Cedric Clyburn 演示了如何使用 lm-compressor 将基础大语言模型从 FP16 量化至 FP8,在 GSM8K 数据集上保留 99.14% 基准准确率的同时将 GPU 资源需求减半。他概述了从借助 Ollama 或 RamaLama 等轻量工具进行本地开发者原型设计,到利用 Kubernetes 与 vLLM 实现企业级生产部署的演进路径。该会议最终强调,开源模型与量化技术使企业能够在不牺牲性能的前提下,完全掌控自身的数据隐私、成本及基础设施。 基于隐私和成本考虑,83% 的企业正将工作负载迁回私有云或本地环境,开源 AI 工具与运行时正引领这一私有化与大规模部署浪潮。 通过开源库 lm-compressor 将模型从 FP16 量化至 FP8,可将 GPU 显存与硬件需求减半并使推理速度翻倍;在 GSM8K 基准测试中,准确率仅从 88.93% 微降至 88.17%,保留了 99.14% 的原始性能。 (15:28) 企业可以先借助 llama.cpp、Ollama 或 RamaLama 等轻量化工具在本地进行原型设计与测试,随后通过 Kubernetes 和 vLLM 将工作负载扩展至生产环境。 (16:46) 迁移至生产级 AI 基础设施后,企业能够获得动态自动扩缩容、请求限流、负载均衡及全方位监控等运维管控能力。 (16:46) 部署私有主权 AI 使组织能够在不依赖专有 API 的情况下,完全掌控数据隐私、运营成本及基础设施生命周期。 (17:33)

Reading summary

Cedric Clyburn demonstrates that enterprises can deploy and scale open large language models efficiently by combining FP8 quantization with open-source tooling across local and Kubernetes environments. Quantization Performance and Benchmark Accuracy (15:28) Using lm-compressor from the vLLM ecosystem, Clyburn demonstrated compressing a foundational model from FP16 to FP8 via a Python script. This conversion cuts memory and GPU resource requirements by approximately 50% while doubling inference speed. Evaluated against the GSM8K math dataset using lm-eval, the model's accuracy shifted marginally from a baseline of 88.93% to 88.17%, preserving 99.14% of its relative capabilities despite running at half the hardware footprint. Bridging Local Prototyping to Scaled Production (16:46) Workloads typically begin in local developer setups utilizing lightweight tools such as llama.cpp, Ollama, or RamaLama, which operate on standard hardware without dedicated server GPUs. Once models are quantized and prompt workflows are established, organizations can transition workloads to enterprise infrastructure powered by Kubernetes and vLLM. This production platform enables operational controls including dynamic auto-scaling, request rate limiting, performance evaluations, and cluster monitoring to maximize GPU utilization. Data Sovereignty and Operational Ownership (17:33) Clyburn argues that high-performing open models allow enterprises to deploy sovereign, private AI architectures that compete with proprietary API vendors. Managing deployments internally gives organizations direct control over operational costs, data privacy, and maintenance schedules while utilizing hardware more efficiently through model compression. Clyburn asserts that the combination of competitive open models, hardware-saving quantization, and local-to-production pipelines eliminates core architectural bottlenecks for organizations seeking private AI deployment.

精炼阅读摘要

Red Hat 的 Cedric Clyburn 提出,企业通过采用开源模型与先进量化技术,能够在削减一半硬件资源的同时保持原有模型能力,进而摆脱对外部专有 API 的依赖。他倡导开发者从本地轻量化工具起步验证,再通过 Kubernetes 与 vLLM 架构平滑扩展至生产级集群。 FP8量化大幅降低算力开销并维持基准精度 (15:28) Cedric Clyburn 现场演示了基于 vLLM 生态开源工具 lm-compressor 的模型量化方案。通过执行 quantize.py 脚本,基础模型的权重从 FP16(16 位浮点)压缩至 FP8(8 位浮点),将内存占用与计算资源需求缩减约 50%,并将推理速度提升一倍。 在 GSM8K 数学基准评测中,lm-eval 测试显示未压缩的 FP16 模型准确率为 88.93%,而压缩后的 FP8 模型得分达到 88.17%。这一测试表明量化模型保留了原始精度的 99.14%,证明企业能够在几乎不牺牲输出质量的前提下最大化硬件利用率。 从轻量本地开发向企业级集群架构平滑演进 (16:46) 在部署路径方面,Clyburn 勾勒出从个人工作站向企业级生产集群过渡的两阶段策略。在早期原型设计与提示词调优阶段,开发人员可借助 llama.cpp、Ollama 或 RamaLama 等轻量化工具在普通本地硬件上运行,无需占用昂贵的服务器 GPU 资源。 一旦模型量化和业务逻辑验证成熟,系统便可迁移至由 Kubernetes 和 vLLM 支撑的生产平台。该架构支持跨集群最大化 GPU 算力利用率,并提供动态弹性伸缩、请求限流、自动化基准评估以及全面的企业级监控能力。 开源主权AI在成本与隐私管控上的战略优势 (17:33) Clyburn 总结指出,开源基础模型的评测表现正在迅速逼近甚至匹敌闭源商业模型。对于企业用户而言,构建私有化且自主可控的主权 AI(Sovereign AI)架构,相比持续调用第三方商业 API 具有更明确的长期控制权。 该模式确保了企业对底层核心数据的隐私控制,同时使技术团队能够自主管理维护周期与算力预算,避免陷入外部供应商的锁定期与高昂计费陷阱。 Clyburn 强调,随着开源工具链与压缩技术的成熟,大语言模型的部署与运行门槛已大幅降低;不过本次演示主要依托 GSM8K 单一数学数据集进行精度评估,量化方案在更广泛生产任务中的泛化表现仍需企业结合自身业务进一步验证。

Detailed notes — zh

## Background 该视频由行业会议组织 Ai4 于 2025 年 8 月 29 日发布在 YouTube 平台上,内容为红帽(Red Hat)资深开发者布道师 Cedric Clyburn 的主题演讲。根据页面简介,随着超八成企业出于隐私与成本考量将工作负载迁回私有云或本地机房,本场分享聚焦于如何借助开源基础模型、模型量化压缩以及 vLLM 推理引擎,在 Linux 和 Kubernetes 上破解生产级自托管大模型的算力瓶颈与工程挑战。 ## TL;DR 针对公有云模型 API 昂贵的 Token 成本、数据合规隐患以及被动版本锁定的痛点,演讲系统阐述了构建私有与主权 AI 的核心路径。技术演进被划分为从 Transformers 实验微调、llama.cpp/RamaLlama 本地轻量验证,再到 OpenShift 与 vLLM 生产级集群推理的三层技术栈。通过现场近百名观众同时接入的 21 点交互与 MCP 工具调用实测,直观展现了纯 CPU 推理超时与 vLLM 引擎高吞吐承载的鲜明对比。最后,演讲者演示了使用开源 `llm-compressor` 进行 FP8 权重量化,在保留 99.14% 原生精度的同时成功削减了 50% 的显存和计算资源消耗,为企业自托管大模型提供了完整的工程落地指南。 ## Atmosphere & style 整场演讲呈现出浓厚的技术极客氛围与高能实战节奏。演讲者 Cedric Clyburn 风格幽默风趣,以调侃“氛围式编程(Vibe Coding)烧钱”破题,瞬间引发开发者共鸣。现场拉入近百名观众实时联机玩 21 点压测的演示极具临场感和戏剧张力,从 CPU 模式下的服务卡死到切换 vLLM 后的毫秒级响应,将技术落差展现得淋漓尽致。整场分享不仅干货硬核,更在结尾扣题的金句与掌声中散发出开源技术打破算力垄断的乐观与从容。 ## Key takeaways - [00:04](https://www.youtube.com/watch?v=_FF-piswIvQ&t=4s) 企业自托管大模型的核心驱动力主要在于数据治理与隐私合规(如 HIPAA、EU AI 法案),以及控制和预测 API 调用的高昂成本。 - [00:04](https://www.youtube.com/watch?v=_FF-piswIvQ&t=4s) 使用第三方闭源模型 API 时,RAG 检索输入与推理模型的思考 Token 会迅速推高账单,且企业容易面临模型被动升级带来的接口兼容风险。 - [02:17](https://www.youtube.com/watch?v=_FF-piswIvQ&t=137s) 以 DeepSeek 为代表的开源生态迎来爆发,Hugging Face 上已有近 200 万个免费开源模型,覆盖文本、SQL、图像与音频等多模态领域。 - [02:17](https://www.youtube.com/watch?v=_FF-piswIvQ&t=137s) 通过 Podman Desktop 等容器化工具在本地 localhost 部署小模型(如 Whisper 语音识别),即可在离线环境下高效实现多语言处理。 - [05:05](https://www.youtube.com/watch?v=_FF-piswIvQ&t=305s) 私有与主权 AI 落地演进可划分为三层:Transformers 用于实验微调,llama.cpp/RamaLlama 用于本地量化推理,vLLM 用于高并发生产部署。 - [05:05](https://www.youtube.com/watch?v=_FF-piswIvQ&t=305s) vLLM 采用 UC Berkeley 研发的 PagedAttention 算法管理显存,彻底解决显存碎片问题,原生支持分布式多 GPU 与高并发动态批处理。 - [09:43](https://www.youtube.com/watch?v=_FF-piswIvQ&t=583s) 在 OpenShift 集群上进行的现场压测显示,CPU 上的 llama.cpp 面对并发容易超时,而 vLLM 引擎能够瞬时稳定响应复杂决策请求。 - [09:43](https://www.youtube.com/watch?v=_FF-piswIvQ&t=583s) 结合 Meta Llama Stack 与 MCP 协议,1B~3B 参数的轻量小模型即可高效执行 Tool Calling 与外部通知等 Agentic 工作流,无需依赖万亿级闭源模型。 - [14:15](https://www.youtube.com/watch?v=_FF-piswIvQ&t=855s) 利用 llm-compressor 将模型从 FP16 量化压缩至 FP8,显存需求与硬件成本直接减半,推理速度翻倍,同时 GSM8K 评测精度保留率超过 99%。 - [16:46](https://www.youtube.com/watch?v=_FF-piswIvQ&t=1006s) 借助 Kubernetes 与 vLLM 的集群扩展能力,配合弹性伸缩、速率限制和无损量化技术,企业已能完全自主可控地搭建私有化生产级 AI 架构。 ## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=_FF-piswIvQ&t=4s) 自托管大模型的驱动力:数据治理与成本控制 在由 Ai4 主办的演讲中,来自 Red Hat 的资深开发者布道师 Cedric Clyburn 带来了关于在私有云和本地环境部署大语言模型(LLM)的分享。作为一家深耕 Linux 和 Kubernetes 多年的纯开源公司,Red Hat 目前的大量工作都集中在帮助企业自托管 LLM 上。推动这一趋势的核心动因主要有两点: 1. **数据治理与隐私安全(Data Governance & Privacy)**:确保敏感数据完全停留在本地内部环境中; 2. **成本控制与可预测性(Cost Control & Predictability)**:Cedric 调侃道,之前没人告诉他“氛围式写代码(Vibe Coding)”居然这么烧钱,每次看着 Claude Code 等工具中 token 飞速消耗都让人肉疼。如果使用第三方闭源模型 API,不仅 RAG 检索会导致巨量的输入 token 费用,推理模型(Reasoning Models)内部的思考 token 也会迅速推高账单。 此外,私有化部署还赋予了企业对模型生命周期的完全掌控权。企业无需在底层服务商从 ChatGPT 4 升级到 5 时,被迫应对接口变更或重构应用程序来修复兼容性 Bug。 ```mermaid flowchart TD accTitle: 为什么企业选择自托管私有化大模型 subgraph Drivers["自托管驱动因素"] A["敏感数据与合规<br/>(HIPAA / EU 法案)"] B["成本不可控<br/>(RAG 检索 & 思考 Token 费用)"] C["API 供应商锁定<br/>与模型被动升级风险"] end subgraph Solutions["私有化 / 主权 AI (Sovereign AI)"] D["本地与私有云部署<br/>(Linux / OpenShift / K8s)"] E["生命周期完全受控<br/>(版本锁定与微调定制)"] F["硬件灵活调度<br/>(CPU / GPU / 端侧设备)"] end Drivers --> Solutions ``` --- ### [02:17](https://www.youtube.com/watch?v=_FF-piswIvQ&t=137s) 开源模型生态的爆发与多模态本地实验 Cedric 指出,自 DeepSeek 等开源成果发布以来,整个开源模型社区迎来了爆发式增长。目前在 Hugging Face 平台上,已有近 200 万个开源模型可供免费下载,覆盖了从 Text-to-Text、SQL 生成、计算机视觉到音频等多模态领域。 Cedric 现场展示了基于 CNCF 旗下的 Podman Desktop 运行本地音频检测应用。该应用使用 Python 客户端连接在 `localhost` 本地运行的 Whisper 语音识别模型,将用户上传的录音发送至容器化模型进行离线转录。Whisper 原生支持 80 多种语言,Cedric 现场录制了一句简短的法语并在本地顺利完成了解析,证明了现代开源小模型在离线场景下强大的实用性。 --- ### [05:05](https://www.youtube.com/watch?v=_FF-piswIvQ&t=305s) 私有与主权 AI 的三层技术栈演进 面对企业严苛的数据合规要求(如医疗 HIPAA 法案或欧盟 AI 法案),将数据发送至公有云大模型存在极高合规风险,而跨云迁移又会受制于昂贵的数据出向传输费(Egress Fee)。Cedric 将私有与主权 AI(Private and Sovereign AI)的落地路径拆解为三种渐进式的技术栈工具: ```mermaid flowchart LR accTitle: 私有化大模型从实验到生产的技术栈演进 subgraph Exp["1. 实验与微调"] T["Hugging Face<br/>Transformers"] end subgraph Dev["2. 本地开发与端侧部署"] L["llama.cpp / RamaLlama<br/>(GGUF 量化格式)"] end subgraph Prod["3. 高并发生产推理"] V["vLLM 推理引擎<br/>(PagedAttention & 批处理)"] end Exp --> Dev --> Prod ``` - **Transformers 库**:基于经典 Transformer 架构的 Python 原型开发与 Jupyter Notebook 调试首选,适合基础的单样本推理以及医疗术语等领域的微调(Fine-tuning)训练。 - **llama.cpp 与 RamaLlama**:`llama.cpp` 是基于 C/C++ 开发的纯推理工具,专注于运行 GGUF 格式的量化模型,是 Ollama 的底层核心驱动。为了克服直接配置的繁琐并实现 OCI 容器标准的可移植性与安全性,Cedric 推荐使用名为 **RamaLlama** 的开源工具。现场演示中,在 MacBook 本地通过命令行运行 10 亿参数的 `llama-3.2-1b`,让模型扮演“塔可钟(Taco Bell)收银员”的语气输出欢迎语,生成速度极快。 - **vLLM 生产级推理引擎**:由加州大学伯克利分校(UC Berkeley)发起、Red Hat 深度参与贡献的高吞吐推理框架。通过创新的 **PagedAttention** 算法将 GPU 显存视作虚拟内存管理,彻底消除了序列间的显存碎片,能够原生支持多 GPU 分布式部署、动态批处理(Batching)与高并发请求。 --- ### [09:43](https://www.youtube.com/watch?v=_FF-piswIvQ&t=583s) 现场实战:基于 OpenShift 与 Meta Llama Stack 的 21 点决策与 Agentic 联动 为了对比 `llama.cpp` 与 `vLLM` 的并发承载能力,Cedric 展示了一个在前一晚凌晨两点搭建的 21 点(Blackjack)联机对战 Web 应用。该系统部署在 Red Hat OpenShift(企业级 Kubernetes 发行版)集群上,后端由 Meta 推出的 **Llama Stack** 提供统一的推理与 Agent MCP(Model Context Protocol)工具调用支持。 ```mermaid flowchart TD accTitle: 21点联机对战应用的推理与 Agentic MCP 架构 subgraph Clients["前端客户端"] User["现场 100+ 观众手机/电脑端"] end subgraph Backend["OpenShift 集群 (Kubernetes)"] FE["前端服务"] LS["Meta Llama Stack API"] subgraph Engines["推理后端切换"] CPU_Eng["llama.cpp (纯 CPU 模式)"] GPU_Eng["vLLM (GPU 高吞吐引擎)"] end MCP["MCP Server<br/>(ntfy 推送服务)"] end subgraph Admin["手机通知端"] Phone["Cedric 的手机"] end User --> FE FE --> LS LS --> CPU_Eng LS --> GPU_Eng LS -->|Tool Calling| MCP MCP -->|实时下发分数| Phone ``` - **高并发压测对比**:现场约 100 名观众通过二维码同时接入游戏。当底层推理配置为在 CPU 上运行的 `llama.cpp` 时,面对突发的高并发 POST 请求,后端迅速出现显存/算力瓶颈与请求超时(Response Timeout);而一切换到底层基于 `vLLM` 的引擎,模型瞬间恢复响应,准确建议玩家在当前手牌点数下是该“要牌(Hit)”还是“停牌(Stand)”。 - **Agentic MCP 实时推送**:该应用还演示了小模型的工具调用(Tool Calling)能力。玩家在游戏中每次赢得分数,后端 1B~3B 参数的小模型会自动触发工具调用,向 `ntfy`(MCP Server)发起通信,并将实时战报推送到 Cedric 的手机屏幕上。这证明了无需调用数万亿参数的闭源庞然大物,轻量级小模型同样能高效驱动 Agent 工作流。 --- ### [14:15](https://www.youtube.com/watch?v=_FF-piswIvQ&t=855s) 模型量化压缩:显存减半与极低精度损失 针对企业在本地运行 70B 或 130B 参数大模型时面临的 A100/H100 显卡资源短缺难题,Cedric 提出**模型量化(Quantization)**是最直接有效的成本削减手段。 通过主动量化或基于权重的量化技术将模型权重压缩一半(例如从 16 位浮点压缩至低比特表示),原本需要两张 GPU 才能承载的模型只需单张 GPU 即可运行。量化带来的精度损失极低,在绝大多数实际业务场景中精度下降幅度**小于 1%**,但却能换来翻倍的显存利用率、更高的吞吐性能以及降低 50% 的硬件基础设施成本。Cedric 在视频中开始演示如何通过开源的 `llm-compressor` 库加载 Hugging Face 模型并在多 GPU 上执行压缩配置。 - **模型参数跨度支持**:从树莓派(Raspberry Pi)上运行的 0.5B 端侧小模型,到数据中心集群承载的 100B+ 庞大模型均可支持量化优化; - **资源减半效益**:权重量化压缩 50% 后,服务同一模型所需的 GPU 数量直接减半,吞吐性能显著提升。 ### [15:28](https://www.youtube.com/watch?v=_FF-piswIvQ&t=928s) 模型量化实战与基准评测:利用 LLM Compressor 减半资源消耗 演讲者进入实操演示环节,展示如何通过特定的量化“配方”(Recipe)将大语言模型从 16 位浮点数(FP16)压缩至 8 位浮点数(FP8)。这意味着模型的体积和显存占用直接被压缩了一半左右。在演示中,他执行了 Python 量化脚本(`python quantize.py`),生成并保存了量化后的模型权重,随后使用标准基准评测工具 `lm-eval`(LM Evaluation Harness)在著名的数学推理数据集 GSM8K 上进行性能比对。 评测结果非常直观且令人振奋:原始 FP16 模型的基准得分为 88.93 分,而压缩后的 FP8 模型得分达到了 88.17 分。量化后的模型不仅以两倍的推理速度运行、仅占用一半的计算资源,而且保留了原始模型高达 99.14% 的推理准确度与能力。演讲者向观众推荐了这一开源工具——`llm-compressor`,它是 vLLM 生态项目的一部分,开发者可以极其便捷地将其应用到自己的开源模型量化流程中。 ```mermaid flowchart TD accTitle: LLM 量化与评测流程 subgraph Quantization["量化阶段 (LLM Compressor)"] A["原始模型 (FP16)"] -->|"执行 quantize.py"| B["量化模型 (FP8)"] end subgraph Benchmark["GSM8K 基准评测 (lm-eval)"] A -->|"基准测试得分"| C["88.93 分 (基线)"] B -->|"基准测试得分"| D["88.17 分 (保持 99.14% 精度)"] end subgraph Gains["实际效益"] B --> E["显存与计算资源减半 (50%)"] B --> F["推理速度提升翻倍 (2x)"] end ``` - **量化工具**:`llm-compressor`(vLLM 项目旗下的开源模型压缩库)。 - **精度转换**:从 FP16 压缩至 FP8,显存需求削减约 50%。 - **GSM8K 评测得分对比**:原始模型 88.93 分 vs. 量化模型 88.17 分。 - **能力保留率**:保留了 99.14% 的原始精度,同时实现 2 倍推理速度提升。 --- ### [16:46](https://www.youtube.com/watch?v=_FF-piswIvQ&t=1006s) 从本地开发到生产部署:构建自主可控的开源 AI 架构与核心总结 在演讲的最后阶段,演讲者切回演示幻灯片,系统梳理了从个人本地实验迈向企业级生产部署的完整演进路径。开发者完全可以借助开源生态实现平滑过渡:在本地开发与原型验证阶段,可以利用 llama.cpp、Ollama 或 RamaLama 等轻量化工具快速跑通量化模型;而一旦准备进入生产环境扩大规模,就可以引入 Kubernetes 和 vLLM,充分发挥底层 GPU 集群的硬件算力,并落地自动弹性伸缩(Autoscaling)、请求速率限制(Rate Limiting)以及自动化模型评测等一系列生产就绪的高级能力。 演讲者对整场分享的核心要点进行了高度概括:首先,开源模型已经具备顶级的基准表现与强大能力;其次,构建私有与主权 AI(Private and Sovereign AI)能让企业完全掌握在成本、数据隐私和运维生命周期上的主动权;最后,结合本地无 GPU 依赖的轻量推理与 vLLM 的集群扩展能力,辅以近乎无损精度的量化压缩技术,自建模型服务已经变得切实可行。演讲在现场热烈的掌声与扣题的幽默金句中收尾:"Even if you might have 99 problems, LLMs ain't one!"(即使你有 99 个难题,大模型也绝不再是其中之一)。 - **本地探索工具链**:llama.cpp、Ollama、RamaLama(适合轻量级、低成本快速迭代)。 - **生产级扩展架构**:Kubernetes + vLLM(提供 GPU 深度利用、弹性伸缩、流量控制与生产级评测)。 - **私有主权 AI 的核心价值**:自主掌控基础设施成本、运维周期、合规安全与数据隐私。 - **资料获取**:演讲者在结尾展示了幻灯片分享二维码供现场参会者下载研读。 ## Notable quotes > [00:04](https://www.youtube.com/watch?v=_FF-piswIvQ&t=4s) 之前没人告诉他“氛围式写代码(Vibe Coding)”居然这么烧钱,每次看着 Claude Code 等工具中 token 飞速消耗都让人肉疼。 — Cedric Clyburn > [00:04](https://www.youtube.com/watch?v=_FF-piswIvQ&t=4s) 自托管驱动动因:数据治理与隐私安全(Data Governance & Privacy),确保敏感数据完全停留在本地内部环境中;成本控制与可预测性(Cost Control & Predictability)。 — Cedric Clyburn > [02:17](https://www.youtube.com/watch?v=_FF-piswIvQ&t=137s) 自 DeepSeek 等开源成果发布以来,整个开源模型社区迎来了爆发式增长。目前在 Hugging Face 平台上,已有近 200 万个开源模型可供免费下载。 — Cedric Clyburn > [05:05](https://www.youtube.com/watch?v=_FF-piswIvQ&t=305s) 通过创新的 PagedAttention 算法将 GPU 显存视作虚拟内存管理,彻底消除了序列间的显存碎片,能够原生支持多 GPU 分布式部署、动态批处理与高并发请求。 — Cedric Clyburn > [09:43](https://www.youtube.com/watch?v=_FF-piswIvQ&t=583s) 无需调用数万亿参数的闭源庞然大物,轻量级小模型同样能高效驱动 Agent 工作流。 — Cedric Clyburn > [14:15](https://www.youtube.com/watch?v=_FF-piswIvQ&t=855s) 在绝大多数实际业务场景中精度下降幅度小于 1%,但却能换来翻倍的显存利用率、更高的吞吐性能以及降低 50% 的硬件基础设施成本。 — Cedric Clyburn > [15:28](https://www.youtube.com/watch?v=_FF-piswIvQ&t=928s) 量化后的模型不仅以两倍的推理速度运行、仅占用一半的计算资源,而且保留了原始模型高达 99.14% 的推理准确度与能力。 — Cedric Clyburn > [16:46](https://www.youtube.com/watch?v=_FF-piswIvQ&t=1006s) 在本地开发与原型验证阶段,可以利用 llama.cpp、Ollama 或 RamaLlama 等轻量化工具快速跑通量化模型;而一旦准备进入生产环境扩大规模,就可以引入 Kubernetes 和 vLLM。 — Cedric Clyburn > [16:46](https://www.youtube.com/watch?v=_FF-piswIvQ&t=1006s) Even if you might have 99 problems, LLMs ain't one! — Cedric Clyburn ## Mentioned Red Hat, Cedric Clyburn, Ai4, vLLM, Meta, Google, DeepSeek, 加州大学伯克利分校 (UC Berkeley), Hugging Face, OpenShift, Kubernetes, Podman Desktop, Whisper, llama.cpp, RamaLlama, Ollama, Meta Llama Stack, llm-compressor, lm-eval, GSM8K, Claude Code, ntfy ## Video description Cedric Clyburn, Senior Developer Advocate, Red Hat Abstracts With 83% of organizations moving workloads back to private cloud or on-premises for privacy and cost concerns, AI is no different. But while many of us have explored running local LLMs on our own machine, scaling things up can be quite difficult. From the difficulty of sourcing hardware, to effective model serving and inference, it’s not always quite clear how to self-host models in production. Fortunately, open source has been leading the AI wave, from models to now the serving runtimes underneath. Curious as to how Meta, Google, DeepSeek, and many others support both small-scale and large-scale model deployments on Linux, Kubernetes, and beyond? Join us as we start from a foundation model, compress it to cut GPU requirements by half and boost performance, and inference it with vLLM, a UC Berkeley-based project that’s leading the private and local AI revolution. You might still have 99 other problems, but LLMs won’t be one! [Source](https://www.youtube.com/watch?v=_FF-piswIvQ)

Source quotes

[0:04] Cedric Clyburn: 之前没人告诉他“氛围式写代码(Vibe Coding)”居然这么烧钱,每次看着 Claude Code 等工具中 token 飞速消耗都让人肉疼。 [0:04] Cedric Clyburn: 自托管驱动动因:数据治理与隐私安全(Data Governance & Privacy),确保敏感数据完全停留在本地内部环境中;成本控制与可预测性(Cost Control & Predictability)。 [2:17] Cedric Clyburn: 自 DeepSeek 等开源成果发布以来,整个开源模型社区迎来了爆发式增长。目前在 Hugging Face 平台上,已有近 200 万个开源模型可供免费下载。 [5:05] Cedric Clyburn: 通过创新的 PagedAttention 算法将 GPU 显存视作虚拟内存管理,彻底消除了序列间的显存碎片,能够原生支持多 GPU 分布式部署、动态批处理与高并发请求。 [9:43] Cedric Clyburn: 无需调用数万亿参数的闭源庞然大物,轻量级小模型同样能高效驱动 Agent 工作流。 [14:15] Cedric Clyburn: 在绝大多数实际业务场景中精度下降幅度小于 1%,但却能换来翻倍的显存利用率、更高的吞吐性能以及降低 50% 的硬件基础设施成本。 [15:28] Cedric Clyburn: 量化后的模型不仅以两倍的推理速度运行、仅占用一半的计算资源,而且保留了原始模型高达 99.14% 的推理准确度与能力。 [16:46] Cedric Clyburn: 在本地开发与原型验证阶段,可以利用 llama.cpp、Ollama 或 RamaLlama 等轻量化工具快速跑通量化模型;而一旦准备进入生产环境扩大规模,就可以引入 Kubernetes 和 vLLM。 [16:46] Cedric Clyburn: Even if you might have 99 problems, LLMs ain't one!

Source quotes

[17:33] Cedric Clyburn: Even if you might have 99 problems, LLMs ain't one.

Original transcript

[0:04] All right. So, yes, uh, thanks for [0:06] coming to the talk. I hope you enjoy the [0:07] title. I'm from, uh, well, I live in [0:09] Brooklyn now, so I was like, I got to [0:11] represent the the burrow. Um, but we're [0:13] going to be mainly talking about [0:15] language models. Um, and essentially [0:18] what the big issue is now and what the [0:20] trend is now is being able to run our [0:22] own language models. And I work at Red [0:23] Hat, which is a fully open source [0:25] company. We've been working in Linux and [0:26] Kubernetes for years. And now we're [0:28] working heavily and and a lot of my work [0:30] is helping organizations run their own [0:32] LMS, right? And so why would they do [0:34] this, right? One is the data governance [0:37] and privacy, being able to keep all of [0:38] our data secure running on our own [0:41] premise. And secondly is the cost, [0:43] right? Uh does anyone hear vibe code as [0:45] an example? Okay, so no one told me that [0:48] vibe coding is like super expensive. Um [0:51] I'm just watching the tokens go in cloud [0:53] code and I'm like what is happening [0:54] here? So two things is securing your [0:57] data, your privacy of the data uh and [1:00] being able to maintain those models and [1:02] secondly being able to control the cost. [1:03] And that's why a lot of people are [1:04] looking at, hey, how do we self-host our [1:07] own LLMs? [1:09] And why would you do so, right? Because [1:11] with private and local AI, you have the [1:12] ability to control the model [1:14] maintenance, right? So if chat GBT goes [1:16] from four to five, you don't have to [1:18] rewrite your application or fix bugs [1:20] that happen because you're not in [1:22] control of the model. And at the same [1:24] time, you have predictability, right? [1:25] Right? Now, if you go to a thirdparty [1:27] LLM provider, you're being charged per [1:29] token, right? So if you have rag, you're [1:31] pulling in all those documents, all [1:32] those input tokens. If you have [1:34] reasoning models, you know, you have all [1:36] those thinking tokens as output, right? [1:38] And that can add up very quickly. So I'm [1:40] going to show you how you can run these [1:41] on both Linux and Mac here on my Mac [1:43] today. I've got some live demos for you. [1:45] We're going to have some fun. And then [1:47] we're also going to show how to move [1:48] this to Kubernetes. I have a live demo [1:50] for a blackjack blackjack application. [1:53] Uh you guys are all going to be able to [1:54] join this here in a second. I'll give [1:56] you the QR code, uh, which is going to [1:58] have a little bit of, um, AI [2:01] capabilities, right? Because I'm not [2:03] good at blackjack, but I know how to ask [2:05] the dealer what the right move should [2:06] be. So, I'm going to show you how you [2:08] can run a model not only on GPU, but [2:10] also on CPU, which is really cool, like [2:12] this one right here, which is running [2:14] entirely uh, on CPU. So, let's go back [2:17] to the slides. Uh my name is Cedric and [2:19] what I do is uh essentially uh help out [2:22] developers online with uh different [2:24] concepts around AI. So I make these fun [2:27] little YouTube videos. You should check [2:28] them out. Uh but I also organize uh in [2:31] New York City and I I just love working [2:33] in the AI space because it's [2:35] dramatically changed how I work as a [2:37] developer and I hope it can help you [2:39] guys too. So let's go ahead and get [2:41] started. Um, we're going to be talking [2:43] about a few different topics, [2:44] specifically open source models, uh, and [2:46] why run your own open source models and [2:48] how to actually deploy them. So, we're [2:50] going to go from my laptop here using [2:52] some open source tools to run models to [2:54] going to, uh, VLM, which is a [2:56] productionready runtime, which allows me [2:58] to use multiple GPUs to batch those [3:00] requests and have multiple concurrent [3:01] requests at the same time, which is [3:03] something that you can't do right now [3:05] with Olana, right? So, Ola is great as a [3:07] developer tool. We're going to show how [3:08] to move to the next stage. And then [3:10] finally, cut your cost by half by using [3:12] a technique known as quantization, which [3:14] you might have already used before, but [3:15] we'll dive deep into that. When we talk [3:18] about open- source models, right, [3:19] there's been an explosion in the past [3:21] year, pretty much since DeepSeek. We've [3:23] seen so many cool model labs releasing [3:25] models, and I'm spending like half my [3:27] day on YouTube right now trying to catch [3:29] up with what's being released. But it's [3:31] also very exciting of a time. So if you [3:33] actually go over to huggingface/models, [3:36] you can actually see there's almost 2 [3:37] million open source models that you can [3:39] download right now that you can run on [3:40] your own machines, your own clusters, [3:42] your own home labs, uh across all [3:45] different types of modalities, right? So [3:47] there's text to text, right? So I want [3:49] you to translate this into SQL, right? [3:51] Or vision or audio, for example. One of [3:54] the really cool tools I enjoy using is [3:56] Whisper, uh which is a really good model [3:58] even though it was released a few years [4:00] ago. So what I have here is an open [4:02] source tool. It's part of the CNCF. It's [4:03] Podman desktop and I have a audio detect [4:06] application. So, let me just show you [4:08] the source code really quickly. And [4:10] don't worry, it's super simple. What [4:11] we're having here is a client. So, this [4:13] is connecting to a local model on [4:15] localhost. We're uploading awave mp3 and [4:18] then processing processing that to a [4:21] local model and we're going to [4:22] containerize that so we can run it in a [4:23] variety of applications. So, I'm going [4:25] to start that. What we're doing is we're [4:26] building that container. We're running [4:28] that on our local machine with an open- [4:30] source model. So, I'm gonna open this up [4:32] in my browser. And what we're going to [4:34] go do is actually Oh, sorry. I just got [4:37] a new laptop. Here we go. So, we're over [4:40] here at AI4. We're having a great time. [4:42] Uh, I speak a tiny bit of French [4:46] AI4, [4:49] right? So, hopefully that works. What's [4:50] really cool is these models can work for [4:52] a lot of different use cases. So, for [4:54] example, you could talk in 80 different [4:56] languages for this whisper model, right? [4:58] And this is just a really cool example [5:00] of, hey, how can we build these cool [5:02] applications using models running [5:03] locally. Now, let's go back to the [5:05] slides because there's a huge ecosystem. [5:07] I just showed you one of them which is [5:09] built on top of llama C++. Uh, but we're [5:11] going to get into all of this different [5:13] terminology right now. Um, and show how [5:15] you can actually deploy and serve these [5:17] in a reliable fashion. Right? So, we [5:19] work at Red Hat. We're completely [5:21] focused on enterprise, but I'm going to [5:22] show you as a developer how you can do [5:24] it too and how you can scale things up [5:25] reliably. So let's talk about the [5:28] options to use LLM today. How many of us [5:30] uh are working with claude or GPT or one [5:33] of these models, right? Awesome. Me too. [5:35] I use it every single day. But the thing [5:37] is when I'm actually trying to build an [5:40] application, if I have sensitive data [5:42] which might be HIPPA or you know part of [5:44] the EU act, I can't send that data to a [5:46] model, right? That model needs to be [5:47] running in-house, right? So maybe we go [5:50] with a hyperscaler and a lot of [5:51] organizations do this but then the you [5:53] know the pricing can skyrocket and we [5:56] also locked into that provider. So if I [5:58] want to move from Google cloud to AWS [5:59] this can be a little tricky with egress. [6:01] So what we're showing today is private [6:03] and sovereign AI where you have control [6:05] over the releases of your model. So I [6:07] can know that I'm releasing a specific [6:09] version of Quen or Llama. Uh and then I [6:12] have that cost control and that data [6:14] control which is really nice. And we're [6:16] going to show some of the tools to work [6:18] with this. So let's hop over to private [6:20] and sovereign AI which is the focus [6:22] right. So whether you're on Linux uh [6:25] Kubernetes whether you have GPUs or not [6:27] you can run your own models which is [6:28] really cool and you have control over [6:30] say a 0.5 billion parameter model on my [6:32] Raspberry Pi which is running right now [6:34] at home or maybe a one you know [6:38] 100 uh you know 100 billion parameter [6:41] model or one what is the what is the [6:43] word after billion trillion. All right [6:45] thank you guys. Sorry, brain's not [6:48] working today. One trillion model like [6:50] uh one of the first tools that you're [6:51] going to encounter is of course the [6:52] transformers library which is an [6:54] implementation of the original [6:55] transformers paper. Uh and this is kind [6:57] of the Jupyter notebook type of tool in [6:59] order to hey download a model from [7:01] hugging face and test it with this [7:02] prompt. It's also really good for [7:04] fine-tuning. So if you want to do uh [7:06] customization of a model so it knows [7:08] about medical terminology or can read [7:10] your spreadsheets better, you can do [7:11] that here as well with oneshot um [7:14] training. And I'll show how to do that [7:15] here in a second. Now, the second tool [7:17] is what's really popular right now is [7:20] Llama C++, which is a C compiler for [7:22] running these models in GGUF. GGUF is a [7:25] quantized or compressed version of a [7:27] model. So, if you're using Olama, by the [7:29] way, anyone Olama maybe? Okay, cool. [7:32] Yeah. So, if you're using Olama, uh what [7:34] you're actually using behind that is [7:35] Llama C++, uh which is this kind of [7:38] utility in order to do local serving of [7:41] models. So think on that Raspberry Pi or [7:43] on my machine today. Uh and when we [7:45] actually want to go to production, I'll [7:47] talk about the next tool there. But [7:48] let's get a little bit of a demo here [7:50] because uh when I actually want to use [7:53] um [7:55] uh llama.c++, [7:56] what I'm actually going to use is a [7:58] wrapper on top of that. I could use the [8:00] project itself. Um but I'd have to do a [8:02] little bit of configuration. Today I'm [8:04] going to show what's called Rama Llama. [8:06] The name is very funny, but it's [8:07] essentially a way to run models in a OCI [8:10] format so that if it's running on my [8:11] machine, I could actually go and move [8:13] that to another machine as well. And we [8:15] don't have to worry about configurations [8:16] and we have more security. So really [8:18] quickly, I'm just going to do that [8:19] command here. Rama llama and I'll make [8:22] this much big much bigger. And then [8:24] we're going to run llama 3.2 1 billion [8:26] parameters. So super small model. Uh and [8:28] you're going to see the tokens per [8:30] second is quite high even on a MacBook [8:31] like this. So, say hi to my awesome [8:35] crowd at AI4 in Vegas. Um, one thing [8:40] about me is I used to work at Taco Bell. [8:41] So, let's say um speak like [8:46] a Taco Bell cashier. [8:49] I always like to do this one. Oh, yeah. [8:52] Yeah. What's up, everybody? Bellagio and [8:54] Oh, close enough. Crunch Supreme is good [8:56] to go. Good to go. So it's a quick [8:59] example of hey, how fast can you run [9:00] these models? And with these models, you [9:02] can enable features such as multimodel. [9:04] So I could process an image as well as [9:06] text or maybe I could use a model that's [9:08] been trained for tool calling and [9:10] integrate that with MCP and agentic [9:12] functionality as we're going to see here [9:13] in a second. And the final step is hey [9:16] once we've done some experimentation VLM [9:18] and this is a project that myself and a [9:21] lot of employees at Red Hat contribute [9:22] to uh which came out of UC Berkeley and [9:25] it allows for multiple throughput [9:27] concurrent requests uh and a unique [9:30] algorithm called page detention which [9:31] treats the GPU like virtual memory. So [9:34] instead of wasting space between [9:35] requests to the LLM you're actually able [9:37] to batch that all in together. Um and [9:40] we'll see this in action here in a [9:41] little bit. Now I talked to you guys [9:43] about a demo earlier and I'm going to [9:44] show you both uh Llama C++ which is kind [9:48] of that local development you know [9:50] standard one node machine inference [9:52] engine as well as uh VLM in action. So [9:55] if you guys don't mind we're going to [9:58] head over to I wish I had a a QR I can [10:00] get you a QR code but if you have a [10:02] laptop head to this URL we're all going [10:04] to join this blackjack game that I made [10:07] last night at like 2 a.m. and uh we're [10:10] going to have some fun. So, uh, quick [10:13] story as you're either getting to this [10:14] or I'll give you the QR code in a second [10:17] is I'm really bad at blackjack actually. [10:19] Um, I look happy, but I wasn't happy in [10:21] that photo, you know, and I'm always [10:23] always asking, hey, what does the book [10:25] say to the dealer? And in some casinos, [10:27] they'll be like, hey, you should hit [10:28] this or you shouldn't hit this. So, I [10:31] decided, what if we could use a large [10:33] language model that's running locally in [10:34] order to make those decisions for us? So [10:37] if I go over here, this is Open Shift [10:38] which is a distribution of Kubernetes. [10:41] What I have here though is a front end [10:43] connected to an API which handles our [10:45] MCP servers for Agentic but also our [10:48] inference capabilities. It's called [10:49] Llama Stack. It's created by Meta. I [10:51] think some of the Meta people are here [10:52] today. Um but let's actually head over [10:54] to this application and I'm going to [10:56] give you the QR code if you'd like to [10:57] join from your phone. [11:00] So QR code. Hopefully that's big enough. [11:03] But if you'd like to join, guys, I [11:05] haven't tested this app more than like [11:07] two people and there's like a 100 people [11:10] here today. Um so feel free to join [11:13] that. And uh let's I guess test these [11:17] models. Um so if you're on a laptop, [11:21] you're going to be able to see there's [11:22] this function on the right side. And [11:24] here you can actually select whether [11:25] you're using Llama C++ or VLM. I think [11:29] the default might be llama C++ if you're [11:32] on mobile. Um but so if we have you know [11:35] a question here about hey should I hit [11:37] or should I stand. Um right now we're [11:40] using the rama llama llama C++ working [11:43] on CPU. So this is really cool because I [11:45] can ask the model question and hopefully [11:47] it's going to go through uh you know [11:50] about what I should do in this specific [11:51] instance and it's probably maxing out [11:55] right now is what I have to guess. Like [11:57] we could go to the logs here and we [11:59] could actually check it. Um [12:03] yeah, it might not be working on on on [12:06] CPU right now, but uh yeah. So, okay. [12:09] So, it's doing a bunch of completions [12:11] post request to get the data back if [12:13] you're getting responses. Um if you're [12:16] on MacBook, oh yeah, a response timeout. [12:20] So, this is where we would essentially [12:21] switch to a provider like VLM in order [12:24] to do high throughput, right? So now [12:26] when we ask the same question, hit to [12:28] get closer to 21 without going over. All [12:30] right. Should we hit? [12:32] >> All right. Let's hit it. Yes. All right. [12:35] Now this is tricky. See, I'm a [12:37] conservative guy. I always try to stand [12:39] on this. But should we ask the model [12:40] again, maybe? Okay. Model is always [12:44] going to Okay, stand. All right, let's [12:47] stand. Drum roll. Damn. [12:52] >> That's okay. You know what? We're going [12:53] to double it. We're going to get our [12:54] money back. [12:57] >> No, I'm playing. Uh, actually, yeah. No, [13:00] if you want to try at the demo, um, feel [13:02] free to. But one thing I also added is [13:05] really cool is some agentic [13:07] functionality. Right. Everyone's talking [13:09] about MCP. What I'm going to do here is [13:11] share my screen on my phone and we're [13:13] actually going to uh Oh, hold on. There [13:16] we go. We're actually going to check the [13:18] notifications that are coming out of [13:20] this app right now. Um, so any of you [13:23] guys, if you guys are currently uh using [13:25] this blackjack app, uh whenever you [13:27] actually make a hit or you um make [13:30] money, virtual money, I'm sorry, I don't [13:32] have extra to give out. Uh what's [13:34] actually happening is that's making a [13:35] request to uh the model. The model is [13:38] then using its tool calling capabilities [13:40] to call the MCP server, which is um it's [13:43] called uh net um notify, and that is [13:47] then making a request to my phone. So [13:49] every time you guys are playing, I can [13:50] see your scores. Someone's at 24, so [13:53] good job for them. Um, but it's a cool [13:55] way to, you know, use a local model like [13:57] this, even though it's one or three [13:59] billion parameters to still do that tool [14:01] call instead of using a huge model like [14:04] GPT5, which is, you know, trillions of [14:06] of parameters, trillions of, you know, [14:09] uh, of of compute, right? You could do [14:11] something with a small model like this [14:13] and save a lot of resources. All right, [14:15] so we've got about five minutes left. [14:17] Um, we're going to talk next about [14:19] cutting cost, right? Because one of the [14:20] big concerns is, hey, I want to use a 70 [14:23] billion or 130 billion parameter model, [14:25] but I don't have these A100s, these [14:27] H100s. And what I tell people is, hey, [14:30] look at quantization, right? Because you [14:31] can use a lot of these machine learning [14:33] approaches uh to do active or [14:36] weight-based quantization and compress [14:38] the model weights in half. So instead of [14:40] needing two GPUs to serve that model, [14:42] you only need one. And this is really [14:44] cool because you only take a small hit [14:46] to accuracy. It's actually in most cases [14:49] less than 1% of the accuracy uh is taken [14:51] a hit to uh to have that very similar [14:54] performance, faster throughput, and only [14:56] use half the GPU resources. So I'll [14:59] quickly show you a demonstration of how [15:01] this works. Um I'm just going to show a [15:03] recording of this uh just because um uh [15:06] you know this this is a lot of of um of [15:09] stuff to include. But what we're doing [15:11] is we're, you know, installing a LM [15:13] compressor. And I I'll show you what [15:14] this project is here in a second, but [15:16] it's open source. And in this Python [15:18] file, uh, we're actually first loading [15:21] in a model from HuggingFace or maybe [15:23] something that we've already fine-tuned. [15:24] And then we're going to spread it out on [15:26] two different GPUs. And now we're going [15:28] to use what's known as a recipe uh, in [15:30] order to compress it to floating point [15:32] 8. So from floating point 16 to floating [15:34] point 8. So compressing it about in [15:36] half. And then we're going to save it [15:38] here. So when we actually run this, so [15:40] I'll do this Python quantiz.py. Uh there [15:42] we have that model saved with that [15:44] quantization and we're going to evaluate [15:46] it on some benchmarks. So this is GSM [15:49] 8000. Uh so we're going to do an LME val [15:52] and we're going to do uh this evaluation [15:54] first off on the original model. So once [15:57] we actually go through this processing, [15:59] I'll show you down at the bottom. Uh [16:00] what we've gotten is a score of 88.93. [16:04] Right? when we go ahead and do this [16:06] evaluation again, check this out. [16:09] Um, so I've ran it for the compressed [16:12] model, right? So we got 88.93. [16:15] This one is 88.17. So we're essentially [16:19] keeping 99.14% [16:20] of the accuracy and capabilities of that [16:23] model with double the speed and half the [16:26] resources that we're going to utilize. [16:28] So, it's a quick and easy way to uh use [16:31] a quantization for um your um for your [16:36] models. And so, that's called the LM [16:38] compressor. Feel free to check it out. [16:39] It's part of the VLM project. Uh and [16:42] it's an open source library that you can [16:43] use for your models. So, we've talked [16:46] about a lot of things today, but let me [16:48] come back to the slides. Uh and I'll [16:50] share these slides with you at the end [16:51] via QR code. Um and yes, two minutes. [16:55] Awesome. Uh so, feel free to check this [16:57] out. [16:58] But the idea is here that hey, you can [17:00] go from local to production by using [17:02] open source tools and models, right? So [17:05] start from llama C++ or O Lama or Rama [17:07] Lama, right? Use these quantized models [17:09] and iterate, right? And then when you're [17:11] ready to scale things up, that's when [17:13] Kubernetes comes in. That's when VLM [17:16] comes up to be able to fully utilize [17:18] these GPUs and be able to bring in [17:20] things such as autoscaling and uh be [17:22] able to uh you know limit your request [17:25] or for example be able to do evaluations [17:28] and all of these production ready [17:31] capabilities that's when you can really [17:32] scale up. So the takeaways one open [17:35] models are here and open models have [17:37] amazing benchmarks and capabilities. [17:39] Secondly, private and sovereign AI gives [17:41] you control of the cost of the [17:43] maintenance uh of so many factors uh [17:46] when you're able to run your own models. [17:47] And then you can serve locally on your [17:49] own machine, right, without even needing [17:51] GPU access or then scale up with VLM. Um [17:55] quantization can compress those models [17:58] and allow you to scale things up without [18:01] quality loss. And even if you might have [18:03] 99 problems, LLMs ain't one. So, thank [18:07] you very much. I appreciate it.