mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-23 17:01:04 +02:00
Hypernetworks that update LLMs to remember factual information
https://arxiv.org/abs/2602.15902
| chat_templates | ||
| configs | ||
| data/raw_datasets | ||
| icae_v2 | ||
| src/ctx_to_lora | ||
| webui | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| batch.sh | ||
| batch_gemma_2_2b.sh | ||
| batch_gemma_llama_vision.sh | ||
| batch_llama_2_7b.sh | ||
| batch_llama_3_8b_1k_latent.sh | ||
| generate_fw_qa.py | ||
| generate_one_big_fw_qa_req.py | ||
| generate_qa_parallel.py | ||
| hotpot_qa_lengths.png | ||
| hotpot_qa_lengths_filtered.png | ||
| install.sh | ||
| intx_sft.py | ||
| openphi_prog_lengths.png | ||
| openphi_prog_lengths_filtered.png | ||
| post_process_fw_qa.py | ||
| post_process_parallel_qa.py | ||
| process_automathtext_arxiv.py | ||
| process_automathtext_code_python.py | ||
| process_automathtext_web.py | ||
| process_codeparrot_qa.py | ||
| process_fineweb.py | ||
| process_openphi_prog.py | ||
| pyproject.toml | ||
| README.md | ||
| requirements.txt | ||
| run.sh | ||
| setup.py | ||
| watcher.py | ||
Finetuning the base model with LoRA adaptor
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
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
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
# this might take several days...
python process_fineweb.py
python generate_fw_qa.py
python post_process_fw_qa.py