Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Saina

Saina's HTTP SDK, shared decision contract, and optional Helm local inference. Saina is operated by Rama Labs Inc. Website: https://saina.run.

Pre-release source: packages and model weights are not published yet. The current private model candidate is not cleared for commercial distribution. The Apache-2.0 code license does not grant rights to third-party weights or data.

Install from source

pip install .                # dependency-free HTTP client
pip install '.[local,server]' # local inference and authenticated server
from saina import Saina

client = Saina('https://your-endpoint.example', api_key='YOUR_KEY')

result = client.ask(
    model='helm-0.8b',
    state='I was charged twice.',
    questions={
        'issue': {
            'type': 'single_choice',
            'question': 'Identify the banking issue.',
            'options': {
                'duplicate': 'duplicate charge',
                'delivery': 'card delivery',
            },
        },
    },
)

Keep credentials in environment variables or a secret manager, not source files.

Transformers / local inference

from saina import register_transformers
from transformers import pipeline

register_transformers()

helm = pipeline(
    'saina-classification',
    model='/path/to/staged/checkpoint',
    device='cuda:0',
    model_kwargs={'device': 'cuda:0'},
)

probabilities = helm({
    'task': 'Identify the banking issue.',
    'input': 'I was charged twice.',
    'choices': ['duplicate charge', 'card delivery'],
    'mode': 'single_label',
})

Use multi_label for independent memberships; output order always follows choices. Lists of requests are supported serially, not optimized tensor batching. Hub loading requires an immutable revision and installed registration code, not remote code. CPU operation is supported by the loader but is not an optimized ONNX release.

JavaScript / TypeScript

Source: clients/javascript; planned registry package: @run-saina/sdk. Exports Saina and SainaError, retaining SainaHelm aliases for compatibility.

Serving and contracts

Set SAINA_API_KEY, SAINA_CHECKPOINT, SAINA_DEVICE and optionally SAINA_REVISION (pinned Hub commit), then:

uvicorn saina.server:create_app --factory --host 127.0.0.1 --port 8000

Native typed requests use /v1/ask. The saina.contract module owns their schema. saina.jev provides the Jev/System One adapter; endpoint wiring is separate. Do not expose a plain HTTP server publicly; place it behind authenticated TLS.

Development

PYTHONPATH=src python -m unittest discover -s tests and cd clients/javascript && npm test.

No training datasets, private history, model weights, or credentials are included.

Metadata

Release files for saina 0.1.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for saina 0.1.0rc1
File Size Uploaded
saina-0.1.0rc1.tar.gz 18.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for saina 0.1.0rc1
File Interpreter ABI Platform
saina-0.1.0rc1-py3-none-any.whl Python 3 none any Details

Total release size: 38.2 kB

Release files / saina-0.1.0rc1.tar.gz

Download URL saina-0.1.0rc1.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6201cbb3234464b2a36eddd2e4527fd48e8016c82c2d21adb13227844f78d67d
BLAKE2b-256 checksum
How to use checksums
da3a0f9091e0c0c935d1de782c150cb09db308adc73447c4ea92b5dbc72c5176
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.6

Release files / saina-0.1.0rc1-py3-none-any.whl

Download URL saina-0.1.0rc1-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c03029bd6c0ce814d7b03814ab27d9577299b1bea7edd654ecd00cf4469a087
BLAKE2b-256 checksum
How to use checksums
5185cdf689de321db16845a9bab6b366f2eaa9c18874b6abe180388f0da8a59a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.6

Release history Release notifications | RSS feed

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

This release

0.1.0rc1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page