Forecasting consumption with AI: we put Mistral's Timestral to the test
About 14 minutes to read
In brief. Timestral is a new open model from Mistral that uses a company's history to forecast sales, consumption or requests, without building a custom model. We tried it on a steel mill's real energy consumption: here are the results, the errors and how to apply it to your company.
On October 15, Mistral introduced Timestral, an artificial intelligence model that forecasts the trend of data measured over time: electricity consumption, sales, sensor readings[1].
For a company, forecasting demand better can help reduce idle warehouse stock and unfilled orders. Estimating workload makes it possible to schedule shifts before a peak in requests. Knowing expected consumption can help plan production runs in the most convenient time slots, when production constraints allow it.
With Timestral you can get forecasts for different products, departments or services without building a custom model each time. Downloadable code and weights let you run it on your own servers and connect it to company systems, under the terms of their respective licenses.
We tried it on a steel mill’s real consumption, forecasting the next 24 hours every day. The demo compares a month of forecasts with actual consumption and with that of the previous week, also showing where the model gets it wrong.

The steel mill consumption test: the demo compares Timestral’s forecasts with actual consumption, over the whole month and day by day.
What Timestral is
A time series is a sequence of measurements ordered in time, like a meter’s consumption every fifteen minutes or daily sales. Forecasting it means estimating the next values.
Timestral is a family of foundation models for time series. Mistral trained them on many different sequences to learn regularities like trends, oscillations and recurring cycles, to apply to other data as well[1].
The principle is similar to language models: trained on many texts, they can work on a new text without being retrained each time. With Timestral you provide a history of numbers and ask for its continuation. This use without new training is called zero-shot: in our test the weights, meaning the numbers the model learned during training, stay unchanged.
For our experiment it receives three weeks of consumption and forecasts the next 24 hours. It returns a central value for each quarter hour and a band that expresses the forecast’s uncertainty[2].
| Step | What it contains |
|---|---|
| History given to the model | 21 days of consumption, one measurement every 15 minutes: 2,016 numbers. |
| Period to forecast | The next day: 96 intervals of 15 minutes. |
| Timestral’s response | 96 central values, with an uncertainty band for each. |
| Check | The comparison between those values and the 96 consumption figures actually measured. |
The inputs and outputs of this test.
We check separately how close the forecast line is to actual consumption and how often actual values fall inside the band: a wide band can contain them even when the central forecast is not very precise.
For the technical reader: predicted distribution and model used
We use Timestral-28M through Mistral’s official implementation. The model produces 21 quantiles for each future interval. The line is the median; the band shown in the demo runs from the 10th to the 90th percentile, P10–P90, and represents the central 80% of the predicted distribution. We did not calibrate these intervals on the steel mill’s data: we measure their actual coverage.
The weights revision is 49b26409ac87b5935539a5d8ffe7f397b720db47, the Mistral code revision is a534bdbd244d64f3d9d743f46c7bf6fc330ed4ff. The uv.lock file pins the experiment’s dependencies.
The advantage over repeating last week or last year
Using last Monday’s consumption to forecast next Monday assumes the weekly rhythm repeats. Using the same period of the previous year assumes an annual cycle repeats. These are simple, cheap and often effective methods, also used as a baseline to evaluate more complex models[5].
They can lose precision, though, if production has grown, shifts have changed or holidays fall on different days. Timestral can combine several recent observations to account for trends and recurrences. It can also receive information already known about the future, like a calendar of closures or a production schedule[2].
If a plant shutdown is planned for tomorrow, the schedule is already known while the consumption has yet to be measured. The same goes for store openings and promotions in relation to sales. These schedules have to be provided to the model: from the numbers alone it can’t know the company’s decisions.
Other statistical or machine learning models can use these factors too. Timestral lets you try this approach without training dedicated to the individual company; the advantage over a simple rule has to be measured on your own data.
Here we only measure the comparison with the previous week. The dataset covers 2018: December 2017 is missing, so there is nothing to compare against the year before. Also, the 21 days given to the model don’t show a full annual cycle.
What changes for a company
A company can have hundreds of sequences to forecast: sales by item and store, consumption by department, requests by service. Timestral lets you try them without building a model for each, leaving it to the tests to establish where specific work is needed.
The forecasts can feed into existing procedures. A nightly job, for example, can read the consumption and show the plant manager the expected load for the next day, before they schedule the work.
With downloadable code and weights, the history can stay on company servers. The company can keep the verified version and repeat the tests before updating it[2]. It does have to manage machines, data, integration and monitoring of the forecasts over time.
Open source code and license of the Timestral weights
The code is published under the Apache-2.0 license; the weights have a separate license, called Modified MIT[2].
The license of the Timestral-28M revision used in the test does not authorize use by companies with global consolidated revenue above $20 million, or the equivalent, in the previous month. Those companies are directed to request a commercial license from Mistral[4].
Where the work can change
These are some applications to evaluate beyond our consumption test.
| Activity | What to forecast | What it can be used for |
|---|---|---|
| Energy management | Consumption and peak-draw time slots for the next day. | Assessing load distribution in advance. Shifting production runs also depends on production constraints and energy prices. |
| Purchasing and warehouse | Demand for each item over the time needed to replenish it. | Feeding the reorder calculation, weighing the cost of holding stock against the risk of running out. |
| Service organization | Volumes of calls, tickets or orders by day and time slot. | Preparing shifts and capacity based on expected load. |
| Plant monitoring | Expected trend of temperature, vibration or pressure. | Flagging deviations to look into with a technician. The signal alone doesn’t identify a fault or its cause. |
To choose how much stock to hold, uncertainty matters too: you have to assess how far actual demand can deviate from the forecast and how much it costs to run out of goods. The model’s intervals have to be verified on the company’s data.
The steel mill’s consumption
For the test we chose Steel Industry Energy Consumption, a public dataset from a South Korean steel mill. It contains one year of 2018 consumption: 35,040 measurements, one every 15 minutes. It is published on UCI by Sathishkumar V E, Changsun Shin and Yongyun Cho, under a CC BY 4.0 license[3].
Each value indicates the energy consumed in that quarter hour, expressed in kWh. The dataset doesn’t contain the plant’s work schedule.
We tried two configurations: one with only past consumption and one that also receives the hour, the day of the week and a weekend flag, information known in advance.
CSV preparation and time check
The first check stopped the run: every day in the file starts at 00:15, goes up to 23:45 and ends with a “00:00” row that keeps the same date. We interpreted that final midnight as 24:00 and assigned each interval its start time, subtracting 15 minutes. The independent check rebuilds the whole year and verifies 96 intervals per day, with no gaps or duplicates. The consumption values keep the order of the original file.
The CSV also contains electrical measurements, emissions and a load class. These columns are excluded from the test. Using their measurements for the day to forecast would mean giving the model information that, at the time of the forecast, would not yet be available.
How we verified the forecasts
To verify the model we use a past period: we give it only the information available before the day to forecast and compare its answer with that day’s consumption, held back. This check is called a backtest.
We chose all of December as the verification period. To forecast December 1, Timestral receives the previous three weeks. For December 2 it receives an updated history, which also includes the now-observed consumption of the 1st. We continue like this through December 31.
That makes 31 one-day forecasts, shown side by side in the demo. In daily use you would proceed the same way, but to measure the error you would have to wait for the next day’s consumption.
As a baseline we use the consumption recorded seven days earlier, at the same hour. We compare all 2,976 intervals of the month for each configuration.
The essential code and the limit of public data
context = consumption[start - 2016:start]
forecast = model.forecast(context, prediction_length=96)
actual = consumption[start:start + 96]
baseline = consumption[start - 672:start - 576]
This example shows the version with history only; the full script has both configurations. We also artificially altered the future consumption and verified that the forecast stayed identical.
We don’t know whether this public dataset was part of Timestral’s original training. The separation between history and future is verified in our experiment, not in the model’s training.
The result over the whole month
We compared each forecast with the actual consumption in the same 15-minute interval. For example, forecasting 50 kWh when actual consumption is 60 kWh means being off by 10 kWh. In calculating the error, what counts is how far you are from the actual value, whether over or under.
Averaging these differences over all of December, Timestral, in the version that also uses the calendar, is off by 7.95 kWh per interval. Using the consumption recorded a week earlier as the forecast, the average error rises to 10.56 kWh. Timestral therefore cuts the average error by about a quarter: 24.7%.
Timestral is more accurate on 22 days out of 31; on the other nine the weekly method is more accurate.
| Method | Average error, kWh / 15 min | Days more accurate than the baseline |
|---|---|---|
| Same day of the previous week | 10.56 | Baseline |
| Timestral, consumption only | 7.98 | 23 out of 31 |
| Timestral, consumption and calendar | 7.95 | 22 out of 31 |
31 forecasts of 24 hours, from December 1 to December 31, 2018.
The calendar changes the average result little: with history alone the error reduction is already 24.4%.
Where the forecast helps
On December 21, consumption during the day is lower than the previous week’s. Copying the profile from seven days earlier leads to overestimating it. Timestral follows the observed measurements more closely: the average error is 3.09 kWh per interval, against 19.16 for the baseline. On that day the reduction is 83.8%.

