Home/Inference & Serving/octoml-profile
octoml-profile logo

octoml-profile

octoml/octoml-profile

Home for OctoML PyTorch Profiler

GraphCanon updated 3w · GitHub synced 3w

113 stars10 forksLast push 3y Apache-2.0

Decision brief

OctoML PyTorch Profiler provides profiling and acceleration tools for PyTorch models with remote execution capabilities.

Good fit when

  • Need precise performance metrics on different backend architectures like CPU, GPU in cloud environments
  • Want to accelerate your PyTorch models using auto-tuning features through the profiler

Avoid when

  • Development for local, offline usage only without remote profiling needs
  • Working with PyTorch versions below 2.0 or incompatible with specific CUDA/Apple silicon versions outlined in installation guide

Observed Jul 17, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Dormant (1197d since push)
As of 3w
Provenance
Not a fork · Organization account
As of 3w
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

git clone https://github.com/octoml/octoml-profile

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

A toolset providing profiling and acceleration utilities for PyTorch models.

Capability facts

No sourced capability facts yet. Facts appear after ingest scans repo manifests (Dockerfile, package.json, MCP configs).

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Aug 4, 2026)

- Create and activate a python virtual environment. `Python 3.8` is recommended
Source link

Tags

README

Installation and Getting Started

  • Create and activate a python virtual environment. Python 3.8 is recommended and tested on both Ubuntu and macOS. Python 3.10.9 is tested on macOS with Apple silicon.

    python3 -m venv env
    source env/bin/activate
    
  • Install dependencies

    PyTorch 2.0 and above is required. Below we install the cpu version for simplicity; CUDA version works too.

    pip install --upgrade pip
    pip install "torch>=2.0.0" torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
    pip install "octoml-profile>=0.2.0"
    

    You've completed installation! (If you have trouble, see issues with installation)

  • Next, try running this very simple example that shows how to integrate octoml-profile into your model code.

    import torch
    from torch.nn import Linear, ReLU, Sequential
    from octoml_profile import accelerate, remote_profile
    
    model = Sequential(Linear(100, 200), ReLU())
    
    @accelerate
    def predict(x: torch.Tensor):
        return model(x)
    
    with remote_profile():
        for _ in range(3):
            x = torch.randn(1, 100)
            predict(x)
    
  • The first time you run this, you'll be prompted to supply your API key.

        ,-""-.
      /      \    Welcome to OctoML Profiler!
      :        ;
      \      /    It looks like you don't have an access token configured.
        `.  .'     Please go to https://profiler.app.octoml.ai/ to generate one
      '._.'`._.'   and then paste it here.
    
    Access token: 
    

    (Sign up so that you can generate an API token when prompted)

  • Once you've provided credentials, running this results in the following output that shows times of the function being executed remotely on each backend.

    Function `predict` has 1 profile:
    - Profile `predict[1/1]` ran 3 times. (1 discarded because compilation happened)
    
    Instance     Processor           Backend              Backend Time (ms)  Total Time (ms)  Cost ($/MReq)
    =======================================================================================================
    r6i.large    Intel Ice Lake CPU  torch-eager-cpu                  0.024            0.086          $0.00
    g4dn.xlarge  Nvidia T4 GPU       torch-eager-cuda                 0.097            0.159          $0.02
    g4dn.xlarge  Nvidia T4 GPU       torch-inductor-cuda              0.177            0.239          $0.03
    -------------------------------------------------------------------------------------------------------
    Total time above is `remote backend time + local python code time`,
    in which local python code run time is 0.062 ms.
    Graph level profile is located at /tmp/octoml_profile_8o45fe39/0/predict_1*
    

    To see more examples, see examples/.


Issues with installation

  • If you are on macOS with Apple silicon and seeing symbol not found in flat namespace '_CFRelease', it is likely that you created a venv with python installed by conda. Please make sure to deactivate any conda environment(s) and use the system-shipped python on macOS to create venv. Or follow the instructions below to create a conda environment.

    conda create -n octoml python=3.8
    conda activate octoml
    
  • If you see a version conflict, please install the pip dependencies above with --force-reinstall.

  • For any other problems, please file a github issue.

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.