-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from csunny/fix
fix some issue
- Loading branch information
Showing
6 changed files
with
70 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,13 @@ | ||
torch==2.0.0 | ||
accelerate==0.16.0 | ||
aiohttp==3.8.4 | ||
aiosignal==1.3.1 | ||
async-timeout==4.0.2 | ||
attrs==22.2.0 | ||
transformers @ git+https://github.com/huggingface/transformers.git | ||
peft @ git+https://github.com/huggingface/peft.git | ||
accelerate @ git+https://github.com/huggingface/[email protected] | ||
bitsandbytes==0.39.0 | ||
cchardet==2.1.7 | ||
chardet==5.1.0 | ||
contourpy==1.0.7 | ||
cycler==0.11.0 | ||
filelock==3.9.0 | ||
fonttools==4.38.0 | ||
frozenlist==1.3.3 | ||
huggingface-hub==0.14.1 | ||
importlib-resources==5.12.0 | ||
einops==0.6.1 | ||
evaluate==0.4.0 | ||
scikit-learn==1.2.2 | ||
sentencepiece==0.1.99 | ||
wandb==0.15.3 | ||
rapidfuzz | ||
scipy | ||
datasets | ||
|
||
sqlparse==0.4.4 | ||
kiwisolver==1.4.4 | ||
matplotlib==3.7.1 | ||
multidict==6.0.4 | ||
packaging==23.0 | ||
psutil==5.9.4 | ||
pycocotools==2.0.6 | ||
pyparsing==3.0.9 | ||
python-dateutil==2.8.2 | ||
pyyaml==6.0 | ||
tokenizers==0.13.2 | ||
tqdm==4.64.1 | ||
transformers==4.30.0 | ||
timm==0.6.13 | ||
spacy==3.5.3 | ||
webdataset==0.2.48 | ||
yarl==1.8.2 | ||
zipp==3.14.0 | ||
omegaconf==2.3.0 | ||
opencv-python==4.7.0.72 | ||
iopath==0.1.10 | ||
tenacity==8.2.2 | ||
peft | ||
pycocoevalcap | ||
cpm_kernels | ||
umap-learn | ||
notebook | ||
gradio==3.23 | ||
gradio-client==0.0.8 | ||
wandb | ||
llama-index==0.5.27 | ||
pymysql | ||
unstructured==0.6.3 | ||
grpcio==1.47.5 | ||
gpt4all==0.3.0 | ||
diskcache==5.6.1 | ||
|
||
auto-gpt-plugin-template | ||
pymdown-extensions | ||
gTTS==2.3.1 | ||
langchain | ||
nltk | ||
python-dotenv==1.0.0 | ||
pymilvus==2.2.1 | ||
vcrpy | ||
chromadb==0.3.22 | ||
markdown2 | ||
colorama | ||
playsound | ||
distro | ||
pypdf | ||
weaviate-client | ||
|
||
# Testing dependencies | ||
pytest | ||
asynctest | ||
pytest-asyncio | ||
pytest-benchmark | ||
pytest-cov | ||
pytest-integration | ||
pytest-mock | ||
pytest-recording | ||
pytesseract==0.3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
python src/sql_data_process.py | ||
|
||
python src/train/train_qlora.py \ | ||
--output_dir ./adapter \ | ||
--dataset spider \ | ||
--do_train True \ | ||
--do_eval False \ | ||
--do_merge True \ | ||
--source_max_len 384 \ | ||
--target_max_len 128 \ | ||
--per_device_train_batch_size 4 \ | ||
--per_device_eval_batch_size 4 \ | ||
--gradient_accumulation_steps 4 \ | ||
--logging_steps 2 \ | ||
--max_steps 10 \ | ||
--save_strategy steps \ | ||
--data_seed 42 \ | ||
--save_steps 1000 \ | ||
--save_total_limit 40 \ | ||
--evaluation_strategy steps \ | ||
--eval_dataset_size 1024 \ | ||
--max_eval_samples 1000 \ | ||
--eval_steps 10 \ | ||
--optim paged_adamw_32bit \ | ||
|
||
python src/utils/merge_peft_adapters.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters