@@ -40,13 +40,13 @@ Maintainers: [Public MLCommons Task Force on Automation and Reproducibility](htt
40
40
41
41
` cm run script --tags=get,generic-python-lib `
42
42
43
- ` cm run script --tags=get,generic-python-lib[,variations] `
43
+ ` cm run script --tags=get,generic-python-lib[,variations] [--input_flags] `
44
44
45
45
* or*
46
46
47
47
` cmr "get generic-python-lib" `
48
48
49
- ` cmr "get generic-python-lib [variations]" `
49
+ ` cmr "get generic-python-lib [variations]" [--input_flags] `
50
50
51
51
52
52
* * See the list of ` variations ` [ here] ( #variations ) and check the [ Gettings Started Guide] ( https://github.com/mlcommons/ck/blob/dev/docs/getting-started.md ) for more details.*
@@ -85,7 +85,7 @@ Use this [online GUI](https://cKnowledge.org/cm-gui/?tags=get,generic-python-lib
85
85
86
86
# ### Run this script via Docker (beta)
87
87
88
- `cm docker script " get generic-python-lib[variations]" `
88
+ `cm docker script " get generic-python-lib[variations]" [ -- input_flags] `
89
89
90
90
___
91
91
# ## Customization
487
487
- Workflow:
488
488
* `_torch,rocm`
489
489
- Environment variables:
490
- - * CM_GENERIC_PYTHON_PIP_INDEX_URL * : `https:// download.pytorch.org/ whl/ rocm5.6`
491
490
- * CM_GENERIC_PYTHON_PACKAGE_NAME * : `torch`
491
+ - * CM_GENERIC_PYTHON_PIP_INDEX_URL * : `https:// download.pytorch.org/ whl/ rocm5.6`
492
492
- * CM_GENERIC_PYTHON_PIP_UNINSTALL_DEPS * : `torch`
493
493
- Workflow:
494
494
1 . *** Read " post_deps" on other CM scripts***
509
509
* `_torch_cuda,pre`
510
510
- Environment variables:
511
511
- * CM_GENERIC_PYTHON_PACKAGE_NAME * : `torch`
512
- - * CM_GENERIC_PYTHON_PIP_INDEX_URL * : `https:// download.pytorch.org/ whl/ << < CM_CUDA_VERSION_STRING >> > `
513
512
- * CM_GENERIC_PYTHON_PIP_EXTRA * : ` -- pre`
513
+ - * CM_GENERIC_PYTHON_PIP_INDEX_URL * : `https:// download.pytorch.org/ whl/ << < CM_CUDA_VERSION_STRING >> > `
514
514
- * CM_TORCH_VERSION_EXTRA * : `CUDA `
515
515
- Workflow:
516
516
1 . *** Read " deps" on other CM scripts***
532
532
- Workflow:
533
533
* `_torchaudio,rocm`
534
534
- Environment variables:
535
- - * CM_GENERIC_PYTHON_PIP_INDEX_URL * : `https:// download.pytorch.org/ whl/ rocm5.6`
536
535
- * CM_GENERIC_PYTHON_PACKAGE_NAME * : `torchaudio`
536
+ - * CM_GENERIC_PYTHON_PIP_INDEX_URL * : `https:// download.pytorch.org/ whl/ rocm5.6`
537
537
- * CM_GENERIC_PYTHON_PIP_UNINSTALL_DEPS * : `torchaudio`
538
538
- Workflow:
539
539
* `_torchaudio_cuda`
553
553
- Workflow:
554
554
* `_torchvision,rocm`
555
555
- Environment variables:
556
- - * CM_GENERIC_PYTHON_PIP_INDEX_URL * : `https:// download.pytorch.org/ whl/ rocm5.6`
557
556
- * CM_GENERIC_PYTHON_PACKAGE_NAME * : `torchvision`
557
+ - * CM_GENERIC_PYTHON_PIP_INDEX_URL * : `https:// download.pytorch.org/ whl/ rocm5.6`
558
558
- * CM_GENERIC_PYTHON_PIP_UNINSTALL_DEPS * : `torchvision`
559
559
- Workflow:
560
560
* `_torchvision_cuda`
614
614
615
615
< / details>
616
616
617
+
618
+ # ### Script flags mapped to environment
619
+ < details>
620
+ < summary> Click here to expand this section.< / summary>
621
+
622
+ * `-- extra_index_url=value` & rarr; `CM_GENERIC_PYTHON_PIP_EXTRA_INDEX_URL =value`
623
+ * `-- force_install=value` & rarr; `CM_TMP_PYTHON_PACKAGE_FORCE_INSTALL =value`
624
+ * `-- index_url=value` & rarr; `CM_GENERIC_PYTHON_PIP_INDEX_URL =value`
625
+
626
+ ** Above CLI flags can be used in the Python CM API as follows:**
627
+
628
+ ```python
629
+ r=cm.access({... , " extra_index_url" :... }
630
+ ```
631
+
632
+ < / details>
633
+
617
634
# ### Default environment
618
635
619
636
< details>
655
672
656
673
___
657
674
# ## Script output
658
- `cmr " get generic-python-lib [,variations]" - j`
675
+ `cmr " get generic-python-lib [,variations]" [ -- input_flags] - j`
659
676
# ### New environment keys (filter)
660
677
661
678
* `CM_PYTHONLIB_ * `
0 commit comments