Hugging Face TGI 推出 Multi-LoRA:一次部署服务 30 个模型
📊 核心数据与事实(2024-07-18):
Hugging Face 为 TGI 推出 Multi-LoRA serving,只需部署一次基础模型,就能按请求动态切换多个 LoRA 适配器,官方示例用 mistralai/Mistral-7B-v0.1 同时服务 predibase/customer_support 和 predibase/magicoder。
• 原文实测切片:Let's get a quick intuition of how small these adapters are: predibase/magicoder is 13.6MB, which is less than 1/1000th the size of mistralai/Mistral-7B-v0.1 , which is 14.48GB.
• 原文实测切片:from huggingface_hub import create_inference_endpoint # Custom Docker image details custom_image = { "health_route" : "/health" , "url" : "ghcr.io/huggingface/text-generation-inference:2.1.1" , # This is the min version "env" : { "LORA_ADAPTERS…
• 原文实测切片:Figure 5: Multi-LoRA Cost For TGI, I deployed mistralai/Mistral-7B-v0.1 as a base on nvidia-l4, which has a cost of $0.8/hr on Inference Endpoints .
💡 对独立开发者的启发:
1/ Hugging Face 官方介绍 TGI 的 Multi-LoRA 部署方式,给出成本与用量对比,适合评估多模型推理方案。
2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。
3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。
📅 日期:2024-07-18(北京时间)
📰 信息源出处:Hugging Face Blog(huggingface.co)
🔗 原文:https://huggingface.co/blog/multi-lora-serving
📡 归档:https://billionare.me/items/vnnqdkzvegf8ziv3w6mzrr34z
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发Hugging Face TGI 推出 Multi-LoRA:一次部署服务 30 个模型 📊 核心数据与事实(2024-07-18): Hugging Face 为 TGI 推出 Multi-LoRA serving,只需部署一次基础模型,就能按请求动态切换多个 LoRA 适配器,官方示例用 mistralai/Mistral-7B-v0.1 同时服务 predibase/customer_support 和 predibase/magicoder。 • 原文实测切片:Let's get a quick intuition of how small these adapters are: predibase/magicoder is 13.6MB, which is less than 1/1000th the size of mistralai/Mistral-7B-v0.1 , which is 14.48GB. • 原文实测切片:from huggingface_hub import create_inference_endpoint # Custom Docker image details custom_image = { "health_route" : "/health" , "url" : "ghcr.io/huggingface/text-generation-inference:2.1.1" , # This is the min version "env" : { "LORA_ADAPTERS… • 原文实测切片:Figure 5: Multi-LoRA Cost For TGI, I deployed mistralai/Mistral-7B-v0.1 as a base on nvidia-l4, which has a cost of $0.8/hr on Inference Endpoints . 💡 对独立开发者的启发: 1/ Hugging Face 官方介绍 TGI 的 Multi-LoRA 部署方式,给出成本与用量对比,适合评估多模型推理方案。 2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。 3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。 📅 日期:2024-07-18(北京时间) 📰 信息源出处:Hugging Face Blog(huggingface.co) 🔗 原文:https://huggingface.co/blog/multi-lora-serving 📡 归档:https://billionare.me/items/vnnqdkzvegf8ziv3w6mzrr34z