Download src/dispatchai/__init__.py from dispatchAI/dispatchAI-SDK: direct link, hf CLI and curl.
- Browser
- Download file 870 Bytes
-
https://huggingface.co/dispatchAI/dispatchAI-SDK/resolve/640ecdb3e8f34d987148439f1ce63aebb141b461/src/dispatchai/__init__.py
- Command line
-
hf download hf://dispatchAI/dispatchAI-SDK@640ecdb3e8f34d987148439f1ce63aebb141b461/src/dispatchai/__init__.py
-
curl -L -o __init__.py https://huggingface.co/dispatchAI/dispatchAI-SDK/resolve/640ecdb3e8f34d987148439f1ce63aebb141b461/src/dispatchai/__init__.py
870 Bytes
| """ | |
| dispatchAI SDK — Mobile-optimized LLMs that run on your phone. | |
| Small. Mobile. Free. UAE-built. | |
| Quick start: | |
| pip install dispatchai | |
| from dispatchai import load_model | |
| model = load_model("SmolLM2-135M-Instruct-mobile") | |
| print(model.chat("What is the capital of France?")) | |
| # List available models | |
| from dispatchai import list_models | |
| for m in list_models(): | |
| print(m) | |
| # Find the best model for your phone | |
| from dispatchai import recommend | |
| rec = recommend(ram_mb=2048, task="chat") | |
| print(rec) | |
| """ | |
| from .core import ( | |
| load_model, | |
| list_models, | |
| recommend, | |
| estimate_latency, | |
| calculate_cost, | |
| DispatchModel, | |
| ) | |
| from .version import __version__ | |
| __all__ = [ | |
| "load_model", | |
| "list_models", | |
| "recommend", | |
| "estimate_latency", | |
| "calculate_cost", | |
| "DispatchModel", | |
| "__version__", | |
| ] | |