Google's MaxText now supports very long-context training
· Do Minh Tuan · Trending Tech 🔥

InfoQ reported that Google has extended MaxText, its open-source training framework, with four context-parallelism strategies. The headline is that teams can now train language models on very long inputs, reportedly up to millions of tokens, on Cloud TPUs. MaxText is built on JAX, Google's numerical computing library, and is meant as a reference implementation: a starting point that already handles the messy parts of distributed training.
The number in that sentence is the one everybody will repeat, and it is the one I trust least. Millions of tokens describes what the framework can be configured to do on a large slice of TPUs, not what a normal team will run on a normal Tuesday. It is a ceiling, and ceilings are useful for planning only if you also know the cost of standing on them.
I think what actually changed is more modest and more interesting. Long-context training used to be a research project. You read papers, wrote custom sharding logic, and hoped the result generalized. Now a major vendor is folding those techniques into a maintained framework with documented settings. That shift, from bespoke code to configuration, is the part that changes who can attempt this.
Why long context is hard
Start with the bottleneck. Training on a sequence of hundreds of thousands of tokens means the attention mechanism compares a very large number of token pairs. In naive implementations, the memory for those intermediate values grows roughly with the square of the sequence length. Communication between chips grows too. A single accelerator cannot hold the working state for a sequence that long, so the work has to be split.
Context parallelism splits one sequence across multiple devices. Each device holds a slice, and the framework coordinates the attention computation so devices exchange what they need. The four new strategies make different trade-offs between replicated data, communication volume and memory saved. Google's framing is that they address compute, memory and communication together, which is the honest way to describe it, because you cannot fix one of those three without paying in another.
That is also why the topic is hard to explain in a product meeting. The useful summary for a non-specialist is that long context is expensive in three places at once, and the settings decide where you pay. There is no configuration that makes it cheap.
Other parallelism types matter here too. Data parallelism replicates the model across devices. Tensor parallelism splits individual layers. Pipeline parallelism splits layers into stages. Real training runs combine several of these, and the combinations are fiddly, which is the actual reason a framework like MaxText exists.
The costs nobody puts in the slide
Memory pressure is the first. Activations for long sequences are large, and even with efficient attention variants you have to decide what lives in high-bandwidth memory and what gets recomputed. Communication is the second. Splitting a sequence means devices talk constantly during attention, and on a slow interconnect that dominates training time.
Data shape is the third, and I suspect it is the one teams underestimate. Long-context training needs genuinely long documents. If you pad short samples or concatenate unrelated text to reach the length, you teach the model to ignore distant tokens, which is the opposite of the goal. You can hit the configuration target and still train a model that has no idea what to do with a long input.
Evaluation is the fourth. A model that accepts a million tokens is not automatically good at using them. Retrieval quality across a long context is a separate skill with its own tests, and I doubt most teams have those tests. I would want a needle-in-a-haystack style check and a structured extraction check before believing any long-context claim, including my own.
And then cost per example. Long sequences are expensive, and a lot of teams discover that retrieval over shorter contexts is cheaper and more accurate for their actual problem. That is not a failure of the technology. It is a reminder that the context window is a tool, not a goal.
Where the demand lands in Vietnam
Vietnam's AI market is small and moving quickly, and the shape of it decides how a release like this lands. Very few local companies operate large TPU or GPU clusters. Most teams rent capacity or call APIs. So the millions-of-tokens scenario is mostly relevant to well-funded labs, university research groups, and the local arms of foreign firms. For everyone else the value is educational: understanding how this works makes for better architecture and procurement decisions.
The more accessible niche is fine-tuning and adaptation for Vietnamese language tasks, where local data and tokenization matter. Long context is genuinely useful for legal documents, government paperwork, contracts and long customer support transcripts, all common in this market. A team that can reliably handle a 100,000-token Vietnamese contract has an offering it can defend, even if it never trains from scratch.
The bottleneck is talent, not ambition. Vietnam produces strong software engineers, and the number with hands-on distributed training experience is growing but thin. Documented parallelism strategies help close that gap faster than waiting for experience to accumulate.
Outsourcing cuts both ways. My bet is that international firms sending AI work to Vietnam will ask whether a local partner can handle a long-context pipeline. Service companies that invest in the skill can differentiate. Ones that treat AI as prompt engineering will be commoditised, and honestly, they should be.
If I were hiring, I would screen for systems thinking rather than vocabulary. Ask a candidate why a long sequence is hard to train. Good answers mention memory, communication and data shape. Weak answers list framework names. Be explicit about whether the role is training or inference, because many engineers have deployed models through APIs and never trained at scale, and for most product work fine-tuning and evaluation matter more. A short take-home on long-document extraction tells you more than algorithm trivia. Budget for compute as part of the role, because a team without access will not develop the skill. And expect a learning curve on JAX and TPUs, since PyTorch and GPU experience is far more common here.
If you are a developer, the path is unglamorous. Learn the parallelism vocabulary. Practise sharding on a single GPU with small models. Read the MaxText documentation even if you use PyTorch, because the concepts transfer. Build an evaluation harness, since anyone can paste a long document into a prompt and few people can measure whether the model used the middle of it. And learn when not to use long context, because being the engineer who asks that question is a career advantage.
My own view is that this release matters less for what it enables at the top end and more for what it normalises in the middle. The immediate effect in Vietnam will be modest; the medium-term effect is that the advantage moves to teams with clean domain data and a clear use case, and local teams with strong Vietnamese corpora are well placed for that. I would rather hire the engineer who can explain the trade-offs than the one who can recite the maximum context length.
Written with AI assistance, reviewed and edited by Do Minh Tuan.