December 21, 2018. Green: Timestral forecast; blue: actual consumption; dashed line: previous week. Screenshot of the Rational AI Control Room.
Where it gets it wrong
December 1 shows a different situation. The steel mill consumes 805.57 kWh over the whole day. The sum of Timestral’s predicted central values reaches 1,893.42 kWh. The average error on individual quarter hours is 11.62 kWh; repeating the previous week it drops to 4.82 kWh.

December 1, 2018. Timestral forecasts consumption levels that are too high. On this day the weekly method is more accurate. Screenshot of the Rational AI Control Room.
Without the work schedule we can’t attribute the error to a shutdown or a change in production. Shifts and planned stoppages would be additional information to try.
Despite the error, on that day 90.6% of the measurements fall inside the uncertainty band. The band is built to contain 80% of the possible values; over the whole month it covers 81.6% of the actual measurements. This check concerns the uncertainty, separately from the precision of the central line.
Exploring the results in Rational AI
We integrated the demo into Rational AI as a custom view of a knowledge base, the data collection used for this test. On opening it shows the full month and 31 daily charts, with forecasts and actual consumption overlaid.
Selecting a day enlarges the chart and shows the errors of the two methods. You can change configuration or show the uncertainty band.
The demo presents the recorded results; the local service can also recompute all the forecasts. The integration is experimental.
How to try it on your company’s data
- Choose what to forecast and how far ahead. Start from the decision to make: if purchasing is scheduled every week, the forecast has to cover the period needed to order and receive the goods.
- Prepare the history. Export a table with date, value and, if there are several products or departments, their identifier. Use regular intervals and check for gaps and duplicates: a missing measurement is different from a value of zero. Add any closures or future schedules already known.
- Run a test on the past. Hold back the most recent period and forecast it using only earlier data, as in the experiment described. Compare the errors with the method you use today, including both ordinary periods and peaks and closures.
- Check the decision. Before automating it, compare the plan suggested by the forecast with the usual one. Measure costs and service level, including integration and running the system.
The first test requires preparing the data and connecting it to the model, but not training it on the company’s history. The period to provide and the one to forecast should be chosen according to the activity: the 21 days in our test are not a general rule.
Reproducing the test
The package contains scripts, the original CSV, versions and results. To repeat the test:
uv sync --frozen
uv run python experiment.py
uv run python verify.py
uv run python verify_service.py
The three scripts compute the forecasts, check data and results independently, and verify that the service doesn’t use future consumption. The standalone demo can also be viewed with the service turned off.
For the technical reader: timing and memory
We ran the test on a MacBook Pro with Apple M1 Max and 32 GB, using the CPU with four threads and PyTorch 2.14.1. Excluding the first call of each configuration, the median inference time is about 42 milliseconds with consumption only and 162 milliseconds with the calendar. The peak resident memory of the experiment process was about 446 MiB. The measurements exclude the initial download and the request from the interface.
The demo and verification scripts were prepared with the help of AI.
What remains to be verified
The test covers one plant, one month and one size of Timestral. The baseline is a simple method, not a statistical model fitted to the steel mill’s data. To evaluate operational use you need other periods, other plants and a comparison with the method already used by the people who have to make the decisions.
From forecast to business decisions
Being able to use the history without building a custom model makes it easier to experiment with forecasts in business processes: reorders, shifts, load planning. Downloadable code and weights let you integrate it into your own infrastructure and control its updates, respecting the license.
In our test Timestral cuts the average error by 24.7% compared with the weekly method. The economic value has to be measured on decisions: less stock and fewer unfilled orders at the same service level, shifts that cover demand with less overtime, production runs distributed with lower energy costs. A lower error does not translate into the same percentage of savings; integration, running and maintenance also enter the calculation.
To evaluate Timestral on your data, let’s talk. We start from a concrete decision and measure the benefit against your current method. Let’s talk or open the demo
Sources
- Mistral AI, Introducing Timestral, October 15, 2026.
- Mistral AI, official Timestral implementation and Timestral-28M.
- Sathishkumar V E, Changsun Shin, Yongyun Cho, Steel Industry Energy Consumption, UCI Machine Learning Repository, DOI 10.24432/C52G8C, CC BY 4.0.
- Mistral AI, Timestral-28M weights license in the revision used.
- Rob J Hyndman and George Athanasopoulos, Forecasting: Principles and Practice, simple forecasting methods.
- Experiment: full protocol and results; standalone demo; instructions to reproduce the test.


