Giter Club home page Giter Club logo

Comments (10)

neel-patel-1 avatar neel-patel-1 commented on September 16, 2024 1

Turning on cache explicitly works.

The desired behavior was to allow the user to specify the path to their local version of the resource before continuing with the artifact reproduction process

This command seems to have the desired behavior:

cmr "download file _url.https://spec2017iso.s3.us-east-2.amazonaws.com/cpu2017-1_0_5.iso" --local_path=/home/n869p538/cpu2017-1_0_5.iso --force_cache=true

Thanks for your help

from ck.

gfursin avatar gfursin commented on September 16, 2024
  1. need to provide specs of _cm.yaml of CM scripts (https://github.com/mlcommons/ck/blob/master/docs/specs/cm-automation-script.md) and how to pass keys and ENV to sub dependencies

from ck.

gfursin avatar gfursin commented on September 16, 2024

Add Docker installation (many artifacts use it): #941

from ck.

gfursin avatar gfursin commented on September 16, 2024

Need FAQ about CM scripts ...

from ck.

neel-patel-1 avatar neel-patel-1 commented on September 16, 2024

--local_path option still results in downloading of remote file in spite of local resouce's being available:

- tags: download,file,_url.https://spec2017iso.s3.us-east-2.amazonaws.com/cpu2017-1_0_5.iso
  env:
    CM_DOWNLOAD_FINAL_ENV_NAME: 'SPEC_ISO'
  extra_cache_tags: micro23,artifact,ae,xfm,spec
  force_cache: true

Still results in downloading the file in spite of the local path to the resource being provided

(cm) n869p538@bristol:reproduce-paper-m2023-xfm$ cmr "reproduce project micro-2023 xfm _install_spec_deps" 
* cm run script "reproduce project micro-2023 xfm _install_spec_deps"
  * cm run script "detect os"
  * cm run script "get python" 
  * cm run script "get generic-python-lib _pandas"
  * cm run script "get generic-python-lib _matplotlib"
  * cm run script "get git repo _repo.https://github.com/neel-patel-1/XFM_MICRO2023"
  * cm run script "download file _url.https://spec2017iso.s3.us-east-2.amazonaws.com/cpu2017-1_0_5.iso"

Downloaded:   4%

from ck.

gfursin avatar gfursin commented on September 16, 2024

--local_path option still results in downloading of remote file in spite of local resouce's being available:

- tags: download,file,_url.https://spec2017iso.s3.us-east-2.amazonaws.com/cpu2017-1_0_5.iso
  env:
    CM_DOWNLOAD_FINAL_ENV_NAME: 'SPEC_ISO'
  extra_cache_tags: micro23,artifact,ae,xfm,spec
  force_cache: true

Still results in downloading the file in spite of the local path to the resource being provided

(cm) n869p538@bristol:reproduce-paper-m2023-xfm$ cmr "reproduce project micro-2023 xfm _install_spec_deps" 
* cm run script "reproduce project micro-2023 xfm _install_spec_deps"
  * cm run script "detect os"
  * cm run script "get python" 
  * cm run script "get generic-python-lib _pandas"
  * cm run script "get generic-python-lib _matplotlib"
  * cm run script "get git repo _repo.https://github.com/neel-patel-1/XFM_MICRO2023"
  * cm run script "download file _url.https://spec2017iso.s3.us-east-2.amazonaws.com/cpu2017-1_0_5.iso"

Downloaded:   4%

Thanks for your feedback! CC @arjunsuresh

from ck.

arjunsuresh avatar arjunsuresh commented on September 16, 2024

@neel-patel-1 can you please share how exactly you added --local_path option?

from ck.

neel-patel-1 avatar neel-patel-1 commented on September 16, 2024

(cm) n869p538@bristol:reproduce-paper-m2023-xfm$ cmr "download file _url.https://spec2017iso.s3.us-east-2.amazonaws.com/cpu2017-1_0_5.iso" --local_path=/home/n869p538/cpu2017-1_0_5.iso

from ck.

neel-patel-1 avatar neel-patel-1 commented on September 16, 2024

@arjunsuresh The command sequence looked as follows:

cmr "download file _url.https://spec2017iso.s3.us-east-2.amazonaws.com/cpu2017-1_0_5.iso" --local_path=/home/n869p538/cpu2017-1_0_5.iso
(cm) n869p538@bristol:reproduce-paper-m2023-xfm$ cmr "reproduce project micro-2023 xfm _install_spec_deps" 
* cm run script "reproduce project micro-2023 xfm _install_spec_deps"
  * cm run script "detect os"
  * cm run script "get python" 
  * cm run script "get generic-python-lib _pandas"
  * cm run script "get generic-python-lib _matplotlib"
  * cm run script "get git repo _repo.https://github.com/neel-patel-1/XFM_MICRO2023"
  * cm run script "download file _url.https://spec2017iso.s3.us-east-2.amazonaws.com/cpu2017-1_0_5.iso"

Downloaded:   4%

from ck.

arjunsuresh avatar arjunsuresh commented on September 16, 2024

Thank you @neel-patel-1 for sharing the details. Actually, for the download file CM script we are not turning on cache by default. When we want to use cache, we have to turn it on explicitly as follows:

cmr "download file _url.https://spec2017iso.s3.us-east-2.amazonaws.com/cpu2017-1_0_5.iso" --json --force_cache=true

And in the _cm.json also force_cache must be set for the URL download dependency like done here

Please let us know if this works.

from ck.

Related Issues (20)

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.