Comments (10)
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.
- 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.
Add Docker installation (many artifacts use it): #941
from ck.
Need FAQ about CM scripts ...
from ck.
--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.
--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.
@neel-patel-1 can you please share how exactly you added --local_path
option?
from ck.
(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.
@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.
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)
- add CM cloud automation recipes (AWS, Azure, GCP, Cirrascale) to GUI
- do not use sudo in "get rclone" on Linux HOT 9
- add "WARNING" in CM script meta (including variations) HOT 1
- when downloading model, show CM cache path HOT 1
- [MLPerf inference] Print a path to the inference implementations to help users optimize them HOT 3
- Brainstorm how to create and use stable containers with MLPerf GUI
- ctuning/kilt-mlperf should be krai/kilt-mlperf? HOT 4
- Unable to execute "app-mlperf-inference-cpp" on MacBook M1 HOT 7
- [MLPerf] request to add CM GitHub tests for MacBook and Windows
- text_to_image facing authentication issue HOT 1
- unifying CM-MLPerf implementation names HOT 2
- Simplifying README HOT 2
- Support multiple python virtual environment in a CM workflow
- Adding Implementation name to the MLPerf inference framework field
- How can I get nvmitten-0.1.3-cp38-cp38-linux_x86_64.whl HOT 7
- fatal: unable to access 'https://github.com/mlcommons/ck/': GnuTLS recv error (-9): Error decoding the received TLS packet. HOT 7
- /cm/bin/python3: No module named pip HOT 4
- Why the results both on CPU and GPU are same? HOT 2
- [Enhancement] make it easier to switch between branches of CM repositories HOT 1
- [W:onnxruntime:, graph.cc:3593 CleanUnusedInitializersAndNodeArgs] Removing initializer 'bert.pooler.dense.bias'. It is not used by any node and should be removed from the model.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ck.