Skip to content
DOCUMENTATION / Dependencies & limits
OPBT SDK · 07

Dependencies & limits

On this page
07

Dependencies & limits

Locked packages#

The sandbox includes this scientific-computing stack. A project may also declare public PyPI packages in requirements.in and resolve them to opr.lock.json before freezing:

opbtnumpypandaspolarsscipysklearnlightgbmxgbooststatsmodelsmatplotlib

Dependency resolution accepts ordinary package specifiers only, downloads binary wheels from public PyPI, records exact versions and SHA-256 hashes, and builds a read-only environment without importing wheel code. Source distributions, URLs, VCS and runtime pip are rejected. Backtests and Notebook Jobs remain offline.

requirements.in
scikit-learn>=1.8,<2
seaborn==0.13.2

Resource limits#

CPU / Memory2 cores / 8 GB
Wall clock2 hours
Output size512 MB
Processes256
Networknone (--network=none)

Administrator research controls#

Administrators configure AI allowances and research-compute admission independently. These settings are limits, not reserved capacity; the selected model, role policy and platform safety limits may further reduce what is available.

AI MODEL QUOTAS

FieldValue / unitMeaning
scope / subject_keyPLATFORM / default
ROLE / MEMBER
ORGANIZATION / <id>
USER / <id>
Quota target: PLATFORM/default is global; ROLE is a per-user fallback for that role, while ORGANIZATION is a shared organization bucket and USER targets one numeric user ID. A USER policy replaces its ROLE fallback; effective limits then take the lowest applicable ceiling.
model_keyone built-in modelPolicies are model-specific. The key must identify an enabled model deployment.
daily_token_limittokens / UTC day; blank = unlimitedBuilt-in-model input + output allowance for this target, model, and UTC day. Leave blank for no daily ceiling; zero blocks the allowance. BYOK usage is excluded, and provider or platform hard limits still apply.
max_input_tokenstokens / requestPositive integer maximum input tokens per request for this target. Effective input is capped again by the selected model and provider connection.
max_output_tokenstokens / requestPositive integer maximum generated tokens per request for this target. Effective output is the lowest applicable quota, deployment, model, and provider limit.
max_concurrentactive requestsPositive integer maximum active AI requests for this target and model. It is combined with platform and provider concurrency limits.
requests_per_minuteRPMPositive integer maximum accepted requests in a UTC-aligned fixed minute bucket for this target and model, further bounded by platform and provider limits.

Default sponsored allowance: 10,000,000 tokens per user, model and UTC day. Kimi K3 also has a 50,000,000-token platform total; DeepSeek and GLM have no platform daily-token ceiling. Administrators may override a user or role policy.

WORKLOAD ADMISSION

JSON override for automatic, maximum and daily work units plus peak-memory, cache, output, trial and fold caps. Values are non-negative integers capped by system ceilings. Daily usage is counted per user, organization, UTC day and workload kind; approval can cross the automatic threshold, never the hard or daily limit.

A workload policy is scoped independently to BACKTEST, STUDY or FACTOR_EVALUATION. Use SYSTEM / default, ROLE / <role>, ORGANIZATION / <id>, or USER / <id>. Resolution proceeds from system to role, organization and user; a more specific record replaces the same JSON key from an earlier scope.

Policy fieldMEMBER baseSystem ceilingAdmission effect
automatic_work_units50,000,0002,000,000,000At or below this value, a workload may enter the queue without manual approval when every other limit also passes.
maximum_work_units250,000,00010,000,000,000Above automatic but at or below maximum requires an administrator approval bound to the exact request. Above maximum is denied.
daily_work_units500,000,00020,000,000,000UTC-day budget per user, organization and workload kind. Reserved plus settled actual units count against the remaining allowance.
maximum_peak_memory_mb6,144 MiB8,192 MiBEstimated peak-memory ceiling for one workload.
maximum_cache_bytes50,000,000,000 B1,000,000,000,000 BMaximum estimated immutable dataset cache required by the workload.
maximum_output_bytes536,870,912 B536,870,912 BMaximum estimated result and evidence output for one workload.
maximum_trials51210,000Maximum parameter or scenario trials in one Study.
maximum_folds64512Maximum walk-forward folds in one Study.

Role defaults can be refined for an organization or user. Leaving a field out keeps the value inherited from the broader scope; review the effective limits in administrator settings before saving.

Admission policy · JSON
{
  "automatic_work_units": 50000000,
  "maximum_work_units": 250000000,
  "daily_work_units": 500000000
}

A work unit estimates research workload; it is not a duration, token count or currency amount. The estimate reflects the requested dates, instruments and data. Studies also include trials and folds, while Factor Evaluation accounts for its forward horizons. Review the estimate before queueing the workload.

ONEPORT RESEARCH · DOCUMENTATION