Skeleton for local supervised DVC run and pinned huggingface-regressor transformers version#162
Skeleton for local supervised DVC run and pinned huggingface-regressor transformers version#162florisvdf wants to merge 3 commits into
Conversation
|
@karel-w @hredestig Care to take a look? |
7da9379 to
7014c49
Compare
|
@hredestig @karel-w Thanks for spotting the user paths. |
|
It turns out that this is not a trivial change. It seems that From my understanding, this behavior does not align with the intended use of local dvc runs, which we do not want to be tracked remotely (and maybe not even locally?) So far, the best solution I have come up with is to initialize a nested dvc project under “There is no need to keep the history at all, e.g. having a deployment automation like running a data pipeline using cron.” One can then run However, I recognize that this is maybe not the most elegant solution, as it requires an extra nested dvc project, and only works when users run Thoughts on this @hredestig @karel-w? |
|
Another approach could be to have a folder of git-submodules for each benchmark, where if you wanted to run your own benchmark, i.e. the local one, you are advised to first create that git repo somewhere and submodule it in this repo. This repo is then not concerned with tracking dvc.lock just the pipelines definitions etc. No idea if that works but would avoid the unfortunate |


Changes
This PR contains two minor changes
Fixed transformers model loading in huggingface-regressor
Model loading through
AutoModelForCausalLM.from_pretrainedis broken for some models withtrust_remote_code=Truein more recent versions of transformers. See:huggingface/transformers#43883
huggingface/transformers#40822 (comment)
Pinning the version of transformers in huggingface-regressor to 4.46.0 fixes this.
Added skeleton for local supervised DVC run
Added a dedicated directory for local DVC runs.
CONTRIBUTING.mdinstructs users to execute local runs withdvc repro benchmark/supervised/local/dvc.yaml --single-item. This fails since the necessary directories and dvc files are missing. This change creates a skeleton to support local execution.The structure is as follows:
This includes an updated
dvc.yamlfile that correctly parses relative paths.Checklist