Skip to content

Commit

Permalink
vscode task for docker and conda
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyao9184 committed Nov 8, 2024
1 parent ffcb9e5 commit 695d44a
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,5 @@ cython_debug/
/model_dir/
/dataset_dir/
/repos/
/logs/
/logs/
/cache/
53 changes: 53 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "docker: compose up",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}/docker/up/"
},
"command": "docker compose -p olah up",
},
{
"label": "docker: build main",
"type": "shell",
"command": "docker build -t xiaoyao9184/olah:main -f ./docker/build@source/dockerfile .",
},
{
"label": "docker: build 0.3.3",
"type": "shell",
"command": "docker build -t xiaoyao9184/olah:0.3.3 -f ./docker/build@pypi/dockerfile .",
},
{
"label": "huggingface-cli: download cais/mmlu",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}",
"env": {
"HF_ENDPOINT": "http://localhost:8090",
"HF_HUB_ETAG_TIMEOUT": "100",
"HF_HUB_DOWNLOAD_TIMEOUT": "100"
}
},
"command": "huggingface-cli download cais/mmlu --repo-type dataset --revision main --cache-dir ./cache/huggingface/hub"
},
{
"label": "conda: run olah-cli",
"type": "shell",
"command": [
"conda run --no-capture-output -n olah olah-cli -c ./assets/full_configs.toml"
],
"problemMatcher": []
},
{
"label": "conda: create env",
"type": "shell",
"command": [
"conda env create -f ./environment.yml"
]
}
]
}

0 comments on commit 695d44a

Please sign in to comment.