A developer has demonstrated that a small language model can be divided across thousands of AWS Lambda functions, producing a working but commercially impractical inference system. The experiment used 5,600 serverless jobs to process a document with H2O-Lightning, a fine-tuned version of the 4-billion-parameter Qwen3.5 model.
The project was designed to test whether Lambda’s ability to fan out CPU work could be applied to AI inference. Its creator imposed a 3 GB memory limit on each function. The complete model occupied 9.3 GB, but its 32 individual layers were about 225 MB each, making it possible to place one layer in a function. Jobs read their inputs from Amazon S3, performed the required calculation and wrote the result back as another object.
Processing was arranged as a pipeline. Each function waited for output from the preceding layer for the same block of tokens, as well as the preceding token block at its own layer. That dependency pattern produced a staggered sequence 32 layers deep. The design turned each Lambda invocation into a small, repeatable computing step rather than attempting to load and run the entire model in one environment.
The resulting system read a 4,000-token document in 17 seconds. According to the developer’s measurements, that request cost 3.4 cents, equivalent to about $8.40 per million input tokens. The comparison used in the project was Google’s Gemini Decision 1, priced at $0.10 per million tokens. On that basis, the Lambda implementation was more than 80 times as expensive for the same reading task.
The test focused on decision models, which read a document and select an answer rather than generating a long response. That limited workload made parallel execution more plausible because it required only a single forward pass. Even so, the experiment showed that dividing model layers across general-purpose CPUs did not create a cost advantage. Large matrix operations remain a workload for which GPUs are purpose-built, while serverless CPU time still carries a substantial charge.
The significance is therefore architectural rather than economic. The project shows that model execution can be decomposed into thousands of independently scheduled cloud jobs and coordinated through object storage. It also illustrates the overhead hidden by managed AI services: loading parameters, moving intermediate values and paying for distributed CPU work can overwhelm the apparent flexibility of serverless computing. The developer described the result as a useful negative finding, with the implementation proving technically possible while the measured price made it unsuitable as a competitive inference service.



