Skip to content

Commit ba1e6f0

Browse files
Add support for sqlcoder-34b-alpha #4
1 parent abe06ef commit ba1e6f0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
sentence_transformer = s3cmd get --recursive --skip-existing s3://h2o-model-gym/models/nlp/sentence_trasnsformer/all-MiniLM-L6-v2/ ./models/sentence_transformers/sentence-transformers_all-MiniLM-L6-v2
21
demo_data = s3cmd get --recursive --skip-existing s3://h2o-sql-sidekick/demo/sleepEDA/ ./examples/demo/
32

43
.PHONY: download_demo_data
@@ -12,8 +11,6 @@ setup: download_demo_data ## Setup
1211
./.sidekickvenv/bin/python3 -m pip install -r requirements.txt
1312
mkdir -p ./examples/demo/
1413

15-
download_models:
16-
mkdir -p ./models/sentence_transformers/sentence-transformers_all-MiniLM-L6-v2
1714

1815
download_demo_data:
1916
mkdir -p ./examples/demo/

sidekick/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
MODEL_CHOICE_MAP_EVAL_MODE = {
2525
"h2ogpt-sql-sqlcoder2": "defog/sqlcoder2",
26+
"h2ogpt-sql-sqlcoder-34b-alpha": "defog/sqlcoder-34b-alpha",
2627
"h2ogpt-sql-nsql-llama-2-7B": "NumbersStation/nsql-llama-2-7B",
2728
"gpt-3.5-turbo": "gpt-3.5-turbo-1106",
2829
"gpt-4-8k": "gpt-4",
@@ -32,6 +33,7 @@
3233

3334
MODEL_CHOICE_MAP_DEFAULT = {
3435
"h2ogpt-sql-sqlcoder2": "defog/sqlcoder2",
36+
"h2ogpt-sql-sqlcoder-34b-alpha": "defog/sqlcoder-34b-alpha",
3537
"h2ogpt-sql-nsql-llama-2-7B": "NumbersStation/nsql-llama-2-7B"
3638

3739
}

start.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def setup_dir(base_path: str):
2525
# Model 2:
2626
print(f"Download model 2...")
2727
snapshot_download(repo_id="defog/sqlcoder2", cache_dir=f"{base_path}/models/")
28+
# Model 3:
29+
print(f"Download model 3...")
30+
snapshot_download(repo_id="defog/sqlcoder-34b-alpha", cache_dir=f"{base_path}/models/")
2831

2932
print(f"Download embedding model...")
3033
snapshot_download(repo_id="BAAI/bge-base-en", cache_dir=f"{base_path}/models/sentence_transformers/")

0 commit comments

Comments
 (0)