Skip to main content

Keys & Caches CLI (DEV)

Project description

Keys & Caches

Keys & Caches Banner

Welcome to Keys & Caches — the fastest way to run PyTorch models on cloud GPUs with automatic profiling and performance insights.


📚 Documentation Overview

This documentation will help you get started with Keys & Caches and make the most of its powerful features for GPU-accelerated machine learning.


What is Keys & Caches?

Keys & Caches is a command-line tool that makes it effortless to run PyTorch models on high-performance cloud GPUs. With just one command, you can:

  • 🚀 Submit jobs to cloud GPUs — Access A100, H100, and L4 GPUs instantly
  • 📊 Get automatic profiling — Detailed performance traces for every model forward pass
  • 🔍 Debug performance bottlenecks — Chrome trace format for visual analysis
  • Stream real-time logs — Watch your training progress live
  • 💰 Pay only for what you use — No idle time charges

Key Features

🎯 One-Command Deployment

# Run any PyTorch script on cloud GPUs
kandc run python infer.py --model-size large --epochs 100

# Or capture locally with profiling
kandc capture python infer.py --model-size large --epochs 100

📈 Automatic Model Profiling

from kandc import capture_model_class

@capture_model_class(model_name="MyModel")
class MyModel(nn.Module):
    # Your model automatically gets profiled!

🔧 Simple Command Formats

# Cloud GPU execution:
kandc run python script.py --script-args                                  # Interactive
kandc run --app-name job --gpu H100:4 -- python script.py --script-args  # Separator

# Local execution with capture:
kandc capture python script.py --script-args                              # Interactive
kandc capture --app-name test -- python script.py --script-args           # Direct

Who Should Use Keys & Caches?

🧑‍🔬 Machine Learning Researchers

  • Quickly test models on powerful GPUs without infrastructure setup
  • Get detailed performance profiles to optimize model architectures
  • Scale experiments from 1 to 8 GPUs seamlessly

🏢 ML Engineers & Data Scientists

  • Accelerate training jobs without managing cloud infrastructure
  • Debug performance issues with automatic profiling
  • Iterate faster with real-time progress monitoring

🎓 Students & Educators

  • Email us at founders@herdora.com for free credits!
  • Access high-end GPUs for coursework and research
  • Learn about model optimization with built-in profiling tools
  • Focus on ML concepts, not DevOps complexity

🚀 Startups & Small Teams

  • Get enterprise-grade GPU access without upfront costs
  • Scale compute resources based on actual needs
  • Streamline ML workflows from development to production

Why Choose Keys & Caches?

  • 🚀 Instant Access — No account setup, no credit cards, no waiting. Install and run immediately.
  • 💡 Built for ML — Purpose-built for PyTorch with automatic model profiling and optimization insights.
  • 🎯 Developer-Friendly — Simple CLI that works with your existing code. No code changes required.
  • 📊 Performance-First — Every job includes detailed performance traces to help you optimize your models.
  • 💰 Cost-Effective — Pay only for actual GPU time. No idle charges, no minimum commitments.

Ready to Get Started?

👉 Jump to the Getting Started Guide to install Keys & Caches and run your first GPU job in under 5 minutes!


Quick Example

Here’s how easy it is to run a PyTorch model on cloud GPUs:

# your_model.py
import torch
import torch.nn as nn
from kandc import capture_model_class

@capture_model_class(model_name="SimpleModel")
class MyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(784, 10)
    
    def forward(self, x):
        return self.linear(x)

# Train your model...
model = MyModel()
x = torch.randn(32, 784)
output = model(x)  # This gets automatically profiled!
# Run on cloud GPUs with one command
kandc run python your_model.py

# Or run locally with profiling and upload results
kandc capture python your_model.py

That’s it! Your model runs on high-performance GPUs with automatic profiling. 🎉

📦 Publishing to PyPI

🚀 Publish Stable Release (kandc)

  1. Bump the version in pyproject.toml (e.g., 0.0.4).

  2. Run the following commands:

    rm -rf dist build *.egg-info
    python -m pip install --upgrade build twine
    python -m build
    export TWINE_USERNAME=__token__
    twine upload dist/*
    pip install -U kandc
    

🧪 Publish Dev Release (kandc-dev)

  1. Bump the dev version in pyproject.dev.toml (e.g., 0.0.4.dev1).

  2. Run the following commands:

    rm -rf dist build *.egg-info
    cp pyproject.dev.toml pyproject.toml
    python -m pip install --upgrade build twine
    python -m build
    export TWINE_USERNAME=__token__
    twine upload dist/*
    git checkout -- pyproject.toml   # Restore the original pyproject.toml after publishing (undo the cp above)
    pip install -U kandc-dev
    # If you gave dev its own CLI:
    kandc-dev --help
    # Otherwise, it’s the same `kandc` entry point.
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kandc_dev-0.0.4.dev0.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kandc_dev-0.0.4.dev0-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

Details for the file kandc_dev-0.0.4.dev0.tar.gz.

File metadata

  • Download URL: kandc_dev-0.0.4.dev0.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for kandc_dev-0.0.4.dev0.tar.gz
Algorithm Hash digest
SHA256 40b16a95c271427305221e66fc4e6096ab464ed081afa4ff07da7e01b826e349
MD5 c606076e949287cc3aa2856d636a5f5a
BLAKE2b-256 62f0882dea21056adbb34ad599c9283b0c3b19b5637b08e3000efbf87ac467d1

See more details on using hashes here.

File details

Details for the file kandc_dev-0.0.4.dev0-py3-none-any.whl.

File metadata

  • Download URL: kandc_dev-0.0.4.dev0-py3-none-any.whl
  • Upload date:
  • Size: 33.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for kandc_dev-0.0.4.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 9790556f9a495a631d29df411dbdb3b51b28ab890850b68aebd751f33395ceb9
MD5 2bad11e89ba7328706bb72b9939aebb2
BLAKE2b-256 4e60fd34d2beaf799c4734ba9358ed4e53f128063dee30d767dfb4543083b872

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page