[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114044":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":15,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":35,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":39,"discoverSource":40},114044,"ci","continuousintelligence\u002Fci","continuousintelligence","Frontier time-series forecasting, zero setup: ci-proto sees 2M+ steps of history and runs on CPU or GPU.","https:\u002F\u002Fwww.continuousintelligence.co.uk",null,"Python",87,10,2,1,0,13,25,6,54.12,"Other",false,"main",true,[26,27,28,29,30,31,32,33,34],"deep-learning","fev-bench","forecasting","foundation-model","probabilistic-forecasting","pytorch","time-series","time-series-forecasting","zero-shot","2026-11-18 12:36:58","2026-11-23 10:16:21","\u003Cp>\n  \u003Cpicture>\n    \u003Csource media=\"(max-width: 600px)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fcontinuousintelligence\u002Fci\u002Fmain\u002Fassets\u002Freadme\u002Fheader-mobile.svg\">\n    \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fcontinuousintelligence\u002Fci\u002Fmain\u002Fassets\u002Freadme\u002Fheader.svg\" alt=\"ci-proto · Continuous Intelligence\"\n      width=\"1200\">\n  \u003C\u002Fpicture>\n\u003C\u002Fp>\n\n# Introducing ci-proto, our frontier model that says goodbye to context windows and hello to accuracy\n\n**State-of-the-art forecasting at your fingertips.**\n\n- **2M+ context window.** Process 64× the history of any other time-series foundation\n  model.\n- **Frontier accuracy.** Leading forecasting performance on fev-bench.\n- **CPU and GPU support.** Run locally through the same Python API.\n- **Multivariate forecasting.** Turn relationships between signals into more accurate\n  forecasts.\n- **Uncertainty included.** Get nine quantiles between 0.1 and 0.9 to plan for a range of\n  outcomes.\n\n**[Make your first forecast](#make-your-first-forecast) ·\n[See the results](#frontier-performance) ·\n[Join the waitlist for our next release](https:\u002F\u002Fwww.continuousintelligence.co.uk\u002Fwaitlist) ·\n[Join our Design Partner Program](https:\u002F\u002Fdocs.google.com\u002Fforms\u002Fd\u002Fe\u002F1FAIpQLSdn59prmnz5KpJtVQlyo1FFGLA_YgIB93Z5E5pVIvpTYBnFuw\u002Fviewform)**\n\n## Make your first forecast\n\n**Your first forecast in a few lines.** Install with Python 3.10–3.14:\n\n```sh\npip install continuousintelligence\n```\n\nForecast the next day of bicycle rentals from five observed days of hourly demand\nin Washington, D.C. The example history is included with the package:\n\n```python\nimport continuousintelligence as ci\n\n# Load the model (uses CUDA when available).\nmodel = ci.load_model(\"ContinuousIntelligence\u002Fci-proto\")\n\n# Load example history as a torch.Tensor shaped [variables, time].\nhistory = ci.load_example()\n\n# Forecast the next 24 hourly time steps.\nprediction = model.forecast(history, horizon=24)\n\n# Plot the forecast and its uncertainty bands.\nci.plot_forecast(history, prediction, model.quantiles, output=\"forecast.png\")\n```\n\n![Five days of hourly bicycle rentals followed by ci-proto's next-day median\nforecast and nested quantile bands.](https:\u002F\u002Fraw.githubusercontent.com\u002Fcontinuousintelligence\u002Fci\u002Fmain\u002Fassets\u002Freadme\u002Fbike_sharing_forecast.png)\n\n**The next 24 hours, with uncertainty included.** The shaded region marks the forecast\nday. The curve shows the model's median forecast, surrounded by nested quantile bands.\nReplace the example history with your own to get started.\n\nData: Hadi Fanaee-T (2013), [Bike Sharing, UCI](https:\u002F\u002Fdoi.org\u002F10.24432\u002FC5W894),\nlicensed under [CC BY 4.0](https:\u002F\u002Fcreativecommons.org\u002Flicenses\u002Fby\u002F4.0\u002F).\n\n**Dive deeper.** The [walkthrough notebook][walkthrough] extends this example with calendar\ncovariates, practical uses of the quantiles, and forecasting through missing data.\n\n[walkthrough]: https:\u002F\u002Fgithub.com\u002Fcontinuousintelligence\u002Fci\u002Fblob\u002Fmain\u002Fexamples\u002Fwalkthrough.ipynb\n\n## Frontier performance\n\n**The #1 foundation model on fev-bench.**\n\n[![Mean scaled quantile loss on fev-bench versus parameter count for ci-proto and other\nforecasting models. Lower is better.][frontier]][frontier]\n\n[frontier]: https:\u002F\u002Fraw.githubusercontent.com\u002Fcontinuousintelligence\u002Fci\u002Fmain\u002Fassets\u002Freadme\u002Fci_proto_pareto_frontier.png\n\n## Talk to the team\n\n**Tell us what you need to predict.** We want to hear about the decisions you're trying to\nimprove, the data you're working with, and where current methods fall short.\n\nWhether you're exploring a new idea or improving an existing system, we'd like to work\nwith you on a solution. Share your use case, your constraints, and what success would look\nlike, and let's discuss how we can help.\n\n**[Join our Design Partner Program](https:\u002F\u002Fdocs.google.com\u002Fforms\u002Fd\u002Fe\u002F1FAIpQLSdn59prmnz5KpJtVQlyo1FFGLA_YgIB93Z5E5pVIvpTYBnFuw\u002Fviewform)**\n\n## Beyond ci-proto\n\n**Frontier performance is our starting point.** ci-proto gives you a first look at our\napproach to time-series intelligence. Our next release builds on that foundation.\nJoin the waitlist to be the first to hear what's new, see the results, and find out when\nyou can try it.\n\n**[Join the waitlist](https:\u002F\u002Fwww.continuousintelligence.co.uk\u002Fwaitlist)**\n\n## Usage details\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Forecast inputs and outputs\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nCall `model.forecast(history, horizon=320)` with a two-dimensional PyTorch tensor. Rows\nare target variables and columns are consecutive time steps. Rows are forecast jointly by\ndefault. Supply `series_ids` to treat them as a cohort of independent univariate series.\n\nIn the table below, `V` is the number of target variables, `T` is the history length,\n`H` is the requested horizon, and `Q` is the number of quantile levels.\n\n| Value | Shape or type | Description |\n| --- | --- | --- |\n| `history` | `[V, T]` | Observed target values. Use `NaN` for missing observations. |\n| `horizon` | `int` | Number of future steps to predict. Any positive integer; defaults to 320. |\n| Returned forecast | `[V, Q, H]` | CPU `float32` tensor in the original target units, ordered by quantile level. |\n| `model.quantiles` | `[Q]` | CPU tensor containing the probability level for each output quantile. |\n\nInput tensors can be real values or `NaN`. ci-proto returns nine quantiles\nbetween 0.1 and 0.9 in increments of 0.1. Histories up to 16,384 observations use the\nstandard checkpoint. Longer histories automatically use the long checkpoint with the full\nsupplied history. The median is the central quantile.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Covariates and categorical inputs\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nPass covariates as keyword arguments to\n`model.forecast(..., past_covariates=..., future_covariates=...)`. Only the variables in\n`history` receive forecasts. Align all tensors to the same time axis before calling the\nmodel.\n\n| Argument | Shape | Requirements |\n| --- | --- | --- |\n| `past_covariates` | `[past_variables, T]` | Must have exactly the same history length as `history`. |\n| `future_covariates` | `[known_variables, T + H]` | Must cover both the observed history and the requested forecast horizon. |\n| `categorical_past` | Tuple of row indices | Selects categorical rows in `past_covariates`; defaults to `()`. |\n| `categorical_future` | Tuple of row indices | Selects categorical rows in `future_covariates`; defaults to `()`. |\n\nRepresent categorical values with numeric category codes. For example,\n`categorical_future=(0, 2)` marks its first and third rows as categorical.\nBoolean covariates can be supplied as numeric\ninputs without marking them categorical. Use `NaN` for missing covariate observations.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Timestamps and related series\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nPass optional metadata to add calendar features or context from related series.\n\n| Argument | Shape or type | Description |\n| --- | --- | --- |\n| `timestamps` | `int64` tensor `[T + H]` or `[V, T + H]` | Epoch nanoseconds covering history and horizon. Must increase strictly. |\n| `freq` | String | Pandas frequency, such as `\"h\"`, `\"D\"` or `\"W\"`. Required for calendar features. |\n| `series_ids` | `V` unique strings | Identifies independent series in input row order. |\n| `static_features` | Mapping of column names to `V` values | Optional grouping metadata, such as `{\"region\": [\"north\", \"south\"]}`. Requires `series_ids`. |\n\nPass all related series together. Context is shared only between series with the same\nforecast origin. Covariates can be shared across series or supplied per series as\n`[V, covariates, time]`.\n\nFor uneven histories, left-pad values with `NaN` and timestamps with\n`torch.iinfo(torch.int64).min`.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Loading models and pinning revisions\u003C\u002Fstrong>\u003C\u002Fsummary>\n\n`ci.load_model` accepts a Hugging Face repository ID, a local bundle directory, or a\ncheckpoint with a separate calibration file.\n\n```python\nmodel = ci.load_model(\"ContinuousIntelligence\u002Fci-proto\", revision=\"\u003Ccommit SHA>\")\nmodel = ci.load_model(\".\u002Flocal\u002Fcontinuousintelligence\")\nmodel = ci.load_model(\"model.ckpt\", \"tta.json\")\n```\n\nA bundle contains:\n\n```text\nlocal\u002Fcontinuousintelligence\u002F\n├── config.json\n├── model.ckpt\n├── model-long.ckpt\n└── tta.json\n```\n\n`model.ckpt` holds the weights and architecture; `tta.json` holds preprocessing and\ncalibration settings. `model-long.ckpt` is the optional long-history checkpoint; it uses\nthe same `tta.json` and is loaded on the first forecast above the standard context length.\n`config.json` describes the model, with its name, parameter count, quantile levels and\nlicence, and is checked against the weights when the model loads. `model.info`\nreturns it. Hugging Face models always include it; local bundles may omit it.\n\nFor reproducibility, pin Hugging Face models with a full commit SHA. `revision` applies\nonly to Hub loading. Use `.\u002F` or a `Path` object to identify local paths explicitly.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>CPU and GPU setup\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nOn Linux, a fresh `pip install continuousintelligence` installs CUDA-enabled PyTorch.\n`ci.load_model(...)` automatically uses an available CUDA GPU, falling back to CPU.\n\nPython versions 3.10–3.14 are supported. On Linux x86-64, installation includes Mamba-3\nkernels and the CUDA 13.0.3 toolchain (`cuda-toolkit[nvcc,cccl]==13.0.3`). Kernels compile\non first use and are cached.\n\n| `device` | Behaviour |\n| --- | --- |\n| `\"auto\"` | Uses an available CUDA GPU; otherwise CPU. Default. |\n| `\"cpu\"` | Uses portable PyTorch inference. |\n| `\"cuda\"` | Uses CUDA; raises an error if unavailable. |\n\nFused inference requires CUDA-enabled PyTorch, an Ampere-or-newer NVIDIA GPU, a\n580-series-or-newer driver, and a host C++ compiler. Replace CPU-only PyTorch to enable\nGPU inference.\n\nInspect `model.device` and `model.backend`: `\"mamba3\"` means fused CUDA inference;\n`\"torch\"` means the portable backend. Forecast outputs are always CPU tensors.\n\nReference results use H100 with PyTorch `2.13.0+cu130`. Reduced-precision results can vary\nacross runtimes.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Other data and plotting options\u003C\u002Fstrong>\u003C\u002Fsummary>\n\n`ci.plot_forecast(history, prediction, quantiles)` works with your own data:\nhistory has shape `[variables, time]`, predictions `[variables, quantiles, horizon]`,\nand the quantile levels form a sorted vector including `0.5` for the median.\nEach variable gets its own panel with the median and available nested quantile bands.\nThe function returns a Matplotlib figure; `output` saves it to a file. Pass `timestamps`\ncovering history plus horizon for a date axis, and `ylabel` to label the values.\n\n`examples\u002Fforecast.py` forecasts the bundled bicycle-rental history and saves a plot\nwith its dates and units.\n\nRun from the repository root:\n\n```sh\npip install .\npython examples\u002Fforecast.py --model ContinuousIntelligence\u002Fci-proto\n```\n\nThe plot is saved to `outputs\u002Fforecast.png`.\n\nTo forecast another source, pass `--data` with a CSV file and name its columns with\n`--time-column` and `--value-column`. If the file has a `split` column, rows marked\n`history` are observed and the following rows marked `forecast` set the horizon.\nOtherwise every row is history; pass `--horizon`, and future timestamps continue the\ninferred frequency. `--ylabel` sets the axis label.\n\n```sh\npython examples\u002Fforecast.py --model ContinuousIntelligence\u002Fci-proto \\\n  --data load.csv --time-column date --value-column load_mw --horizon 48\n```\n\nUse `--output` for the figure path and `--device` to select CPU or CUDA. Pin a Hub\nrevision with `--revision`. Run with `--help` for all options.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Preprocessing and calibration\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nUse the checkpoint’s `tta.json`. Preprocessing, test-time augmentation (TTA), and\ncalibration run automatically without changing model weights.\n\n| Setting | Behaviour |\n| --- | --- |\n| `postprocess` | Enables differencing, band calibration, quantile sorting, and sign-flip averaging. |\n| `tta_diff`, `tta_running_totals` | Control trend and running-total differencing. |\n| `tta_sign_flip` | Averages forecasts of the original and negated inputs. |\n| `target_encode_categoricals` | Encodes categories using observed target statistics. |\n| `clip_nonnegative` | Keeps forecasts nonnegative when the observed history is nonnegative. |\n| `integer_round` | Rounds forecasts when the observed history contains only integers. |\n| `calendar_covariates` | Adds calendar features when timestamps and frequency are supplied. |\n| `bfloat16` | Enables reduced-precision inference; `false` uses float32. |\n\nEdit a local `tta.json` to change these flags. Encoding, clipping, rounding, calendar\nfeatures, and precision work independently of `postprocess`.\n\nKeep the supplied numerical constants when reproducing ci-proto results. All configuration\nfields are required; missing or unknown fields are rejected.\n\n\u003C\u002Fdetails>\n\n## Development\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Package structure\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nModel implementations live in subpackages such as `continuousintelligence.ci_proto`.\nThe public `continuousintelligence.load_model` entry point, local\u002FHub file handling\nand vendored kernels stay at the package level.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Local setup and tests\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nDevelopment requires Python 3.10–3.14 and [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F) 0.11.30 or later.\nThe repository's `.python-version` selects Python 3.13; CI runs on Python 3.10, 3.13 and 3.14.\n\nFrom the root of a source checkout, install the locked development dependencies:\n\n```sh\nuv sync --locked\n```\n\nDevelopment uses the same PyTorch distribution as a normal package install. On Linux\nthis includes CUDA support; the model automatically selects GPU or CPU at runtime.\n\nRun linting, formatting checks, and the default test suite:\n\n```sh\nuv run --locked ruff check .\nuv run --locked ruff format --check .\nuv run --locked pytest\n```\n\nThe default tests use small synthetic checkpoints and mock Hub downloads, so ci-proto\nweights are not required. They cover model loading, forecasting, covariates, calibration,\nand device selection. CUDA tests are skipped when CUDA is unavailable.\n\nTo run the additional tests against local ci-proto weights, set both paths:\n\n```sh\nCONTINUOUSINTELLIGENCE_CHECKPOINT=.\u002Flocal\u002Fcontinuousintelligence\u002Fmodel.ckpt \\\nCONTINUOUSINTELLIGENCE_TTA_CONFIG=.\u002Flocal\u002Fcontinuousintelligence\u002Ftta.json \\\nuv run --locked pytest -q\n```\n\nThose tests load the supplied checkpoint on CPU and CUDA when available, and check\nmultivariate forecasts at the default horizon, finite outputs, and quantile ordering.\nWithout both environment variables, they are skipped.\n\nModel weights, local calibration files, and generated plots are ignored by Git.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Contributing\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nBug reports, feature suggestions, documentation improvements, and code contributions\nare welcome.\n\n- **[Report a bug](https:\u002F\u002Fgithub.com\u002Fcontinuousintelligence\u002Fci\u002Fissues).** Include a\n  minimal reproducer, expected and actual behaviour, relevant error output, and your\n  package, Python, and PyTorch versions. Specify whether you are running on CPU or CUDA.\n- **[Suggest a change](https:\u002F\u002Fgithub.com\u002Fcontinuousintelligence\u002Fci\u002Fissues).** Describe\n  the use case, the limitation you have encountered, and the behaviour you would like to\n  see.\n- **[Open a pull request](https:\u002F\u002Fgithub.com\u002Fcontinuousintelligence\u002Fci\u002Fpulls).** Explain\n  the problem, the change, and how you verified it. Include a regression test for bug\n  fixes and update the documentation when public behaviour changes.\n\nSmall, reproducible examples help us investigate issues and review changes. Keep pull\nrequests focused, and run the checks above before submitting.\n\n\u003C\u002Fdetails>\n\n## Licence\n\nThe code and model weights are released under the\n[ci-proto Code and Model Licence][licence]. Third-party components retain their upstream\nlicences; see [NOTICE][notice] for attribution and the Apache 2.0 licence text.\nThe bundled example data is licensed under CC BY 4.0;\nsee its [notice][data-notice].\n\n[licence]: https:\u002F\u002Fgithub.com\u002Fcontinuousintelligence\u002Fci\u002Fblob\u002Fmain\u002FLICENCE\n[notice]: https:\u002F\u002Fgithub.com\u002Fcontinuousintelligence\u002Fci\u002Fblob\u002Fmain\u002FNOTICE\n[data-notice]: https:\u002F\u002Fgithub.com\u002Fcontinuousintelligence\u002Fci\u002Fblob\u002Fmain\u002Fsrc\u002Fcontinuousintelligence\u002F_data\u002FNOTICE\n","ci-proto 是一个面向时间序列预测的前沿基础模型，支持超长历史上下文（200万+时间步）与零配置部署。其核心功能包括多变量联合建模、内置概率预测（输出0.1–0.9共9个分位数）、CPU\u002FGPU统一API调用，以及无需特征工程或数据预处理的端到端推理。基于PyTorch实现，专为高精度、长时序、不确定性敏感的业务场景设计，适用于能源负荷预测、交通流量分析、IoT设备监控等需要可靠区间估计的实际工业应用。","2026-11-24 04:47:46","CREATED_QUERY"]