Read the full article: https://petronellatech.com/blog/serve-glm-5-3-flash-with-full-1m-context-on-one-dgx-station-gb300/ A conversation about "Serve GLM-5.3-Flash With Full 1M Context on One DGX Station GB300" from the Petronella Technology Group, Inc. blog. Subscribe to Encrypted Ambition and hear every episode: https://petronellatech.com/podcasts/ Questions about AI, cybersecurity, or compliance for your business? Call Petronella Technology Group, Inc. at 919-348-4912.
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Chapters
Introduction
Serve GLM-5.3-Flash With Full 1M Context on One DGX Station GB300
What organizations should do
How to reach us
Transcript
From the show. Tap a time to play from there.
HostToday we examine a GPU memory mishap that stalled a single-box AI lab on a DGX Station GB300.
AnalystIt involved the GLM-5.3-Flash model from NVIDIA, a 191-gigabyte checkpoint that the team downloaded.
HostPetronella Technology Group ran this exact configuration on its own GB300 since September 25, 2026.
AnalystThe model’s full 1,048,576-token context is a staggering 1.05 million tokens, but the real issue was a hidden page cache.
HostOn the GB300, the GPU’s high-bandwidth memory sits on NUMA node one, while the system’s LPDDR memory is on node zero.
AnalystHeavy file I/O on the host, like downloading or copying the 191-gigabyte weights, fills node zero’s page cache.
HostWhen the kernel moves those pages into HBM, vLLM sees almost no free GPU memory and crashes.
AnalystThe error message looks odd: it says it tried to allocate 151 GiB while reporting 159.43 GiB free.
HostThat contradiction is a signature of the NUMA trap, and it can happen without you knowing.
AnalystThe fix is surprisingly mechanical, involving three steps that keep the page cache out of the GPU memory.
HostFirst, before every start the pre-start script drops the page cache with sync and echo 1 to /proc/sys/vm/drop_caches.
AnalystThat command forces the kernel to flush cached pages, freeing HBM for vLLM’s KV cache allocation.
HostSecond, all bulk I/O operations run under numactl with membind zero, so they stay in LPDDR.
AnalystThis includes the initial weight download with huggingface-cli and any future rsync or copy jobs that might fill the cache.
HostThird, the vLLM container itself is never pinned to node zero; pinning it causes CUDA to fail with Error 802.
AnalystBy leaving the container free to use the entire machine, it can access the GPU memory it needs without restriction.
HostThe service is managed by systemd, not Docker’s restart flag, which gives the pre-start script a chance to run each time.
AnalystThe systemd unit starts the container with a short list of vLLM flags that set the context and concurrency.
HostThose flags include --max-model-len 1048576 and --max-num-seqs 256, allowing up to 256 sequences in flight.
AnalystGPU memory utilization is capped at 0.94, giving the system a 6% headroom for unexpected spikes.
HostChunked prefill and prefix caching are turned on to handle very long prompts efficiently and reduce redundant work.
AnalystTool calling is enabled with auto-tool-choice, and the parsers glm47 and glm45 match the model’s output format for structured calls.
HostThe API surface is OpenAI-compatible, listening on port 8888 and exposing the model as glm-5.3-flash.
AnalystThis compatibility lets existing client code redirect to the private endpoint with minimal changes to the base URL.
HostThe KV cache uses fp8 precision, which comes from the checkpoint configuration and saves memory.
AnalystWith fp8, the cache holds 5,933,986 tokens, enough for roughly 5.66 full 1-million-token requests.
HostSo the service can support multiple long-context sessions simultaneously without exceeding GPU limits.
AnalystStartup takes about seven minutes from systemctl start to serving; weights load in about 77 seconds.
HostThe remaining time is spent compiling and capturing CUDA graphs, which vLLM does once at launch for future requests.
AnalystIf startup takes longer, the pre-flight check with grep FilePages on node one can reveal the page cache trap.
HostThe restart policy in systemd restarts the service on failure every 60 seconds, capped at three starts per hour.
AnalystThat cap prevents a crash loop from hammering the machine and losing logs, keeping the system stable.
HostWhen a container crashes, the pre-start script saves its logs before removing it, preserving evidence for debugging.
AnalystDocker itself has no restart flag in this setup, so systemd owns the entire restart lifecycle and ensures the pre-start runs.
HostThe smoke test checks three things: model listing, a chat answer, and a get_weather tool call returning structured tool_calls.
AnalystSkipping the tool-call check leads to silent failures that break downstream agents, so the test is essential.
HostPetronella’s go-live record shows the first user decoding at 145.9 tokens per second, a solid baseline.
AnalystTime to first token for that single user is 0.061 seconds, giving a fluid interactive experience for end users.
HostWhen 32 users run concurrently, the aggregate throughput is 1,464 tokens per second, a respectable level.
AnalystThat averages 55.6 tokens per second per user, with a 0.985-second median time to first token across the load.
HostNo failures occurred at that load, proving the configuration can handle moderate concurrency without errors.
AnalystThe peak aggregate measured was 2,517 tokens per second at 256 users, about 29 tokens per user, the ceiling of this setup.
HostThose numbers come from a burst test with 256-token answers and three repeats after a warm-up, ensuring consistency.
AnalystThe long-context check involved needle retrievals at 968,377 prompt tokens, covering 90% of the maximum context length.
HostEach retrieval took between 33.5 and 37.0 seconds, confirming the model can process nearly a million tokens in a single request.
AnalystQuality gates before go-live included a tool-call battery of 38 out of 38 and an agent battery of 15 out of 15, both passing.
HostOn the closed-book CMMC battery, the checkpoint scored 26 out of 35, the best result among models tested in that suite.
AnalystThe total evaluation items reached 117 out of 127, indicating strong overall performance across diverse tasks.
HostHowever, the configuration has known limits that teams should be aware of before scaling.
AnalystSpecifically, there is no speculative decoding; multi-token prediction fails to load with a tensor shape mismatch error.
HostA different checkpoint from RedHatAI supports multi-token prediction but loses measurable compliance recall, so it’s not recommended.
AnalystThat checkpoint achieved 231 tokens per second for one user and 1,760 for 32 users on the same machine, but its recall dropped.
HostThe RedHatAI checkpoint without multi-token prediction still reaches 144 tokens per second for one user, a modest drop.
AnalystIts 32-user throughput is 1,633 tokens per second, with prefill rates of 28,610, 33,076, and 32,511 tokens per second for 8K, 32K, and 128K prompts.
HostThese prefill numbers are specific to the RedHatAI checkpoint, not the NVIDIA recipe, so they don’t directly compare.
AnalystAnother limitation is the lack of API key authentication; vLLM binds to 0.0.0.0 with no auth by default.
HostDeploying it on a private network or behind a firewall with a reverse proxy is essential for security and compliance.
AnalystThe recipe has only been tested on DGX Station GB300 hardware, so other GB300 systems should work but have not been measured.
HostFor reference, the same model on a four-GPU H200 NVL server decodes at 238 tokens per second for one user.
AnalystThat setup achieves 2,254 tokens per second aggregate at 32 users, faster than the single-box GB300 configuration.
HostOn a four-unit GB10 pod, the model serves one user at 44.9 tokens per second, a lower throughput.
AnalystWith two GB10 units, it supports only six sequences at 24.1 tokens per second per user, highlighting scaling limits.
HostPetronella recommends using at least four GB10 units for long-context workloads to reach acceptable performance.
AnalystThe GB300’s advantage is its ability to hold the full one-million-token context on a single machine, ideal for branch deployments.
HostIt’s ideal for desk-side or branch deployments that need that capacity without a multi-GPU cluster, simplifying operations.
AnalystChoosing vLLM over simpler servers is justified when you need structured tool calling, concurrency, and long-context support.
HostFor smaller footprints, a multi-GPU RTX 6000 Pro setup might be more appropriate, depending on the workload.
AnalystIf you’re evaluating a GB300 or similar hardware, the recipe provides a proven starting point that has run since September 2026.
HostBut you should also consider whether the memory trap will reappear if you run heavy I/O after deployment, especially during updates.
AnalystThe pre-flight check with grep FilePages can catch that before you start the container, preventing silent failures.
HostOrganizations should also plan for authentication and network isolation to protect the endpoint from external access.
AnalystAdditionally, monitoring the container logs, which are preserved by the pre-start script, helps diagnose future crashes and performance regressions.
HostNow that we understand the mechanics and limits, what steps should companies take to avoid this trap in their own deployments? First, verify that the GB300’s page cache is empty before you start the container.
AnalystRun the grep FilePages command against node1’s meminfo; the output should be near zero, otherwise heavy I/O has already populated HBM with file pages.
HostIf you see non-zero values, drop the cache with sync and echo 1 into drop_caches.
AnalystThat command flushes the kernel’s page cache, freeing HBM for the vLLM KV cache allocation.
HostNext, download the 191-gigabyte checkpoint with numactl bind to node 0.
AnalystUse numactl --membind=0 huggingface-cli download nvidia/GLM-5.3-Flash-NVFP4 to keep file pages in LPDDR memory.
HostAvoid downloading with plain huggingface-cli; the kernel would then place pages in HBM and trigger the trap.
AnalystAfter the download, install the service files: copy glm53-flash-prestart.sh to /usr/local/sbin and glm53-flash.service to /etc/systemd/system.
HostReload systemd and enable the unit so that it starts on boot.
AnalystThe unit runs the pre-start script, which clears the cache and preserves prior logs before removing the container.
HostIt also enforces the restart policy: 60-second intervals, maximum three starts per hour.
AnalystThat policy stops an out-of-memory loop from hammering the machine and keeps logs accessible.
HostWhen you start the service, give it about seven minutes before it reports ready.
AnalystThe first 77 seconds load weights, then the remaining time is spent compiling CUDA graphs.
HostAfter startup, run the smoke test to confirm the model is listed, returns a chat answer, and returns a structured get_weather tool call.
AnalystThe smoke test script checks three endpoints; failing any of them indicates a configuration issue.
HostIf the smoke test passes, you can be confident the service is healthy.
AnalystNow, for ongoing operations, keep all bulk I/O off node 1 by wrapping downloads in numactl or docker run with cpuset-mems 0.
HostDon’t pin the vLLM container to node 0; that causes CUDA initialization to fail with Error 802.
AnalystThe container should have access to both nodes so it can allocate GPU memory freely.
HostMonitor the container’s logs regularly; they are preserved by the pre-start script before each restart.
AnalystIf you notice repeated out-of-memory errors, re-run the grep FilePages check to verify HBM is clear.
HostAlso watch the token throughput metrics; one user at 145.9 tok/s and 32 users at 1,464 tok/s are expected benchmarks.
AnalystIf throughput drops significantly, check GPU memory utilization; the service is configured to use 94% of available memory.
HostRemember that the KV cache holds 5,933,986 tokens; only about 5.66 full-million-token requests can be served concurrently.
AnalystIf your workload exceeds that, you’ll see requests queue rather than fail, so plan capacity accordingly.
HostConsider adding more GB10 units if you need higher aggregate throughput; a four-unit pod can support more sequences.
AnalystBut if you require the full 1M context on a single machine, the GB300 is the only tested solution.
HostFor authentication, bind the service to 0.0.0.0 but place a reverse proxy with API key enforcement in front.
AnalystWithout authentication, anyone on the network can consume GPU resources and read model outputs.
HostDeploy the service behind a corporate firewall or private network to isolate it from external traffic.
AnalystIf you need to run updates, perform them during low-usage windows to avoid triggering the page-cache trap.
HostUse the pre-flight grep before any update to ensure node 1’s FilePages remain low.
AnalystFor scaling, keep the --max-num-seqs flag at 256 if you anticipate many concurrent long prompts.
HostIf your use case is short prompts, you might lower --max-num-seqs to reduce memory footprint.
AnalystHowever, lowering --max-model-len changes the service’s purpose; only trim it if you truly need less context.
HostWhen you notice a sudden increase in GPU memory consumption, verify that no background process is writing large files to disk.
AnalystLarge rsync or backup jobs can inadvertently fill HBM with file pages, triggering the same out-of-memory error.
HostTo avoid that, schedule such jobs on node 0 or disable them during peak inference times.
AnalystAlso, keep the vLLM container’s CPU affinity broad; pinning it to a single CPU socket can reduce scheduling flexibility.
HostIf you observe CUDA graph capture failures, ensure the container has sufficient GPU memory headroom.
AnalystThe 0.94 GPU memory utilization setting leaves enough headroom for graph compilation and runtime spikes.
HostFor tool-calling workloads, validate that the parser names glm47 and glm45 match the container’s build.
AnalystIf you upgrade the vLLM image, re-run the smoke test to confirm parser compatibility.
HostAvoid relying on Docker’s restart policy; systemd provides more granular control and a consistent pre-start step.
AnalystDocker’s --restart unless-stopped would skip the pre-start script, leaving the page-cache trap unresolved.
HostIf you need to recover from a crash loop, use systemctl reset-failed before restarting the unit.
AnalystAfter resetting, double-check the FilePages count; a non-zero value indicates a persistent I/O issue.
HostWhen adding more GPUs, remember the GB10 pods have lower per-GPU throughput, especially with only two units.
AnalystA four-unit GB10 pod serves one user at 44.9 tok/s, while two units can handle only six sequences at 24.1 tok/s each.
HostFor higher throughput, consider a four-GPU H200 NVL server; it achieves 238 tok/s for one user and 2,254 tok/s for 32 users.
AnalystBut that configuration requires multi-GPU networking and is not a single-node solution like the GB300.
HostIf you need the full 1M context and a single-machine deployment, the GB300 recipe is the only proven path.
AnalystWhen planning a new deployment, start with the provided repository, copy the service files, and follow the install script exactly.
HostDon’t skip the pre-start script; it is essential for clearing the cache before every start.
AnalystAlso, avoid hard-coding the container’s image tag; pin by digest to ensure reproducibility.
HostIf you need to upgrade the image, update the digest and re-run all tests before production use.
AnalystFor monitoring, export vLLM metrics to Prometheus; look at token per second, queue length, and memory usage.
HostSet alerts for when token throughput drops below 100 tok/s for one user, indicating a potential memory issue.
AnalystAlso alert on unexpected restart events; a spike in restarts often signals the page-cache trap re-appearing.
HostWhen scaling to multiple users, keep an eye on the 55.6 tok/s per user benchmark; falling below that suggests contention.
AnalystIf you need to support more than 32 concurrent users, test at 256 users to verify the 2,517 tok/s peak.
HostRemember that the 256-sequence limit is enforced by the --max-num-seqs flag; exceeding it will queue requests.
AnalystIf you need speculative decoding, note that the current checkpoint does not support multi-token prediction.
HostA different RedHatAI checkpoint offers that feature but at the cost of closed-book recall, so choose based on your use case.
AnalystIf recall is critical, stick with the nvidia checkpoint and accept the single-token decoding speed.
HostFor branch deployments, the GB300’s single-machine design reduces network complexity and maintenance overhead.
AnalystHowever, you must still enforce network isolation; the service listens on all interfaces by default.
HostDeploy a reverse proxy like NGINX or Envoy to add TLS, rate limiting, and API key authentication.
AnalystThat layer also provides load balancing if you later add more GB300 machines behind a cluster.
HostWhen you add more machines, keep each one configured identically to ensure consistent performance.
AnalystSynchronize the model weights across all nodes using the same numactl download procedure to avoid cache traps.
HostIf you run into memory fragmentation, consider rebooting the host to clear the kernel’s page cache.
AnalystRebooting is a quick way to reset the NUMA topology, though it is less desirable than graceful restarts.
HostFor development, use the smoke test after every change to confirm the service remains healthy.
AnalystAutomate the smoke test in your CI pipeline; it catches regressions before they hit production.
HostFinally, document the entire deployment process, including the pre-start script, restart policy, and monitoring setup.
AnalystDocumentation ensures that new operators can recover from the page-cache trap without hunting for obscure logs.
HostBy following these steps, organizations can deploy the GLM-5.3-Flash model reliably on a GB300 and avoid the common pitfalls.
AnalystThey’ll also be able to scale appropriately, maintain security, and monitor performance to meet their business needs.
HostNow that the recipe is clear, let's think about what that means for the day-to-day ops of a business.
AnalystThe first implication is that the 191-gigabyte checkpoint is a one-time cost; once you have it locally, you avoid repeated downloads that trigger the page-cache trap.
HostSo you can schedule the initial download during a maintenance window and keep the weights on a persistent volume.
AnalystExactly. And because the KV cache holds 5,933,986 tokens, you can comfortably serve up to five or six full-million-token requests concurrently before you hit the 5.66 limit.
HostIf a team needs more than that concurrency, what do they do?
AnalystThey either increase the number of GB300 nodes or reduce the maximum sequence length to free up KV space, but the recipe is tuned for full context, so changing that changes the service's purpose.
HostWhat about the 7-minute warm-up? That seems long for a small office.
AnalystThe weight load takes about 77 seconds, and the remaining 6 minutes are for CUDA graph capture and compilation; you can’t reduce that without sacrificing the pre-prefill and prefix caching that keep latency low.
HostSo the startup is a known cost that you can plan for.
AnalystRight. And if a restart is needed, systemd will handle it automatically, but you should monitor the restart count to catch a loop early.
HostWhat are the most common mistakes people make when deploying this setup?
AnalystThree that we see: starting the container manually and skipping the pre-start cache drop, pinning the container to node 0, and forgetting to run bulk downloads with numactl.
HostThose all trigger the same out-of-memory symptom, correct?
AnalystYes, the self-contradicting error message about 159.43 GiB free but 151 GiB allocation failing is the hallmark of the trap.
HostHow can operators detect the trap before it kills the service?
AnalystRun a quick grep on /sys/devices/system/node/node1/meminfo for FilePages; if it's not close to zero, you’ve got stale page cache in HBM.
HostAnd if it is non-zero, you should drop the cache before starting again.
AnalystExactly. The pre-start script does that automatically, but if you bypass it you’ll hit the trap.
HostWhat about security, especially since the API is open by default?
AnalystYou should put the service behind a reverse proxy that enforces TLS and API key or token authentication; otherwise anyone on port 8888 can consume GPU resources.
HostThat proxy can also do rate limiting, which is handy for protecting against misuse.
AnalystAnd it gives you a single point to log requests, which is useful for compliance audits.
HostSpeaking of compliance, how does the model perform on closed-book tests?
AnalystOn the CMMC battery it scored 26 of 35, the best among models we measured, and the total evaluation items hit 117 of 127.
HostSo it’s suitable for organizations that need high recall of factual content.
AnalystYes, but remember the no-speculative-decoding limitation; if you need multi-token prediction for speed, you’ll need a different checkpoint that may trade off accuracy.
HostSo there’s a trade-off between throughput and compliance.
AnalystPrecisely. The RedHatAI checkpoint offers higher throughput but lower recall, so you must align the choice with business priorities.
HostHow do you monitor the service once it’s live?
AnalystUse systemctl status to check health, journalctl for recent logs, and docker logs for container output; we also recommend sending metrics to a monitoring system like Prometheus.
HostWhat metrics are most valuable?
AnalystToken throughput per user, time to first token, and the number of concurrent sequences; also watch for any OOM events in the logs.
HostIf the service starts to slow, what steps should you take?
AnalystFirst, check the current number of active sequences; if you’re near 256, you’re at the concurrency ceiling. Next, examine the cache usage; if you’re close to 5.93 million tokens, you’re near the KV limit.
HostCould you throttle user requests to stay within limits?
AnalystYes, you can enforce a soft limit in your application layer or use the proxy to cap request rates per IP or API key.
HostWhat about scaling horizontally?
AnalystAdd another GB300, keep the same weight download process, and use a load balancer in the proxy layer; the service remains identical across nodes, so you just increase aggregate throughput linearly.
HostDo you recommend any particular load-balancing algorithm?
AnalystRound-robin is simple and effective when each node has identical capacity; for uneven loads you could use least-conn or weighted round-robin based on recent throughput.
HostWhat about caching the model weights across nodes to avoid disk duplication?
AnalystYou can mount a shared NFS or use a distributed file system, but remember that each node must still drop the page cache before starting to avoid the trap.
HostSo the pre-start script must run on every node.
AnalystExactly. It’s a small script but critical for stability.
HostWhat if a node fails during a request?
AnalystThe proxy can detect the failure and redirect the request to another healthy node; vLLM will handle the new context from scratch, but the latency will include a warm-up.
HostIs there a way to preserve context across restarts?
AnalystNot with the current checkpoint; you would need a stateful cache or a different architecture that supports checkpointing of KV state.
HostWhat about tool calls-how reliable are they?
AnalystThe smoke test checks for a structured get_weather tool call; on our deployment we hit 38 of 38, so tool calls are handled correctly as long as you use the specified parser names glm47 and glm45.
HostIf a new tool is added, do you need to adjust the parser?
AnalystYes, you’d need to update the tool-call parser or add a custom parser that matches the new tool’s output format.
HostHow do you handle version upgrades of the checkpoint?
AnalystDownload the new checkpoint with numactl, drop the cache, and restart the service; the pre-start script will preserve old logs and apply the new weights.
HostDoes the new checkpoint affect the KV token count?
AnalystPotentially; the new checkpoint may change the fp8 configuration, so you’d need to recalculate the cache capacity and adjust max-num-seqs if necessary.
HostWhat if the new checkpoint introduces a different parser name?
AnalystYou’d have to update the service flags to match the new parser; otherwise the model will output raw text that the client cannot parse.
HostWhat questions do listeners frequently ask about this deployment?
AnalystCommon ones include: how to handle more than five concurrent million-token requests, whether the setup works on other GPUs, and how to secure the endpoint if it’s exposed to the internet.
HostAnd the answers are essentially what we’ve covered: scale horizontally, test on the target hardware, and add a proxy with authentication.
AnalystCorrect. Another question is about the impact of speculative decoding; we advise against it because it’s unsupported for this checkpoint.
HostWhat if an organization wants to use speculative decoding anyway?
AnalystThey’d need to switch to a checkpoint that supports it, like the RedHatAI NVFP4, but they should be prepared for reduced compliance recall.
HostSo the trade-off is clear.
AnalystYes, and that trade-off should be documented in the architecture plan.
HostDo you have any final recommendations for operators who are just starting?
AnalystStart with the single-node recipe, verify the smoke test, monitor metrics, and only then consider scaling; also keep the pre-start script and systemd unit in version control so you can roll back quickly.
HostAnd always remember to keep the page cache clean before each start.
AnalystThat’s the single most important step to avoid the out-of-memory loop that can be hard to diagnose otherwise.
HostWhat about resource limits-do you recommend cgroups?
AnalystUsing cgroups to cap CPU and memory ensures the container doesn’t starve the host, but the GPU memory is managed by vLLM through the 0.94 utilization flag.
HostSo you’d set CPU shares to match the workload?
AnalystExactly, and you can use docker run --cpus to limit the container to a fraction of the CPU, but leave GPU allocation to vLLM.
HostThat balances host stability with model performance.
AnalystAnd don’t forget to keep the system updated; kernel patches can affect NUMA behavior, so monitor release notes for any changes that might re-introduce the page-cache trap.
HostAny last technical detail that could trip people up?
AnalystMake sure you’re not using the Docker restart flag; systemd must own the restart policy, otherwise the pre-start script won’t run on a crash, and the trap will reappear.
HostGot it-systemd is the single source of truth for restarts.
AnalystWith a well-documented, monitored, and secured deployment, your organization can reliably serve GLM-5.3-Flash at full context on the DGX Station GB300.
HostThank you for the detailed walkthrough and practical guidance.
Read the full article: https://petronella.ai/blog/cairn-zero-day-attack-shows-ai-agents-exploited-in-the-wild/ A conversation about "Cairn Zero Day Attack Shows Ai Agents Exploited In The Wild" from the Petronella...
Read the full article: https://petronellatech.com/blog/zero-trust-for-software-supply-chains-when-cloud-fails/ A conversation about "Zero Trust for Software Supply Chains When Cloud Fails" from the Petronella Technology...
Read the full article: https://petronella.ai/blog/qwen-self-hosted-ai-models-need-stronger-steering/ A conversation about "Qwen Self Hosted Ai Models Need Stronger Steering" from the Petronella Technology Group, Inc....
Read the full article: https://petronellatech.com/blog/cybersecurity/java4shell-exploitation-attempts-begin-as-advisories-grow/ A conversation about "Java4Shell Exploitation Attempts Begin as Advisories Grow" from the...
Read the full article: https://petronella.ai/blog/edge-lockdown-mode-disables-gpu-apis-to-cut-attack-surface/ A conversation about "Edge Lockdown Mode Disables Gpu Apis To Cut Attack Surface" from the Petronella...