Loading…
Topic
Transformer
6 posts about Transformer. Every summary links to the original.
- 6 posts
- 4 companies
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
Prepare Market Data for Forecasting with NVIDIA Megatron Core
Market data arrives as a stream of trades and quotes, timestamped to the microsecond, requiring aggregation into bars for AI-based forecasting. NVIDIA Megatron Core, an open-source library of GPU-optimized components, powers transformer model training at scale; this post shows offline preprocessing that turns intraday bars into patches of, for example, eight bars per patch and 32 patches per context window, and then training a small model with Megatron-LM. The preprocessing records configuration like patch length and forecast horizons in metadata and saves outputs as memory-mapped PyTorch tensors. The data loader supplies batches to distributed training while enforcing date-based splits and an embargo to prevent look-ahead bias, with reads shared within tensor-parallel groups. This framework forecasts log returns and trading volume across several horizons from each context position, supporting both point and cumulative targets with the same input representation.
Welcome Inkling 2 Mini, Cutting-edge Performance for your Local Setup
Thinking Machines Lab released Inkling 2 Mini, a 26B-parameter multimodal mixture-of-experts model with 3B active parameters per token, designed for local AI setups. It uses a looped transformer where 12 middle layers run three times per token, effectively acting as 48 logical layers. The model supports 1M-token context, accepts images and text, and is available in mixed-precision formats (NVFP4, MXFP8) with a DSpark drafter for additional speed. It leads in 32 of 48 benchmarks compared to models like Gemma 4 31B and Qwen3.8-27B, and is supported in transformers, llama.cpp, MLX, and SGLang. A research variant allows variable loop passes for faster inference at a potential quality trade-off.
NVIDIA Kumo Forecast Combines Pretrained Time-Series Representations with Historical Pattern Retrieval and Interpretability
NVIDIA Kumo Forecast (formerly NV-Tesseract Forecasting) is a multivariate time-series forecasting model that combines a pretrained Transformer backbone with Domain-Aware Representation and Retrieval (DARR). The model uses the MOMENT-1-large backbone with approximately 340 million parameters, keeping encoder and embedder weights frozen while training the forecasting head. DARR mode augments direct predictions by retrieving related patterns from historical data using k-nearest-neighbor search, blending direct forecasts with retrieved patterns. The library provides a DataFrame-first API, configurable horizons with autoregressive extension, and an interpretability framework that produces lag and feature attributions, semantic-flow diagnostics, trajectory-stability diagnostics, and optional embedding Integrated Gradients per forecast horizon. Kumo Forecast is available under Apache 2.0 license, supports input lengths of 256, 512, 1024, and 2048 observations, requires numeric temporal data, and includes an example for fine-tuning on user-supplied CSV.
Can we change an AI model’s architecture without retraining it from scratch?
The Transformer architecture’s memory cost scales with token count, making long-context AI agents expensive. In controlled comparisons of three state space models - Gated KalmaNet, Gated DeltaNet, and Mamba-2 - Gated KalmaNet performed best, offering variable-length inference without retraining. Priming identifies which attention layers can be replaced by state space models using a sliding-window attention proxy, then reuses pre-trained weights to convert them into hybrid architectures without retraining, reducing pretraining cost by over 99%. A 32-billion-parameter hybrid model matches the original Transformer’s reasoning quality while decoding up to twice as fast or reaching correct answers in two-thirds of wall-clock time. The team extended hybrid context to 256K tokens without additional training and released primed models at 8B and 32B scales along with training code, kernels, and a vLLM plugin under Apache 2.0.
Putting a Transformer Inside Every Card Authorization
Ramp’s new card fraud model combines a small transformer pre-trained without fraud labels with an XGBoost stage to score each authorization in real time. The transformer reads a cardholder’s recent transactions and learns to predict the next transaction, producing embeddings and surprisal scores that capture how anomalous each field is. The model caught 32% more fraud dollars than its predecessor while flagging the same number of transactions, with average precision 12% higher than XGBoost alone. Most of the dollar gain comes from weighting XGBoost training examples by dollar amount, while the transformer improves ranking and catches more first fraudulent charges on a card. The transformer trains in under 90 minutes on four L40S GPUs and runs on CPU within the authorization latency budget after optimizations cut median model step time from 145 to 54 milliseconds.
Pruning LLMs Like a Physicist: Block Removal as an Ising Optimization Problem
Removing entire transformer blocks is a cheap way to speed up large language models, yielding predictable inference gains and stacking with quantization and other compression methods. The challenge is that block choices interact, making it a combinatorial problem rather than a simple ranking task. The authors reformulate block selection as a constrained binary optimization (CBO) problem, mapping it onto an Ising glass, a disordered spin system with all-to-all interactions and a fixed number of removed blocks. They note that mean-field methods, which treat each block independently, are inadequate for this interacting system. Block removal composes with quantization, low-rank compression, width pruning, and knowledge-distillation-based healing, fitting into a larger pipeline rather than competing with it. The paper is titled ‘LLM Compression by Block Removal with Constrained Binary Optimization.’
Related topics
All topics →Weekly digest
The best engineering reads, once a week.