Metadata-Version: 2.4
Name: velar-sdk
Version: 0.4.14
Summary: Velar Python SDK - Deploy ML models to GPUs with one command
Author-email: Velar Labs <hello@velar.run>
License: Apache-2.0
Project-URL: Homepage, https://velar.run
Project-URL: Documentation, https://velar.run/docs
Project-URL: Repository, https://github.com/velarrun/velar
Project-URL: Bug Tracker, https://github.com/velarrun/velar/issues
Keywords: gpu,ml,machine-learning,deployment,cloud
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.25.0
Requires-Dist: pydantic>=2.0
Requires-Dist: click>=8.0
Requires-Dist: rich>=13.0
Requires-Dist: posthog>=3.0
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"

# Velar Python SDK

Deploy ML models to GPUs with one command.

## Installation

```bash
pip install velar-sdk
```

## Quick Start

```bash
velar login        # authenticate via browser
velar run app:app  # deploy + run + cleanup
```

```python
import os
import velar

app = velar.App("my-app")
image = velar.Image.from_registry(
    "pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime"
).pip_install("transformers", "accelerate")

@app.function(gpu="A100", image=image, timeout=600)
def run(prompt: str) -> str:
    from transformers import pipeline
    pipe = pipeline("text-generation", model="gpt2")
    return pipe(prompt, max_length=100)[0]["generated_text"]

@app.local_entrypoint()
def main():
    app.deploy(wait=True)
    print(run.remote("The future of AI is"))
```

**Full documentation:** [velar.run/docs](https://velar.run/docs)

## Links

- [Documentation](https://velar.run/docs)
- [Dashboard](https://velar.run/dashboard)
- [Pricing](https://velar.run/pricing)
