SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.14351 · 2024

ServerlessLLM: Low-Latency Serverless Inference for Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

6 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 5 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2401.14351.json · badge: /api/ran/2401.14351.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
serverlessllm/serverlessllm canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
calculate_stats Ran
ran; our contract draft was wrong, not the code
serverlessllm/serverlessllm/benchmarks/generate_report.py
code served (permissive licence) · get_code("66b242d3cebeb8ba")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Construct valid arguments for calculate_stats
# The function expects a List[Dict] where each dict has 'loading_time' 
# and optionally 'throughput' keys

data = [
    {
        'loading_time': 0.5,
        'throughput': 100.0
    },
    {
        'loading_time': 0.7,
        'throughput': 95.0
    },
    {
        'loading_time': 0.6,
        'throughput': 105.0
    }
]

ARGS = {
    'data': data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_dataframe Ran
ran; our contract draft was wrong, not the code
serverlessllm/serverlessllm/benchmarks/plot.py
code served (permissive licence) · get_code("edb868bdca284745")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd

# Construct sample sllm_results and safetensors_results dicts
# The function expects model names with format "prefix_modelname" (since it splits on '_')
# Each model maps to a list of results, where each result has 'loading_time' key

sllm_results = {
    'sllm_bert': [
        {'loading_time': 0.123},
        {'loading_time': 0.125},
    ],
    'sllm_gpt2': [
        {'loading_time': 0.456},
        {'loading_time': 0.459},
    ],
}

safetensors_results = {
    'sllm_bert': [
        {'loading_time': 0.100},
        {'loading_time': 0.102},
    ],
    'sllm_gpt2': [
        {'loading_time': 0.420},
        {'loading_time': 0.422},
    ],
}

ARGS = {
    'sllm_results': sllm_results,
    'safetensors_results': safetensors_results,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate_text_report Ran
ran; our contract draft was wrong, not the code
serverlessllm/serverlessllm/benchmarks/generate_report.py
code served (permissive licence) · get_code("2afff7c0bc928466")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import Dict, List

# Create benchmark data for SLLM format
sllm_data = [
    {'loading_time': 0.5, 'throughput': 100.5},
    {'loading_time': 0.6, 'throughput': 105.2},
    {'loading_time': 0.55, 'throughput': 102.8},
]

# Create benchmark data for SafeTensors format
safetensors_data = [
    {'loading_time': 1.2, 'throughput': 95.3},
    {'loading_time': 1.3, 'throughput': 98.1},
    {'loading_time': 1.25, 'throughput': 96.7},
]

# Construct results dictionary
results = {
    'sllm': sllm_data,
    'safetensors': safetensors_data,
}

# Define ARGS dictionary with all required parameters
ARGS = {
    'model_name': 'llama-7b',
    'num_replicas': 4,
    'benchmark_type': 'loading_and_inference',
    'results': results,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
init_logger Ran
ran; our contract draft was wrong, not the code
serverlessllm/serverlessllm/sllm/logger.py
code served (permissive licence) · get_code("0ba2e0c180b4490b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Logger. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import logging
import os

# Set up a default handler for the logger
_default_handler = logging.StreamHandler()
_default_handler.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(name)s - %(levelname)s - %(message)s')
_default_handler.setFormatter(formatter)

# Define arguments for init_logger
ARGS = {
    'name': 'test_logger'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_results Ran
ran; our contract draft was wrong, not the code
serverlessllm/serverlessllm/benchmarks/generate_report.py
code served (permissive licence) · get_code("7003961583dddb9d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import os
import tempfile
from pathlib import Path

# Create a temporary directory for results
temp_dir = tempfile.mkdtemp()

# Create sample JSON result files
results_data_sllm = {
    "throughput": 150.5,
    "latency": 0.0067,
    "memory_usage": 2048
}

results_data_safetensors = {
    "throughput": 152.3,
    "latency": 0.0065,
    "memory_usage": 2000
}

# Write test JSON files
model_name = "gpt2"
num_replicas = 4
benchmark_type = "inference"

filename_sllm = f'{model_name}_sllm_{num_replicas}_{benchmark_type}.json'
filename_safetensors = f'{model_name}_safetensors_{num_replicas}_{benchmark_type}.json'

filepath_sllm = os.path.join(temp_dir, filename_sllm)
filepath_safetensors = os.path.join(temp_dir, filename_safetensors)

with open(filepath_sllm, 'w') as f:
    json.dump(results_data_sllm, f)

with open(filepath_safetensors, 'w') as f:
    json.dump(results_data_safetensors, f)

# Define ARGS with all required parameters
ARGS = {
    'results_dir': temp_dir,
    'model_name': model_name,
    'num_replicas': num_replicas,
    'benchmark_type': benchmark_type
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_results Ran
ran on a synthesized input
serverlessllm/serverlessllm/benchmarks/plot.py
code served (permissive licence) · get_code("1397ecf27bc272fd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import os
import tempfile

# Create a temporary directory for results
temp_dir = tempfile.mkdtemp()

# Create test result files
test_results_1 = [
    {"accuracy": 0.95, "loss": 0.05},
    {"accuracy": 0.96, "loss": 0.04},
    {"accuracy": 0.94, "loss": 0.06}
]

test_results_2 = [
    {"accuracy": 0.92, "loss": 0.08},
    {"accuracy": 0.93, "loss": 0.07},
    {"accuracy": 0.91, "loss": 0.09}
]

# Write test files matching the pattern
pattern_template = '{model_name}_{model_format}_{num_repeats}_{test_name}.json'

filename1 = pattern_template.format(
    model_name='bert_base',
    model_format='pytorch',
    num_repeats=3,
    test_name='accuracy'
)
filepath1 = os.path.join(temp_dir, filename1)
with open(filepath1, 'w') as f:
    json.dump(test_results_1, f)

filename2 = pattern_template.format(
    model_name='roberta_large',
    model_format='pytorch',
    num_repeats=3,
    test_name='accuracy'
)
filepath2 = os.path.join(temp_dir, filename2)
with open(filepath2, 'w') as f:
    json.dump(test_results_2, f)

ARGS = {
    'models': ['bert/base', 'roberta/large'],
    'model_format': 'pytorch',
    'num_repeats': 3,
    'test_name': 'accuracy',
    'results_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
benchmark_inference Not yet run
unverified (harvested, no recorded run)
serverlessllm/serverlessllm/benchmarks/benchmark_utils.py
code served (permissive licence) · get_code("3e05bdb8bd6cf91b")
How it ran

no invocation recorded.

download_lora_adapter Not yet run
unverified (harvested, no recorded run)
serverlessllm/serverlessllm/sllm/model_downloader.py
code served (permissive licence) · get_code("215a462b20992a22")
How it ran

no invocation recorded.

download_transformers_model Not yet run
unverified (harvested, no recorded run)
serverlessllm/serverlessllm/sllm/model_downloader.py
code served (permissive licence) · get_code("334b8ea78169fbed")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This paper presents ServerlessLLM, a distributed system designed to support low-latency serverless inference for Large Language Models (LLMs). By harnessing the substantial near-GPU storage and memory capacities of inference servers, ServerlessLLM achieves effective local checkpoint storage, minimizing the need for remote checkpoint downloads and ensuring efficient checkpoint loading. The design of ServerlessLLM features three core contributions: (i) \emph{fast multi-tier checkpoint loading}, featuring a new loading-optimized checkpoint format and a multi-tier loading system, fully utilizing the bandwidth of complex storage hierarchies on GPU servers; (ii) \emph{efficient live migration of LLM inference}, which enables newly initiated inferences to capitalize on local checkpoint storage while ensuring minimal user interruption; and (iii) \emph{startup-time-optimized model scheduling}, which assesses the locality statuses of checkpoints on each server and schedules the model onto servers that minimize the time to start the inference. Comprehensive evaluations, including microbenchmarks and real-world scenarios, demonstrate that ServerlessLLM dramatically outperforms state-of-the-art serverless systems, reducing latency by 10 - 200X across various LLM inference workloads.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2401.14351")
get_code_for_paper("2401.14351")
have("2401.14351")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2401.14351.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2401.14351.svg)](https://syntology.ai/paper/2401.14351)

Connect an agent — have() is free.