Bevyl公司的工程师开展了一项技术实验,旨在验证无服务器架构在人工智能推理领域的应用潜力 1。该测试利用5,600个AWS Lambda实例并行处理任务,针对H2O-Lightning模型(即Qwen3.5-4B的微调版本)进行分布式推理 1。由于单个Lambda实例存在3 GB的内存限制,而目标模型总大小达9.3 GB,团队将模型按32层进行拆分,使得每一层的权重约为225 MB,从而适配基础设施约束 1。
尽管实验证明了通过分层并行处理实现CPU端模型推理的技术可行性,但其在性能和经济性上均表现不佳 1。数据显示,读取一篇包含4,000 tokens的文档耗时17秒,产生成本为3.4美分,折算下来每百万tokens的价格高达8.40美元 1。相比之下,作为对比基准的Google Gemini Decision 1定价仅为每百万tokens 0.10美元 1。这意味着该基于Lambda的方案成本超过商业API方案80倍以上,同时也凸显了GPU在处理此类矩阵运算时不可替代的优势 1。
Engineers from Bevyl conducted an experiment to validate the potential of CPU-based serverless architectures for artificial intelligence by serving the H2O-Lightning model, a fine-tuned version of Qwen3.5-4B, via AWS Lambda functions 1. The test utilized 5,600 parallel Lambda instances to perform distributed model inference 1.
The experimental setup involved strict memory constraints, with each individual Lambda instance allocated only 3 GB of RAM 1. To accommodate the total model size of 9.3 GB, the engineers split the architecture into 32 layers, reducing the footprint per layer to approximately 225 MB 1. This layered approach allowed the system to function within the limits of standard serverless infrastructure 1.
However, the performance and economic results highlighted the inefficiency of this approach compared to commercial alternatives. Processing a document containing 4,000 tokens took 17 seconds and incurred a cost of 3.4 cents 1. When scaled, this translates to $8.40 per million tokens 1. This makes the solution more than 80 times more expensive than Google’s Gemini Decision 1 API, which charges $0.10 per million tokens 1. While the experiment confirmed that serverless CPU architectures can handle inference tasks through hierarchical parallel processing, it emphasized the irreplaceability of GPU acceleration for matrix calculations 1.
评论
还没有评论,欢迎留下第一条。