Minimal ML experiment platform wrapping Azure ML, Vertex AI, and Vercel Sandbox
Project description
NUCL
Minimal ML experiment platform. 2,000 lines of code.
NUCL wraps Azure ML, Vertex AI, and Vercel Sandbox behind a unified CLI and web dashboard. No servers to manage, no databases to maintain, no collectors to deploy. Every feature delegates to a managed service.
nucl run --name "vision/resnet-50-v2" --script train.py --gpu-type t4
nucl ps vision/
nucl log vision/resnet-50-v2 -f
nucl pull vision/resnet-50-v2
Architecture
graph LR
subgraph Clients
CLI["CLI (Python)"]
Web["Web Dashboard"]
end
subgraph Vercel
API["Next.js API Routes"]
Auth["Clerk (auth + API keys)"]
end
subgraph Sandbox["Vercel Sandbox (Python 3.13)"]
AzureSDK["azure-ai-ml SDK"]
VertexSDK["vertex AI SDK"]
end
subgraph Platforms
AzureML["Azure ML"]
VertexAI["Vertex AI"]
SandboxRun["Sandbox (CPU)"]
end
CLI -- HTTP --> API
Web -- HTTP --> API
API --> Auth
API -- "job submission" --> Sandbox
API -. "read ops (list, logs, cancel)" .-> Platforms
AzureSDK --> AzureML
VertexSDK --> VertexAI
Sandbox --> SandboxRun
Job submission spins up a short-lived Vercel Sandbox with Python 3.13 and uses the official cloud SDKs to upload code and create training jobs. Read operations (list, logs, cancel) use direct REST API calls.
Three platforms:
| Platform | GPU | Use case |
|---|---|---|
| Azure ML | Yes | Production training on Azure |
| Vertex AI | Yes | Production training on GCP |
| Sandbox | No (CPU) | Quick tests, no cloud account needed |
Getting Started
Install the CLI
uv tool install nucl
nucl --help
For users: join a team and run jobs
Your team admin will have already configured cloud credentials. You just need to log in and start running jobs.
# 1. Log in (opens browser)
nucl auth login
# 2. See your teams and pick one
nucl team list
nucl team set <org-id>
# 3. Check what's configured
nucl team show
# 4. Run a job
nucl run --name "my-project/first-test" --script train.py --gpu-type t4
# 5. Monitor it
nucl ps
nucl log <job-id> -f
nucl pull <job-id> ./outputs
For admins: set up a team
You need az and/or gcloud CLI installed and authenticated.
# 1. Log in
nucl auth login
# 2. Pick your team
nucl team list
nucl team set <org-id>
# 3. Run the interactive setup wizard
nucl team setup
The wizard will:
- List your Azure subscriptions and ML workspaces (or GCP projects)
- Create a service principal (Azure) or service account (Vertex) for NUCL
- If you lack Owner permissions for role assignment, it prints the exact command for an admin to run
- Save encrypted credentials to NUCL (they never touch anyone's local machine)
You can also configure credentials manually:
nucl team config azure
nucl team config vertex
Running a sample job
Create a train.py:
import time
print("Starting training...")
for epoch in range(5):
loss = 1.0 / (epoch + 1)
print(f"Epoch {epoch}: loss={loss:.4f}")
time.sleep(1)
print("Done!")
Run it on Sandbox (no GPU, no cloud account needed):
nucl run --name "test/hello-world" --script train.py
nucl ps
nucl log <job-id> -f
Run it on Azure ML with a T4 GPU:
nucl run --name "test/gpu-test" --script train.py --gpu-type t4
Experiment naming
Use / to organize experiments into folders:
lung-cancer/detection/yolov9-baseline
lung-cancer/detection/yolov9-augmented
breast-cancer/screening/resnet-50
Filter by prefix: nucl ps lung-cancer/detection/
In-job logging
NUCL does not ship a custom SDK. Use MLflow directly:
import mlflow
mlflow.log_param("learning_rate", 0.001)
mlflow.log_metric("accuracy", 0.95)
mlflow.log_artifact("model.pth")
Both Azure ML and Vertex AI natively support MLflow.
CLI Reference
nucl auth login|logout|status Auth
nucl team list|show|set|setup Teams
nucl team config azure|vertex Manual credential entry
nucl run --name --script [--gpu-type] Submit job
nucl ps [prefix] List jobs
nucl log <id> [-f] Stream logs
nucl stop <id> Cancel job
nucl pull <id> [target] Download outputs
nucl model ls|pull Models
nucl hpo run <config.yaml> HPO sweeps
nucl mcp serve MCP server for AI agents
Tech Stack
| Layer | Technology |
|---|---|
| CLI | Python 3.11+, Click, httpx |
| Web | Next.js 16, React 19, TypeScript 6 |
| UI | shadcn, Tailwind CSS 4, TanStack Table |
| Data fetching | TanStack Query 5 |
| Auth | Clerk 7 (Organizations, API keys) |
| Job submission | Vercel Sandbox (Python 3.13) |
| Encryption | AES-256-GCM |
| Package management | uv (Python), Bun (JS) |
Deploying the Web Dashboard
cd web
bun install
bun dev
Environment variables (set in Vercel):
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_...
CLERK_SECRET_KEY=sk_...
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
ENCRYPTION_KEY=<openssl rand -hex 32>
VERCEL_TOKEN=...
License
Internal use only.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nucl-0.9.0.tar.gz.
File metadata
- Download URL: nucl-0.9.0.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3bde3ca0f7760c1d5f9f04b100304ee1023156576106cbb8b0e77586e48a8ad
|
|
| MD5 |
8f0f98b85bc55b89fabc519c194ea262
|
|
| BLAKE2b-256 |
44a9368ac80f5b95f5c4732f2abd5d60cb949a397afa3f7e6bef2024985920b8
|
Provenance
The following attestation bundles were made for nucl-0.9.0.tar.gz:
Publisher:
publish-cli.yml on lunit-io/nucl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nucl-0.9.0.tar.gz -
Subject digest:
b3bde3ca0f7760c1d5f9f04b100304ee1023156576106cbb8b0e77586e48a8ad - Sigstore transparency entry: 1306812614
- Sigstore integration time:
-
Permalink:
lunit-io/nucl@3a5f195353c2f518bb9ab4ef933db2e96a74f9dd -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/lunit-io
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cli.yml@3a5f195353c2f518bb9ab4ef933db2e96a74f9dd -
Trigger Event:
push
-
Statement type:
File details
Details for the file nucl-0.9.0-py3-none-any.whl.
File metadata
- Download URL: nucl-0.9.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eafdfa423c11e3853dde59cbebdc17c614f38099d1942f826020d53ab02988c5
|
|
| MD5 |
95c342b78ec600be623df061a604eb41
|
|
| BLAKE2b-256 |
315d9e82adeb57e6d3d033fb810c5c1b0a7bca4924b613e9495d33f144bca56e
|
Provenance
The following attestation bundles were made for nucl-0.9.0-py3-none-any.whl:
Publisher:
publish-cli.yml on lunit-io/nucl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nucl-0.9.0-py3-none-any.whl -
Subject digest:
eafdfa423c11e3853dde59cbebdc17c614f38099d1942f826020d53ab02988c5 - Sigstore transparency entry: 1306812721
- Sigstore integration time:
-
Permalink:
lunit-io/nucl@3a5f195353c2f518bb9ab4ef933db2e96a74f9dd -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/lunit-io
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cli.yml@3a5f195353c2f518bb9ab4ef933db2e96a74f9dd -
Trigger Event:
push
-
Statement type: