Skip to content

Commit

Permalink
update pyproject pip install package
Browse files Browse the repository at this point in the history
  • Loading branch information
lwaekfjlk committed Oct 11, 2023
1 parent 32f35c2 commit 008100e
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 265 deletions.
15 changes: 0 additions & 15 deletions llm_ft/playground/test_embedding/README.md

This file was deleted.

83 changes: 0 additions & 83 deletions llm_ft/playground/test_embedding/test_classification.py

This file was deleted.

99 changes: 0 additions & 99 deletions llm_ft/playground/test_embedding/test_semantic_search.py

This file was deleted.

67 changes: 0 additions & 67 deletions llm_ft/playground/test_embedding/test_sentence_similarity.py

This file was deleted.

2 changes: 1 addition & 1 deletion llm_ft/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [
[project.optional-dependencies]
model_worker = ["accelerate>=0.21", "peft", "sentencepiece", "torch", "transformers>=4.31.0", "protobuf"]
webui = ["gradio"]
train = ["einops", "flash-attn>=2.0", "wandb"]
train = ["einops", "flash-attn>=2.0", "wandb", "deepspeed", "peft", "bitsandbytes", "scipy", "sentencepiece"]
llm_judge = ["openai", "anthropic>=0.3", "ray"]
dev = ["black==23.3.0", "pylint==2.8.2"]

Expand Down
25 changes: 25 additions & 0 deletions llm_ft/qlora.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
deepspeed fastchat/train/train_lora.py \
--model_name_or_path ./vicuna-7b-1.5 \
--lora_r 8 \
--lora_alpha 16 \
--lora_dropout 0.05 \
--data_path ./data/dummy_conversation.json \
--bf16 True \
--output_dir ./checkpoints \
--num_train_epochs 3 \
--per_device_train_batch_size 1 \
--per_device_eval_batch_size 1 \
--gradient_accumulation_steps 1 \
--evaluation_strategy "no" \
--save_strategy "steps" \
--save_steps 1200 \
--save_total_limit 100 \
--learning_rate 2e-5 \
--weight_decay 0. \
--warmup_ratio 0.03 \
--lr_scheduler_type "cosine" \
--logging_steps 1 \
--tf32 True \
--model_max_length 2048 \
--q_lora True \
--deepspeed playground/deepspeed_config_s2.json

0 comments on commit 008100e

Please sign in to comment.