Skip to main content

nvidia-dynamo

OpenAI-compatible inference client with multimodal support, designed for NVIDIA Dynamo-style serving stacks.

Features

  • Chat completions (streaming and non-streaming) against any OpenAI-compatible endpoint
  • Multimodal messages: attach images by file path or URL (base64 data-URI encoding)
  • Text embeddings
  • Automatic retry with backoff on 429 / 5xx / connection errors
  • Token estimation with CJK-aware budgeting

Install

pip install nvidia-dynamo

Quick start

from nvidia_dynamo import NVDynamoClient, ChatMessage

client = NVDynamoClient(api_key="sk-...", base_url="http://localhost:8000/v1")

resp = client.chat(
    model="dynamo-llm",
    messages=[
        ChatMessage.system("You are a helpful assistant."),
        ChatMessage.user("What is Dynamo?"),
    ],
)
print(resp["choices"][0]["message"]["content"])

Multimodal

msg = ChatMessage.multimodal(
    "Describe this image.",
    ["/tmp/screenshot.png", "https://example.com/diagram.png"],
)
resp = client.chat(model="dynamo-vlm", messages=[msg])

Token budgeting

from nvidia_dynamo import estimate_tokens, truncate_to_tokens

assert estimate_tokens("hello world") <= estimate_tokens("你好世界" * 10)
prompt = truncate_to_tokens(long_doc, max_tokens=2048)

License

Apache-2.0

Metadata

Release files for nvidia-dynamo 0.1.0

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

Source distribution (sdist)

Source distribution for nvidia-dynamo 0.1.0
File Size Uploaded
nvidia_dynamo-0.1.0.tar.gz 6.8 kB Details

Built distribution (wheel)

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

Total release size: 12.7 kB

Release files / nvidia_dynamo-0.1.0.tar.gz

Download URL nvidia_dynamo-0.1.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3bcade3ec53d77d0a46a22a30a343925c6642e897043dc9c3b73db416496a2c0
BLAKE2b-256 checksum
How to use checksums
8e16d4f812cff888b621aba9e76f21daac461a027b1f724e49e15628c6ed196c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nvidia_dynamo-0.1.0-py3-none-any.whl

Download URL nvidia_dynamo-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d5e80df75cc83d417eeba8ce4a2158c17c056ba2d9be56a506b75f784039626
BLAKE2b-256 checksum
How to use checksums
129e187954b4c9ea2b787abf092a73cc109fed48e1f1579d433607e3354df1e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.0 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