changeset 4:de753cf07008 draft default tip

planemo upload for repository https://github.com/goeckslab/gleam.git commit 528178a2b2ca39924fd596859fe658aeaf984e6d
author goeckslab
date Thu, 22 Jan 2026 22:41:21 +0000
parents 25bb80df7c0c
children
files multimodal_learner.py multimodal_learner.xml
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/multimodal_learner.py	Sat Jan 17 22:53:42 2026 +0000
+++ b/multimodal_learner.py	Thu Jan 22 22:41:21 2026 +0000
@@ -217,6 +217,10 @@
     logger.info(f"Working directory: {os.getcwd()}")
     logger.info(f"Command line: {' '.join(sys.argv)}")
     logger.info(f"Parsed args: {vars(args)}")
+    logger.info("Cache dirs: TORCH_HOME=%s HF_HOME=%s HUGGINGFACE_HUB_CACHE=%s",
+                os.environ.get("TORCH_HOME"),
+                os.environ.get("HF_HOME"),
+                os.environ.get("HUGGINGFACE_HUB_CACHE"))
 
     # ------------------------------------------------------------------
     # Reproducibility & performance
--- a/multimodal_learner.xml	Sat Jan 17 22:53:42 2026 +0000
+++ b/multimodal_learner.xml	Thu Jan 22 22:41:21 2026 +0000
@@ -43,6 +43,14 @@
 ln -sf '$test_dataset_conditional.input_test' 'test_input.csv';
 #end if
 
+#set $TORCH_HOME = "./torch_cache"
+#set $HF_HOME = "./hf_cache"
+#set $HUGGINGFACE_HUB_CACHE = "./hf_cache/hub"
+export TORCH_HOME="$TORCH_HOME" &&
+export HF_HOME="$HF_HOME" &&
+export HUGGINGFACE_HUB_CACHE="$HUGGINGFACE_HUB_CACHE" &&
+mkdir -p "$TORCH_HOME" "$HUGGINGFACE_HUB_CACHE" &&
+
   python '$__tool_directory__/multimodal_learner.py'
   --input_csv_train 'train_input.csv'
   #if $test_dataset_conditional.has_test_dataset == "yes"