GithubHelp home page GithubHelp logo

allenai / beaker-gantry Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 0.0 208 KB

Gantry streamlines running Python experiments in Beaker by managing containers and boilerplate for you

License: Apache License 2.0

Makefile 0.12% Python 91.65% Shell 8.23%
beaker cli containers docker python

beaker-gantry's People

Contributors

2015aroras avatar csarron avatar dependabot[bot] avatar epwalsh avatar hamishivi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

beaker-gantry's Issues

Git clone fatal: destination path '.' already exists and is not an empty directory error when using beaker image

๐Ÿ› Describe the bug

my cmd is

gantry run \
--dry-run \
--save-spec beaker-spec.yaml \
-n test-cv-docker \
--workspace ai2/br \
--cluster ai2/qicao-v100 \
--gpus 2 \
--beaker-image 'qicao/test-cv-docker' \
--venv 'eff' \
--dataset 'qicao/test-images:/data' -- \
torchrun --nproc_per_node 2 src/complete_cv_example.py --data_dir /data 

the git repo is https://github.com/csarron/efficiency-benchmark-test

error log:
https://beaker.org/api/v3/jobs/01GE637TDZZXYRSRABYDYK9C26/logs?tail=2

I suspect the beaker image somehow cached the git repo, which will fail the gantry when doing gh repo clone "$GITHUB_REPO" here

The beaker image is created using docker (dockerfile is here)

Versions

gantry is the latest version

Make it easy to update (or inspect?) one's Github Token

Recently @mattf1n and I debugged how to update one's Github token, which might happen if you've entered it incorrectly or it's expired. It wasn't very easy.

We ultimately discovered that it's stored as a Beaker secret. Which means we were able to use beaker secret * to both inspect and manipulate the value. But this wasn't terribly intuitive and required looking at the code.

It'd be nice if Gantry just provided a way to do this, say:

gantry config set token ...

..or something like that?

Don't require GitHub PAT for public repos

๐Ÿš€ The feature, motivation and pitch

We should have to use a GitHub PAT for public repos.

Alternatives

Keep doing what we're doing.

Additional context

No response

Support for creating and mounting datasets from a local path

Related to #13. See #13 (comment).

This is a little more complex because we probably don't want to re-upload those local files each time gantry run is called if they haven't changed. Maybe we add a flag to force re-upload, otherwise we could compute a hash of the contents of all source files and only upload when the hash changes. But then we're back to re-implementing git...

Support both *.yaml and *.yml

@mattf1n discovered that you must use the .yml extension for your environment.yml file. If you use .yaml it won't be found by Gantry.

Gantry should probably look for both.

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.