Code Monkey home page Code Monkey logo

cml_tensorboard_case's Introduction

CML with Tensorboard use case

This repository contains a sample project using CML with Tensorboard.dev to track model training in real-time. When a pull request is made, the following steps occur:

  • GitHub will deploy a runner machine with a specified CML Docker environment
  • A Tensorboard.dev page will be created
  • CML will report a link to the Tensorboard as a comment in the pull request
  • The runner will execute a workflow to train a ML model (python train.py)

The key file enabling these actions is .github/workflows/cml.yaml.

Secrets and environmental variables

In this example, .github/workflows/cml.yaml contains two environmental variables that are stored as repository secrets.

Secret Description
GITHUB_TOKEN This is set by default in every GitHub repository. It does not need to be manually added.
TB_CREDENTIALS Tensorboard credentials

To access your Tensorboard credentials:

  1. On your local machine, run tensorboard dev upload
  2. Accept the TOS and follow the authentication procedure.
  3. When you have authenticated, copy your credentials out of ~/.config/tensorboard/credentials/uploader-creds.json (this is the typical path for OSX/Linux systems). Paste these credentials as the secret TB_CREDENTIALS.

Cloning this project

Note that if you clone this project, you will have to configure your own TB credentials for the example.

cml_tensorboard_case's People

Contributors

elleobrien avatar gurobokum avatar

Watchers

 avatar

Forkers

suor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.