Skip to content

Commit

Permalink
temporary save for switching disk region
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasonqi146 committed Oct 13, 2023
1 parent dd939f3 commit 8937459
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion llm_ft/fastchat/train/train_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
make_supervised_data_module,
)


access_token = "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"

@dataclass
class TrainingArguments(transformers.TrainingArguments):
Expand Down Expand Up @@ -137,6 +137,7 @@ def train():
)
if lora_args.q_lora
else None,
token=access_token,
)
lora_config = LoraConfig(
r=lora_args.lora_r,
Expand Down Expand Up @@ -176,6 +177,7 @@ def train():
model_max_length=training_args.model_max_length,
padding_side="right",
use_fast=False,
token=access_token,
)
tokenizer.pad_token = tokenizer.unk_token

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
deepspeed fastchat/train/train_lora.py \
--model_name_or_path ./Mistral-7B-v0.1 \
--model_name_or_path meta-llama/Llama-2-13b-chat-hf \
--lora_r 8 \
--lora_alpha 16 \
--lora_dropout 0.05 \
Expand Down
8 changes: 7 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ datasets
names
together
pydantic==1.10.12
deepspeed
deepspeed
bitsandbytes
scipy

# for llama2
sentencepiece
protobuf

0 comments on commit 8937459

Please sign in to comment.