In short.
This Together AI tutorial shows developers how to train Andrej Karpathy's nanochat, an end-to-end ChatGPT-style chatbot project, on a rented cluster of eight H100 GPUs and then chat with it in a web browser. It requires paid cluster access and familiarity with cluster tools. It connects tokenizer training, pretraining, task training, conversational fine-tuning and browser serving. The page estimates about four hours and $130 in GPU charges, plus storage, for its documented setup. It pins a nanochat revision and explains a storage setting that reportedly improves GPU utilization. No execution results are supplied; model quality, current compatibility and the full bill remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected documentation page at [https://docs.together.ai/docs/nanochat-on-gpu-clusters.md], including prerequisites, all eleven steps, cleanup, costs and performance, troubleshooting, next steps and the hosting attribution. Linked pages, the documentation index, repository contents, datasets and licensing terms are excluded. No commands were executed; training, serving, benchmark outcomes, current compatibility and actual charges remain unverified.
The overview
Identity
Run nanochat on a GPU cluster is a Together AI documentation tutorial at [https://docs.together.ai/docs/nanochat-on-gpu-clusters.md]. It teaches how to train Andrej Karpathy's nanochat and serve it through a browser chat interface. The nanochat repository is linked at [https://github.com/karpathy/nanochat]. The resource being described is the tutorial.
The page presents nanochat as an end-to-end conversational AI stack, spanning a tokenizer through a web interface. Its ChatGPT comparison describes the scope of the project; the supplied evidence does not establish comparable response quality or product features.
Assessment
The documented workflow is a useful candidate for learning how the parts of a conversational model fit together. It provides concrete infrastructure choices, commands, an exact source revision, storage guidance and a path from training to browser access.
Its practical value depends on willingness to pay for a substantial training setup and manage remote infrastructure. The page contains expected timings and troubleshooting advice, but no attached run logs, benchmark scores or sample conversations establish reproducibility or model quality.
Users
The strongest fit is developers or technically prepared learners who want experience with the complete training and serving process. Experienced developers get concrete details about Slurm GPU allocation, Kubernetes pod access, storage paths and FastAPI serving.
Beginners can follow the staged explanation, but the tutorial assumes basic SSH and command-line familiarity. It also requires administrative access to the cluster's project, so an account without that role cannot complete the documented kubeconfig download.
Capabilities
The tutorial covers training a byte-pair encoding tokenizer on FineWeb-Edu, pretraining a transformer, midtraining on curated tasks, supervised fine-tuning for conversation and evaluation through CORE benchmarks. It then shows how to serve the trained model through nanochat's browser interface.
It also explains session recovery, GPU visibility checks, an out-of-memory troubleshooting path and browser connection checks. Authentication, persistence, additional reinforcement learning and a larger training script appear as suggested extensions; their implementation and results are not demonstrated.
Using it
Requirements
The stated prerequisites are a Together AI account with GPU cluster access, the project admin role, the Together CLI and kubectl installed locally, and basic SSH and command-line knowledge.
The documented configuration uses eight H100-SXM GPUs, Slurm orchestration and at least 1 TiB of storage. The troubleshooting section refers to H100 GPUs with 80 GB of memory. Cluster commands assume Git, screen and sudo-based package installation are available, and the guide calls for Python 3.10 and its development headers.
Mechanism
The speedrun.sh script runs the training stages in sequence. Tokenizer training learns reusable text units through byte-pair encoding. Base model pretraining uses a transformer with rotary embeddings and the Muon optimizer. Midtraining uses SmolTalk, MMLU, GSM8K, synthetic identity conversations and spelling tasks; supervised fine-tuning develops conversational behavior.
Evaluation produces a report.md file. Serving then runs a FastAPI process inside the compute pod, and kubectl forwards its port to the local browser. Slurm allocates the training GPUs, while Kubernetes access provides the documented route to the serving process.
Setup
Create the on-demand cluster and wait for Ready status; the page estimates provisioning at 10 minutes to an hour. Connect through the console-provided SSH command, clone nanochat and check out the specified revision. Install the required Python development package, then start a screen session and request eight GPUs through Slurm.
Set NANOCHAT_BASE_DIR inside speedrun.sh to /scratch/$USER/nanochat/.cache/nanochat. A shell-only setting is insufficient because the script exports its own value. The page reports roughly 50% model FLOPs utilization with this local NVMe storage, compared with about 13% without the change; these figures are source claims.
Run bash speedrun.sh in the allocated compute session. For serving, download the kubeconfig locally, locate the compute pod where training ran and open its shell. That shell runs as root, so explicitly restore the original login's repository path, cache path and virtual environment.
Example
The tutorial describes a cluster with the example name nanochat-training, eight H100-SXM GPUs and at least 1 TiB of storage. After training completes, launch python -m scripts.chat_web from the prepared compute pod shell.
In another local terminal, use kubectl -n slurm port-forward <POD_NAME> 6818:8000 and open [http://localhost:6818/]. The documented outcome is a browser interface for chatting with the trained model. The forwarding terminal must remain open. No supplied conversation demonstrates the model's response quality.
Assessment & evidence
Limitations
The page does not report model parameter count, training data quantities, numerical benchmark results or representative chat outputs. Its references to CORE evaluation and report.md do not establish any particular score. Nothing was executed, so training completion, runtime, utilization and browser behavior remain unverified.
The serving instructions depend on the compute pod and its node-local cache remaining accessible. The guide identifies authentication and persistence as future extensions and does not establish production readiness. It also does not demonstrate equivalent behavior on smaller hardware or other providers.
Reasoning
The educational fit follows from the connected workflow: learners can trace how text preparation, model training, conversational tuning, evaluation and serving relate to each other. The exact revision and explicit environment paths make the intended setup more concrete.
The main tradeoff is paying for and operating the entire stack to gain that experience. Successful completion would establish that a particular training and serving journey worked; it would still require separate evidence to assess response quality, application suitability or readiness for public deployment.
Alternatives
Within nanochat, the page proposes modifying supervised fine-tuning data, adding reinforcement learning for specific behaviors or using run1000.sh for a larger model. It provides no detailed setup, cost estimates or results for these extensions.
No alternative training framework, provider or hosted model is compared. The supplied evidence therefore supports no ranking of alternatives or claim that this is the cheapest route to a conversational model.
Evidence
The evidence is the complete Together AI tutorial at [https://docs.together.ai/docs/nanochat-on-gpu-clusters.md]. It supplies configuration choices, commands, expected performance, cleanup instructions and troubleshooting guidance.
The linked repository, datasets, billing documentation and CLI references are not included in the supplied evidence. The page's performance statements are publisher claims; no training artifacts, benchmark report, billing receipt or execution logs accompany them.
Access & freshness
Costs
The page estimates about four hours and $130 in GPU charges for a full speedrun.sh run on eight H100 GPUs, plus storage. This is a documented estimate, not an independently verified bill or a spending limit. Current GPU rates, storage rates and the total cost of provisioning, training and serving are unknown from the supplied evidence.
On-demand clusters continue billing hourly until deleted. The shared volume survives cluster deletion and continues billing until it is also deleted. The /scratch cache is ephemeral; artifacts intended for retention must be copied to persistent storage such as /home.
Rights
The supplied page contains no explicit license or redistribution permission for its documentation. It links to the nanochat repository and the FineWeb-Edu dataset, and names other training data (SmolTalk, MMLU, GSM8K, synthetic identity conversations), without stating license terms for any of them.
Permissions for reusing the code, training data or resulting checkpoints, including commercial use and redistribution, remain unknown from this evidence. Public availability of the links does not establish those permissions.
Freshness
The page was captured on 15 November 2026. No publication or last-updated date appears in the supplied text, so the age of its timing and price estimates is unknown.
The tutorial explicitly pins nanochat to commit 48abd7d85f3b7a06fe8a457de2353047cff3d951. Its instructions are tied to that snapshot. Compatibility with later nanochat revisions, current dependency downloads, cluster interfaces and current prices is not established.
Actions
Before allocating resources, confirm current GPU and storage prices, cluster access and the project admin role. Review the pinned repository and applicable data licenses for the intended use.
Follow the pinned setup and place the cache setting inside speedrun.sh. Copy any checkpoints you need from the ephemeral /scratch cache to /home, and keep report.md (written to the nanochat directory under /home) before deleting the shared volume. Assess actual benchmark results and chat behavior after training rather than assuming quality from the pipeline's completion.
When finished, use the documented tg clusters delete <CLUSTER_ID> command to stop cluster billing. Retain needed files before separately deleting shared storage that is no longer required, since it continues billing after cluster deletion.
