mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-23 17:01:04 +02:00
25 lines
No EOL
1.3 KiB
Markdown
25 lines
No EOL
1.3 KiB
Markdown
[Project doc](https://docs.google.com/document/d/1RCQDzlVU7YGoTwR84gLQfhxTv0RFnW6srQlqfCC2bvQ/edit?usp=sharing)
|
|
|
|
### Finetuning the base model with LoRA adaptor
|
|
```bash
|
|
WANDB_MODE=disabled python hyperlora/intx_sft.py configs/default.yaml --model_name_or_path=meta-llama/Llama-3.2-1B-Instruct --num_train_epochs=50 --per_device_train_batch_size=128 --per_device_eval_batch_size=128 --exp_setup=lora --train_ds_name=data/raw_datasets/context_numbers_small
|
|
```
|
|
|
|
|
|
### HyperLoRA w/ context_numbers_10
|
|
```bash
|
|
WANDB_MODE=disabled run python hyperlora/intx_sft.py configs/context_numbers_10.yaml --model_name_or_path=meta-llama/Llama-3.2-1B-Instruct --num_train_epochs=100 --per_device_train_batch_size=64 --per_device_eval_batch_size=64 --exp_setup=hyper_lora --aggregator_type=perceiver --target_modules=down_proj,up_proj
|
|
```
|
|
|
|
### HyperLoRA w/ context_numbers_128
|
|
```bash
|
|
WANDB_MODE=disabled run python hyperlora/intx_sft.py configs/context_numbers_128.yaml --model_name_or_path=meta-llama/Llama-3.2-1B-Instruct --num_train_epochs=10 --per_device_train_batch_size=64 --per_device_eval_batch_size=8 --exp_setup=hyper_lora --aggregator_type=perceiver --target_modules=down_proj
|
|
```
|
|
|
|
### Generate fineweb qa
|
|
```bash
|
|
# this might take several days...
|
|
python process_fineweb.py
|
|
python generate_fw_qa.py
|
|
python post_process_fw_qa.py
|
|
``` |