chore: import upstream snapshot with attribution
Build documentation / build (push) Failing after 0s
Deploy "method_comparison" Gradio to Spaces / deploy (push) Has been cancelled
Deploy "PEFT shop" Gradio app to Spaces / deploy (push) Has been cancelled
tests on transformers main / tests (push) Has been cancelled
tests / check_code_quality (push) Has been cancelled
tests / tests (ubuntu-latest, 3.10) (push) Has been cancelled
tests / tests (ubuntu-latest, 3.11) (push) Has been cancelled
tests / tests (ubuntu-latest, 3.12) (push) Has been cancelled
tests / tests (ubuntu-latest, 3.13) (push) Has been cancelled
tests / tests (windows-latest, 3.10) (push) Has been cancelled
tests / tests (windows-latest, 3.11) (push) Has been cancelled
tests / tests (windows-latest, 3.12) (push) Has been cancelled
tests / tests (windows-latest, 3.13) (push) Has been cancelled
Secret Leaks / trufflehog (push) Has been cancelled
CI security linting / zizmor latest via Cargo (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:24:42 +08:00
commit caf324b09d
920 changed files with 335491 additions and 0 deletions
+96
View File
@@ -0,0 +1,96 @@
# Makefile for running MetaMathQA experiments.
# --- Configuration ---
PYTHON := python
RUN_SCRIPT := run.py
EXPERIMENTS_DIR := experiments
RESULTS_DIR := results
OPTIONAL_FLAGS =
ifdef UPLOAD_BUCKET
OPTIONAL_FLAGS += --bucket_name "${UPLOAD_BUCKET}"
endif
# --- Automatic Experiment and Result Discovery ---
# 1. Find all experiment directories by looking for adapter_config.json files.
# This gives us a list like: experiments/lora/llama-3.2-3B-rank32 ...
EXPERIMENT_PATHS := $(shell find $(EXPERIMENTS_DIR) \
-name "adapter_config.json" -or \
-name "training_params.json" | xargs dirname | sort -u)
# 2. Define a function to replace all occurrences of a character in a string.
# This is needed to replicate the result naming logic from run.py (e.g., "lora/foo" -> "lora-foo").
# Usage: $(call replace-all, string, char_to_replace, replacement_char)
replace-all = $(if $(findstring $(2),$(1)),$(call replace-all,$(subst $(2),$(3),$(1)),$(2),$(3)),$(1))
# 3. Define a function to convert an experiment path to its flat result file path.
# e.g., "experiments/lora/llama-3.2-3B-rank32" -> "results/lora-llama-3.2-3B-rank32.json"
exp_to_res = $(RESULTS_DIR)/$(call replace-all,$(patsubst $(EXPERIMENTS_DIR)/%,%,$(1)),/,--).json
# 4. Generate the list of all target result files we want to build.
RESULT_FILES := $(foreach exp,$(EXPERIMENT_PATHS),$(call exp_to_res,$(exp)))
# --- Main Rules ---
# The default 'all' target depends on all possible result files.
# Running `make` or `make all` will check and run any outdated or missing experiments.
all: $(RESULT_FILES)
# --- Dynamic Rule Generation ---
# This is the core logic. We dynamically generate a specific Makefile rule for each experiment found.
# This avoids a complex pattern rule and makes the logic clearer.
define EXPERIMENT_template
# Input $1: The full experiment path (e.g., experiments/lora/llama-3.2-3B-rank32)
# Define the rule:
# The target is the result file (e.g., results/lora-llama-3.2-3B-rank32.json).
# The dependencies are its config files, code changes need to be audited manually since they can
# vary in degree of importance. Note that we explicitly ignore when the script fails to run
# so that the other experiments still have a chance to run.
$(call exp_to_res,$(1)): $(wildcard $(1)/adapter_config.json) $(wildcard $(1)/training_params.json)
@echo "---"
@echo "Running experiment: $(1)"
-$(PYTHON) $(RUN_SCRIPT) $(OPTIONAL_FLAGS) -v $(1)
@echo "Finished: $$@"
@echo "---"
endef
# This command iterates through every found experiment path and evaluates the template,
# effectively stamping out a unique, explicit rule for each one.
$(foreach exp_path,$(EXPERIMENT_PATHS),$(eval $(call EXPERIMENT_template,$(exp_path))))
# --- Utility Rules ---
.PHONY: all clean list dump_rules
# The 'clean' rule removes all generated results.
clean:
@echo "Cleaning results directory..."
@([ -n "$(wildcard $(RESULTS_DIR)/*.json)" ] && rm $(RESULTS_DIR)/*.json) || exit 0
# The 'list' rule is for debugging. It shows the discovered experiments
# and the result files the Makefile expects to create for them.
list:
@echo "Discovered experiment configurations:"
@$(foreach exp,$(EXPERIMENT_PATHS),echo " - $(exp)/adapter_config.json";)
@echo "\nTarget result files:"
@$(foreach res,$(RESULT_FILES),echo " - $(res)";)
# The 'dump_rules' rule is for debugging. It dumps all dynamically defined rules.
define newline
endef
define DUMPED_RULES
$(foreach exp_path,$(EXPERIMENT_PATHS),$(call EXPERIMENT_template,$(exp_path)))
endef
dump_rules:
@echo -e "$(subst $(newline),\n,${DUMPED_RULES})"
+248
View File
@@ -0,0 +1,248 @@
# PEFT method comparison on the MetaMathQA and GSM8K datasets
## Goal
This goal is to provide a benchmarking framework for the different PEFT methods that are implemented. It is important that evaluating different PEFT methods is reproducible, idempotent, and version-controlled. Results for more PEFT methods can be added over time.
## Dataset
This task trains on the [MetaMathQA]((https://huggingface.co/datasets/meta-math/MetaMathQA)) dataset and validates/tests on the [GSM8K](https://huggingface.co/datasets/openai/gsm8k) dataset ("main").
For the model to attain good accuracy, it needs to learn to adhere to the output format and it must express basic chain of thought reasoning capabilities to get to the correct result in the first place. The task is challenging for models in the sub 7B parameter range.
The train set uses the whole of MetaMathQA. The validation set is a random sample from the train set of GSM8K. The test set is the whole of the GSM8K test set.
## Running
Create an experiment in the `experiment/<peft-method>` folder of your choice and give it a name (the name itself does not matter but helps identify the experiment). An example would be `experiments/lora/llama-3.2-3B-rank32/`. Inside that directory, create 2 files:
- `adapter_config.json`
- Optional: `training_parameters.json`
Once you created these two files, you can either
- run the whole suite using by simply calling `make` (takes >24h)
- run one specific experiment by calling `make results/<experiment_name>-<experiment_variation>.json`,
for example `results/vblora-llama-3.2-3B-default.json`
You can get a list of all runnable experiments by running `make list`, e.g.:
```
% make list (git)-[method-comparison-results] ⛓ peft
Discovered experiment configurations:
- experiments/ptuning/llama-3.2-3B-default/adapter_config.json
[...]
- experiments/vblora/llama-3.2-3B-default/adapter_config.json
Target result files:
- results/ptuning-llama-3.2-3B-default.json
[...]
- results/vblora-llama-3.2-3B-default.json
```
In case you want to force the execution of an experiment, you can simply `touch` the respective adapter config
without modifying it. For example:
touch experiments/vblora/llama-3.2-3B-default/adapter_config.json
make
to run the VBLoRA default experiment again.
If you set `UPLOAD_BUCKET="your_user/bucket_name"` as an environment variable prior to starting experiments via `make`, all experiments will be called with the `--bucket_name $UPLOAD_BUCKET` parameter and therefore store the checkpoints in that bucket. _For maintainers_: The default bucket name should be `"peft-internal-testing/metamathqa-checkpoints"`.
### `adapter_config.json`
This must be a valid PEFT configuration. It is easiest to create it programmatically, e.g.:
```python
from peft import LoraConfig
config = LoraConfig(...)
config.save_pretrained(<path-to-experiment>)
```
### `training_parameters.json`
There is a default file for the non-PEFT parameters: `default_training_params.json`. This contains all the other parameters that are relevant for training, e.g. the base model id, number of steps, batch size, learning rate, etc. If parameters that differ from the defaults are needed for a specific experiment, place a `training_parameters.json` into the experiment directory and adjust the parameters that need changing. The other parametes are taken from the aforementioned default config.
For an overview of all possible arguments, you can also check the `TrainConfig` `dataclass` in `utils.py`.
#### About `torch.compile`
Right now, compilation is a simple on/off switch in `training_params.json`. There is probably room for optimization here.
Due to the model being switched to `eval` mode for the validation metrics and then back to `train` mode, we will incur a re-compilation. This is acceptable to ensure that validation runs correctly. However, this prevents us from using `torch._dynamo.config.patch(error_on_recompile=True, inline_inbuilt_nn_modules=False)` to detect frequent recompilations. It should be noticeable from the duration of training steps, though, so we're fine with that.
### Runtime performance
Several factors should be considered to achieve a fast runtime performance. Besides the obvious factors like `max_steps` or the base model size, we found the following factors to have a significant impact:
#### Eval batch size
Regarding the `batch_size_eval` parameter, it is quite critical since evaluation takes up a significant portion of the training time and batching helps with reducing that. It should be possible to choose a value that is multiple times higher than the batch size used for training (`batch_size`). You should also pay attention to the size of the validation set -- e.g. if it's 50, don't choose a `batch_size_eval` of 40, as that results in a large batch of 30 and a small batch of 10. 25 might be a better choice. Also, ensure via a quick train run that the batch size does not lead to out of memory errors -- getting this error at the very end on evaluating the test set would be quite a loss of time.
#### Generation length
During testing, we discovered that the validation time is greatly inflated by just a few very long generations. Those can inflate the validation time by a factor of 3 or more. At the same time, we discovered that these long generations do not help with accuracy -- in fact, if they exceed the maximum configured length, they're just cut off mid sentence and would thus produce an accuracy of 0 anyway.
To remedy this, we now set both `max_length` and `max_new_tokens` for the generation kwargs in the default training parameters. Normally, this is not possible when using transformers, as the latter argument overrides the former. However, we have added special logic inside of `get_generation_config` which takes both and chooses the smaller of the two. This way, we can get rid of these excessively long generations, thus considerably reducing eval times, while still guaranteeing a maximum total generation length to guard against OOM errors. Testing showed that this does not hamper test accuracy. It is therefore recommended not to change these settings.
#### Bucketing
The length of the sequences in the training data can vary a lot. Therefore, if samples are taken randomly from the training dataset, we will end up with batches containing very short and very long sequences. This is bad because the batch will be padded to the longest sequence, slowing down training. The obvious solution would be to sort the whole dataset by sequence length, but this is also bad because it introduces an order bias (e.g. first training on only short and then on only long answers).
The solution is to find a trade off between the two factors. This is achieved by the `BucketIterator`. It first creates buckets that contain multiple batches, e.g. 20x the batch size. The bucket is then sorted by sequence length and then batches are yielded from the bucket. Therefore, we have a small order bias within a bucket but not between buckets, stricking a good balance between training speed and training loss.
From practical experiments, for a batch size of 4, a bucket size of 80 provides a good balance with only slightly lower training loss but cutting training time by 25%. For eval, we don't use the iterator since there, the batch size is relatively big and thus there is little upside.
### Start a run
Once everything is set up properly, start a run by using the `run.py` script. Pass `-v` for verbose output to the console (recommended if observing the progress is desired). To save the resulting experiment checkpoints to a huggingface bucket, you can pass the bucket name via the `--bucket_name` parameter (e.g., `"user/my_bucket_name"`). As an example, for `experiments/lora/llama-3.2-3B-rank32/` the invocation would be:
```sh
python run.py -v experiments/lora/llama-3.2-3B-rank32/
```
By default, the adapter will be saved in a temporary file for further inspection if needed. The prevent this, add the `--clean` flag to the call.
### Run status
The run can be categorized 3 different states:
1. Main run: You are on the `main` branch and the run ended successfully. The results are stored in the `results` folder and are used for further analysis.
2. Test run: You are not on the `main` branch and the run ended successfully. The results are stored in the `temporary_results` folder and are not used for further analysis.
3. The run was cancelled (`ctrl + c`). The results are stored in the `cancelled_results` folder and are not used for further analysis.
## Outputs
Results are stored in one of the result directories. An example output could look like so:
```js
{
"run_info": {
"created_at": "2025-03-05T13:50:05+00:00",
"total_time": 2711.0915009640157,
"experiment_name": "ia3/lr_0.001",
"peft_branch": "ben-method-comparison",
"train_config": {
"model_id": "meta-llama/Llama-3.2-3B",
"dtype": "bfloat16",
"max_seq_length": 768,
"batch_size": 4,
"batch_size_eval": 51,
"max_steps": 5000,
"eval_steps": 250,
"compile": false,
"query_template": "Question: {query} Think step by step.\nAnswer:",
"seed": 0,
"grad_norm_clip": 1.0,
"optimizer_kwargs": {
"lr": 0.001
},
"lr_scheduler": "cosine",
"use_amp": false,
"generation_kwargs": {
"max_length": 800
},
"attn_implementation": null
},
"peft_config": {
"task_type": null,
"peft_type": "IA3",
"auto_mapping": null,
"base_model_name_or_path": "meta-llama/Llama-3.2-3B",
"revision": null,
"inference_mode": false,
"target_modules": [
"v_proj",
"k_proj",
"down_proj"
],
"exclude_modules": null,
"feedforward_modules": [
"down_proj"
],
"fan_in_fan_out": false,
"modules_to_save": null,
"init_ia3_weights": true
}
},
"train_info": {
"accelerator_memory_reserved_avg": 14229219940,
"accelerator_memory_max": 24847056896,
"accelerator_memory_reserved_99th": 19115624366,
"train_time": 2238.65277833899,
"file_size": 1157064,
"status": "success",
"metrics": [
{
"step": 250,
"valid accuracy": 0.0784313725490196,
"train loss": 1.1336498007774354,
"train samples": 1000
},
[...]
{
"step": 5000,
"valid accuracy": 0.21568627450980393,
"train loss": 0.6345920492410659,
"train samples": 20000
},
{
"step": 5000,
"test accuracy": 0.35129740518962077,
"train loss": 0.6345920492410659,
"train samples": 20000,
"train total tokens": 4197579
}
]
},
"meta_info": {
"model_sha": "13afe5124825b4f3751f836b40dafda64c1ed062",
"model_created_at": "2024-09-18T15:23:48+00:00",
"dataset_sha": "aa4f34d3d2d3231299b5b03d9b3e5a20da45aa18",
"dataset_created_at": "2023-09-21T17:22:46+00:00",
"package_info": {
"transformers-version": "4.50.0.dev0",
"transformers-commit-hash": "752ef3fd4e70869626ec70657a770a85c0ad9219",
"peft-version": "0.14.1.dev0",
"peft-commit-hash": "a447a4e5ecd87b7d57733f4df9616a328cf130f4",
"datasets-version": "3.3.2",
"datasets-commit-hash": null,
"bitsandbytes-version": "0.45.2",
"bitsandbytes-commit-hash": null,
"torch-version": "2.6.0+cu124",
"torch-commit-hash": null
},
"system_info": {
"system": "Linux",
"release": "6.11.0-17-generic",
"version": "#17~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 20 22:48:29 UTC 2",
"machine": "x86_64",
"processor": "x86_64",
"accelerator": "NVIDIA GeForce RTX 4090"
},
"pytorch_info": "PyTorch built with: [...]"
}
}
```
## Dependencies
Apart from the normal PEFT dependencies, ensure that the packages in the `requirements.txt` are installed, e.g. via:
```sh
python -m pip install -r requirements.txt
```
Python 3.12+ is required.
## Open tasks
- consider using `DataLoader`
- consider adding https://github.com/huggingface/Math-Verify
- consider adding `weight` argument to cross entropy calculation to downweight the EOS token, but it would require calculating the loss manually instead of relying on transformers (see https://github.com/huggingface/transformers/blob/6a876462c308bd7cd7d3ca8e93abaa7d5b02e90e/src/transformers/loss/loss_utils.py#L24-L48)
- do a sanity check against/comparison with transformers Trainer
- consider using vLLM to potentially speed up generations, at least for the test set
- AMP does not appear to help, investigate
- packing of sequences (but this probably requires adjusting the attention matrix)
- clean up what gets printed and where (stdout, stderr)
+117
View File
@@ -0,0 +1,117 @@
# Copyright 2025-present the HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
All utilities related to data handling.
"""
from collections.abc import Callable
from functools import partial
import datasets
import numpy as np
from datasets import Dataset, load_dataset
# with a token limit of 768 for query + response, we have to exclude all texts with length > 1304; this leaves 93.8% of
# the dataset
CHAR_LIMIT = 1300
# train/valid/test split -- note that evaluation takes quite long, so don't choose too large sizes for the valid set,
# since it's run multiple times during training; test is only run once at the end and thus can be larger
VALID_SIZE = 50
def get_filtered_dataset(*, ds: datasets.Dataset, print_fn: Callable[..., None]) -> Dataset:
"""Return the filtered dataset, with long queries removed.
We determined that 99% of queries have 529 or fewer characters. Characters roughly correspond to tokens, so this is
a good proxy. We cannot use tokens directly, as that depends on the tokenizer, which can be different for each
model, but we want the same filter for each model.
"""
char_lengths = [len(f"{q} {r}") for q, r in zip(ds["query"], ds["response"])]
idx_filtered = [i for i, length in enumerate(char_lengths) if length <= CHAR_LIMIT]
print_fn(f"Filtered dataset: {100 * len(idx_filtered) / len(ds):.1f}% of the original dataset")
return ds.select(idx_filtered)
def get_train_valid_test_datasets(
*, tokenizer, query_template: str, print_fn: Callable[..., None]
) -> tuple[Dataset, Dataset, Dataset]:
"""
Return the indices of the train, valid, and test splits of the dataset.
We cannot use ds.train_test_split(..., stratify_by_column="type") as it gives:
> ValueError: Stratifying by column is only supported for ClassLabel column, and column type is Value.
even after calling ds_filtered.class_encode_column("type"). Thus, using sklearn's StratifiedKFold instead.
"""
metamath = load_dataset("meta-math/MetaMathQA")["train"]
metamath = get_filtered_dataset(ds=metamath, print_fn=print_fn)
# gsmk8k does not need to be filtered as query and response are short enough
gsm8k = load_dataset("openai/gsm8k", "main")
gsm8k = gsm8k.rename_columns({"question": "query", "answer": "response"})
gsm8k_train = gsm8k["train"]
gsm8k_test = gsm8k["test"]
np.random.seed(0)
indices = np.arange(len(gsm8k_train))
np.random.shuffle(indices)
idx_valid = indices[:VALID_SIZE]
ds_train = metamath
ds_valid = gsm8k_train.select(idx_valid)
ds_test = gsm8k_test
print_fn(f"Train size: {len(ds_train)}")
print_fn(f"Valid size: {len(ds_valid)}")
print_fn(f"Test size: {len(ds_test)}")
tokenize_with_answer_ = partial(tokenize_with_answer, tokenizer=tokenizer, template=query_template)
tokenize_wo_answer_ = partial(tokenize_wo_answer, tokenizer=tokenizer, template=query_template)
ds_train = ds_train.map(tokenize_with_answer_, batched=True).remove_columns(["type", "query", "original_question"])
ds_valid = ds_valid.map(tokenize_wo_answer_, batched=True).remove_columns(["query"])
ds_test = ds_test.map(tokenize_wo_answer_, batched=True).remove_columns(["query"])
return ds_train, ds_valid, ds_test
def tokenize_with_answer(samples, tokenizer, template):
queries = [template.format(query=sample) + answer for sample, answer in zip(samples["query"], samples["response"])]
tokenized = tokenizer(queries)
tokenized["input_ids"] = [input_ids[: tokenizer.model_max_length] for input_ids in tokenized["input_ids"]]
tokenized["attention_mask"] = [
input_ids[: tokenizer.model_max_length] for input_ids in tokenized["attention_mask"]
]
return tokenized
def tokenize_wo_answer(samples, tokenizer, template):
queries = [template.format(query=sample) for sample in samples["query"]]
tokenized = tokenizer(queries)
tokenized["input_ids"] = [input_ids[: tokenizer.model_max_length] for input_ids in tokenized["input_ids"]]
tokenized["attention_mask"] = [
input_ids[: tokenizer.model_max_length] for input_ids in tokenized["attention_mask"]
]
return tokenized
def get_wiki_small(num_samples: int = 100) -> list[str]:
# This way of loading the dataset avoid having to download whole shards
ds = load_dataset("HuggingFaceFW/finewiki", split="train", streaming=True)
dataset_head = ds.take(num_samples)
rows = [row["text"] for row in dataset_head]
return rows
@@ -0,0 +1,28 @@
{
"model_id": "meta-llama/Llama-3.2-3B",
"dtype": "bfloat16",
"max_seq_length": 768,
"batch_size": 4,
"batch_size_eval": 50,
"max_steps": 5000,
"eval_steps": 250,
"compile": false,
"use_gc": false,
"seed": 0,
"grad_norm_clip": 1.0,
"optimizer_type": "AdamW",
"optimizer_kwargs": {
"lr": 1e-4,
"weight_decay": 0.1
},
"lr_scheduler": "cosine",
"use_amp": false,
"autocast_adapter_dtype": true,
"attn_implementation": null,
"generation_kwargs": {
"max_length": 800,
"max_new_tokens": 300
},
"query_template": "Question: {query} Think step by step.\nAnswer:",
"init_kv_cache_prefix": null
}
@@ -0,0 +1,39 @@
{
"alpha_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"beta1": 0.85,
"beta2": 0.85,
"bias": "none",
"corda_config": null,
"deltaT": 1,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_lora_weights": true,
"init_r": 64,
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 8,
"lora_bias": false,
"lora_dropout": 0.0,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": null,
"orth_reg_weight": 0.5,
"peft_type": "ADALORA",
"r": 8,
"rank_pattern": null,
"revision": null,
"target_modules": null,
"target_r": 32,
"task_type": null,
"tfinal": 500,
"tinit": 200,
"total_step": 5000,
"use_dora": false,
"use_rslora": false
}
@@ -0,0 +1,10 @@
{
"peft_type": "ADAMSS",
"r": 100,
"num_subspaces": 32,
"subspace_rank": 1,
"target_modules": null,
"init_weights": "orthogonal",
"use_asa": false,
"task_type": "CAUSAL_LM"
}
@@ -0,0 +1,10 @@
{
"model_id": "meta-llama/Llama-3.2-3B",
"max_steps": 5000,
"batch_size": 4,
"eval_steps": 250,
"optimizer_kwargs": {
"lr": 1e-4,
"weight_decay": 0.1
}
}
@@ -0,0 +1,11 @@
{
"adapter_layers": 28,
"adapter_len": 100,
"auto_mapping": null,
"base_model_name_or_path": null,
"inference_mode": false,
"peft_type": "ADAPTION_PROMPT",
"revision": null,
"target_modules": null,
"task_type": "CAUSAL_LM"
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 5e-4
}
}
@@ -0,0 +1,12 @@
{
"adapter_layers": 28,
"adapter_len": 100,
"auto_mapping": null,
"base_model_name_or_path": null,
"inference_mode": false,
"peft_type": "ADAPTION_PROMPT",
"peft_version": "0.19.2.dev0@UNKNOWN",
"revision": null,
"target_modules": null,
"task_type": null
}
@@ -0,0 +1,23 @@
{
"model_id": "meta-llama/Llama-3.2-3B",
"dtype": "bfloat16",
"max_seq_length": 512,
"batch_size": 4,
"batch_size_eval": 64,
"max_steps": 3000,
"eval_steps": 500,
"compile": false,
"use_gc": true,
"use_amp": false,
"grad_norm_clip": 1.0,
"optimizer_type": "AdamW",
"optimizer_kwargs": {
"lr": 0.005,
"weight_decay": 0.1
},
"lr_scheduler": "cosine",
"generation_kwargs": {
"max_new_tokens": 256
},
"query_template": "Question: {query} Think step by step.\nAnswer:"
}
@@ -0,0 +1,14 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"inference_mode": false,
"init_weights": true,
"modules_to_save": null,
"peft_type": "BEFT",
"peft_version": "0.19.2.dev0@UNKNOWN",
"revision": null,
"target_modules": [
"v_proj"
],
"task_type": null
}
@@ -0,0 +1,20 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"boft_block_num": 0,
"boft_block_size": 4,
"boft_dropout": 0.0,
"boft_n_butterfly_factor": 1,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "BOFT",
"revision": null,
"target_modules": null,
"task_type": null
}
@@ -0,0 +1,21 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": false,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"block_size": 64,
"block_size_pattern": {},
"peft_type": "C3A",
"revision": null,
"target_modules": [
"v_proj",
"q_proj"
],
"task_type": null
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 3e-1,
"weight_decay": 1e-5
}
}
@@ -0,0 +1,23 @@
{
"alpha": null,
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"decomposition_method": "qr",
"deft_dropout": 0.0,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_scale": 1.0,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"para": true,
"peft_type": "DEFT",
"peft_version": "0.19.2.dev0@UNKNOWN",
"r": 32,
"revision": null,
"target_modules": null,
"task_type": "CAUSAL_LM"
}
@@ -0,0 +1,23 @@
{
"alpha": 128,
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"decomposition_method": "relu",
"deft_dropout": 0.0,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_scale": 1.0,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"para": false,
"peft_type": "DEFT",
"peft_version": "0.19.2.dev0@UNKNOWN",
"r": 32,
"revision": null,
"target_modules": null,
"task_type": "CAUSAL_LM"
}
@@ -0,0 +1,20 @@
{
"lambda_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"exclude_modules": null,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"delora_lambda": 15,
"module_dropout": 0.0,
"modules_to_save": null,
"peft_type": "DELORA",
"r": 32,
"rank_pattern": {},
"revision": null,
"target_modules": null,
"task_type": "CAUSAL_LM"
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 1e-3
}
}
@@ -0,0 +1,23 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": false,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"n_frequency": 1000,
"n_frequency_pattern": {},
"peft_type": "FOURIERFT",
"random_loc_seed": 777,
"revision": null,
"scaling": 300,
"target_modules": [
"v_proj",
"q_proj"
],
"task_type": null
}
@@ -0,0 +1,23 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": false,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"n_frequency": 5000,
"n_frequency_pattern": {},
"peft_type": "FOURIERFT",
"random_loc_seed": 777,
"revision": null,
"scaling": 300,
"target_modules": [
"v_proj",
"q_proj"
],
"task_type": null
}
@@ -0,0 +1,21 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"fan_in_fan_out": false,
"frod_dropout": 0.0,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "FROD",
"projection_prng_key": 0,
"regularization_alpha": 0.001,
"revision": null,
"runtime_offload_base_weight": true,
"save_projection": true,
"sparse_rate": 0.01,
"target_modules": null,
"task_type": "CAUSAL_LM"
}
@@ -0,0 +1,21 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"fan_in_fan_out": false,
"frod_dropout": 0.0,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "FROD",
"projection_prng_key": 0,
"regularization_alpha": 0.001,
"revision": null,
"runtime_offload_base_weight": true,
"save_projection": true,
"sparse_rate": 0.02,
"target_modules": null,
"task_type": "CAUSAL_LM"
}
@@ -0,0 +1,5 @@
{
"optimizer_kwargs": {
"lr": 1e-3
}
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 1e-5
}
}
@@ -0,0 +1,18 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"config_A_B": "lora",
"config_C": "lora",
"config_D_E": "constant",
"inference_mode": false,
"init_weights": true,
"modules_to_save": null,
"peft_type": "GLORA",
"r": 8,
"target_modules": [
"q_proj",
"v_proj"
],
"task_type": "CAUSAL_LM"
}
@@ -0,0 +1,18 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"config_A_B": "vector",
"config_C": "vector",
"config_D_E": "constant",
"inference_mode": false,
"init_weights": true,
"modules_to_save": null,
"peft_type": "GLORA",
"r": 8,
"target_modules": [
"q_proj",
"v_proj"
],
"task_type": "CAUSAL_LM"
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 5e-4,
"weight_decay": 0.0
}
}
@@ -0,0 +1,21 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"fan_in_fan_out": false,
"alpha": 64,
"gralora_dropout": 0.0,
"gralora_k": 2,
"hybrid_r": 0,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "GRALORA",
"peft_version": "0.17.2.dev0@UNKNOWN",
"r": 32,
"revision": null,
"target_modules": null,
"task_type": null
}
@@ -0,0 +1,5 @@
{
"optimizer_kwargs": {
"lr": 2e-4
}
}
@@ -0,0 +1,20 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"hira_dropout": 0.0,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "HIRA",
"r": 32,
"rank_pattern": {},
"target_modules": [
"q_proj",
"v_proj"
],
"task_type": "CAUSAL_LM"
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 4.5e-3,
"weight_decay": 0.0
}
}
@@ -0,0 +1,14 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"feedforward_modules": ["down_proj", "gate_proj", "up_proj"],
"inference_mode": false,
"init_ia3_weights": true,
"modules_to_save": null,
"peft_type": "IA3",
"revision": null,
"target_modules": ["q_proj", "k_proj", "v_proj", "o_proj", "down_proj", "gate_proj", "up_proj"],
"task_type": null
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 5e-3,
"weight_decay": 0.0
}
}
@@ -0,0 +1,14 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"feedforward_modules": null,
"inference_mode": false,
"init_ia3_weights": true,
"modules_to_save": null,
"peft_type": "IA3",
"revision": null,
"target_modules": null,
"task_type": null
}
@@ -0,0 +1,14 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"feedforward_modules": null,
"inference_mode": false,
"init_ia3_weights": true,
"modules_to_save": null,
"peft_type": "IA3",
"revision": null,
"target_modules": null,
"task_type": null
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 1e-3
}
}
@@ -0,0 +1,19 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"exclude_modules": null,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"num_B": 2,
"peft_type": "LILY",
"peft_version": "0.18.2.dev0@UNKNOWN",
"r": 140,
"revision": null,
"scaling": 8.0,
"stride_A": 14,
"target_modules": ["gate_proj", "up_proj", "down_proj"],
"task_type": null
}
@@ -0,0 +1,22 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"exclude_modules": null,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"num_B": 2,
"peft_type": "LILY",
"peft_version": "0.18.2.dev0@UNKNOWN",
"r": 896,
"revision": null,
"scaling": 2.0,
"stride_A": 14,
"target_modules": [
"q_proj",
"v_proj"
],
"task_type": null
}
@@ -0,0 +1,11 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"exclude_modules": null,
"inference_mode": false,
"modules_to_save": null,
"peft_type": "LN_TUNING",
"revision": null,
"target_modules": null,
"task_type": null
}
@@ -0,0 +1,24 @@
{
"alpha": 64,
"alpha_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"exclude_modules": null,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"module_dropout": 0.0,
"modules_to_save": null,
"peft_type": "LOHA",
"r": 32,
"rank_dropout": 0.0,
"rank_pattern": {},
"revision": null,
"target_modules": [
"q_proj",
"v_proj"
],
"task_type": null,
"use_effective_conv2d": false
}
@@ -0,0 +1,27 @@
{
"alpha": 64,
"alpha_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"decompose_both": false,
"decompose_factor": -1,
"exclude_modules": null,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"module_dropout": 0.0,
"modules_to_save": null,
"peft_type": "LOKR",
"r": 32,
"rank_dropout": 0.0,
"rank_dropout_scale": false,
"rank_pattern": {},
"revision": null,
"target_modules": [
"q_proj",
"v_proj"
],
"task_type": null,
"use_effective_conv2d": false
}
@@ -0,0 +1,30 @@
{
"alpha_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"corda_config": null,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_lora_weights": true,
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 20,
"lora_bias": false,
"lora_dropout": 0.0,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": null,
"peft_type": "LORA",
"r": 10,
"rank_pattern": {},
"revision": null,
"target_modules": ["gate_proj", "up_proj", "down_proj"],
"task_type": "CAUSAL_LM",
"use_dora": false,
"use_rslora": false
}
@@ -0,0 +1,48 @@
{
"alpha_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"corda_config": null,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_lora_weights": true,
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 28,
"lora_bias": false,
"lora_dropout": 0.0,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": null,
"peft_type": "LORA",
"r": 14,
"rank_pattern": {},
"revision": null,
"target_modules": [
"gate_proj",
"up_proj",
"down_proj"
],
"task_type": "CAUSAL_LM",
"use_dora": false,
"use_rslora": false,
"use_bdlora": {
"target_modules_bd_a": [
"o_proj",
"down_proj"
],
"target_modules_bd_b": [
"q_proj",
"v_proj",
"k_proj",
"up_proj",
"gate_proj"
],
"nblocks": 2
}
}
@@ -0,0 +1,30 @@
{
"alpha_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"corda_config": null,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_lora_weights": true,
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 64,
"lora_bias": false,
"lora_dropout": 0.0,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": null,
"peft_type": "LORA",
"r": 32,
"rank_pattern": {},
"revision": null,
"target_modules": null,
"task_type": "CAUSAL_LM",
"use_dora": true,
"use_rslora": false
}
@@ -0,0 +1,30 @@
{
"alpha_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"corda_config": null,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_lora_weights": true,
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 64,
"lora_bias": false,
"lora_dropout": 0.0,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": null,
"peft_type": "LORA",
"r": 32,
"rank_pattern": {},
"revision": null,
"target_modules": null,
"task_type": "CAUSAL_LM",
"use_dora": false,
"use_rslora": false
}
@@ -0,0 +1,9 @@
{
"optimizer_type": "lora-fa",
"optimizer_kwargs": {
"r": 32,
"lora_alpha": 64,
"lr": 1e-4,
"weight_decay": 0.1
}
}
@@ -0,0 +1,30 @@
{
"alpha_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"corda_config": null,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_lora_weights": "mica",
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 64,
"lora_bias": false,
"lora_dropout": 0.0,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": null,
"peft_type": "LORA",
"r": 32,
"rank_pattern": {},
"revision": null,
"target_modules": null,
"task_type": "CAUSAL_LM",
"use_dora": false,
"use_rslora": false
}
@@ -0,0 +1,30 @@
{
"alpha_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"corda_config": null,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_lora_weights": true,
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 64,
"lora_bias": false,
"lora_dropout": 0.0,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": null,
"peft_type": "LORA",
"r": 32,
"rank_pattern": {},
"revision": null,
"target_modules": null,
"task_type": "CAUSAL_LM",
"use_dora": false,
"use_rslora": false
}
@@ -0,0 +1,30 @@
{
"alpha_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"corda_config": null,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_lora_weights": true,
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 64,
"lora_bias": false,
"lora_dropout": 0.0,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": null,
"peft_type": "LORA",
"r": 64,
"rank_pattern": {},
"revision": null,
"target_modules": null,
"task_type": "CAUSAL_LM",
"use_dora": false,
"use_rslora": true
}
@@ -0,0 +1,30 @@
{
"alpha_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"corda_config": null,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_lora_weights": true,
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 128,
"lora_bias": false,
"lora_dropout": 0.0,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": null,
"peft_type": "LORA",
"r": 64,
"rank_pattern": {},
"revision": null,
"target_modules": null,
"task_type": "CAUSAL_LM",
"use_dora": false,
"use_rslora": false
}
@@ -0,0 +1,18 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"exclude_modules": null,
"inference_mode": false,
"init_weights": "bat",
"layers_pattern": null,
"layers_to_transform": null,
"mini_r": 1,
"miss_dropout": 0.0,
"modules_to_save": null,
"peft_type": "MISS",
"r": 64,
"revision": null,
"target_modules": null,
"task_type": null
}
@@ -0,0 +1,18 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"exclude_modules": null,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"mini_r": 1,
"miss_dropout": 0.0,
"modules_to_save": null,
"peft_type": "MISS",
"r": 64,
"revision": null,
"target_modules": null,
"task_type": null
}
@@ -0,0 +1,18 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"exclude_modules": null,
"inference_mode": false,
"init_weights": "mini",
"layers_pattern": null,
"layers_to_transform": null,
"mini_r": 64,
"miss_dropout": 0.0,
"modules_to_save": null,
"peft_type": "MISS",
"r": 64,
"revision": null,
"target_modules": null,
"task_type": null
}
@@ -0,0 +1,27 @@
{
"alpha_pattern": {},
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"block_share": false,
"coft": false,
"eps": 6e-05,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"module_dropout": 0.0,
"modules_to_save": null,
"oft_block_size": 0,
"peft_type": "OFT",
"r": 32,
"rank_pattern": {},
"revision": null,
"target_modules": [
"q_proj",
"v_proj"
],
"task_type": null
}
@@ -0,0 +1,28 @@
{
"task_type": null,
"peft_type": "OSF",
"auto_mapping": null,
"base_model_name_or_path": "meta-llama/Llama-3.2-3B",
"revision": null,
"inference_mode": false,
"effective_rank": null,
"target_modules": [
"q_proj",
"k_proj",
"v_proj",
"o_proj",
"gate_proj",
"down_proj",
"up_proj"
],
"rank_pattern": {
"q_proj": 2944,
"o_proj": 2944,
"k_proj": 896,
"v_proj": 896,
"gate_proj": 2944,
"down_proj": 2944,
"up_proj": 2944
}
}
@@ -0,0 +1,7 @@
{
"autocast_adapter_dtype": false,
"optimizer_kwargs": {
"lr": 5e-5
}
}
@@ -0,0 +1,22 @@
{
"act_fn": "relu",
"auto_mapping": null,
"base_model_name_or_path": null,
"depth": 0,
"exclude_modules": null,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "PEANUT",
"peft_version": "0.18.2.dev0@UNKNOWN",
"r": 1,
"revision": null,
"scaling": 32.0,
"target_modules": [
"q_proj",
"v_proj"
],
"task_type": null
}
@@ -0,0 +1,22 @@
{
"act_fn": "relu",
"auto_mapping": null,
"base_model_name_or_path": null,
"depth": 0,
"exclude_modules": null,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "PEANUT",
"peft_version": "0.18.2.dev0@UNKNOWN",
"r": 32,
"revision": null,
"scaling": 2.0,
"target_modules": [
"q_proj",
"v_proj"
],
"task_type": null
}
@@ -0,0 +1,15 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"encoder_hidden_size": 3072,
"inference_mode": false,
"num_attention_heads": 24,
"num_layers": 28,
"num_transformer_submodules": 1,
"num_virtual_tokens": 200,
"peft_type": "PREFIX_TUNING",
"prefix_projection": false,
"revision": null,
"task_type": "CAUSAL_LM",
"token_dim": 3072
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 1e-3
}
}
@@ -0,0 +1,16 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"encoder_hidden_size": 3072,
"inference_mode": false,
"num_attention_heads": 24,
"num_layers": 28,
"num_transformer_submodules": 1,
"num_virtual_tokens": 200,
"init_weights": "zero",
"peft_type": "PREFIX_TUNING",
"prefix_projection": false,
"revision": null,
"task_type": "CAUSAL_LM",
"token_dim": 3072
}
@@ -0,0 +1,5 @@
{
"optimizer_kwargs": {
"lr": 0.005
}
}
@@ -0,0 +1,16 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"encoder_hidden_size": 3072,
"inference_mode": false,
"num_attention_heads": 24,
"num_layers": 28,
"num_transformer_submodules": 1,
"num_virtual_tokens": 50,
"init_weights": "zero",
"peft_type": "PREFIX_TUNING",
"prefix_projection": false,
"revision": null,
"task_type": "CAUSAL_LM",
"token_dim": 3072
}
@@ -0,0 +1,6 @@
{
"init_kv_cache_prefix": "You are a helpful math assistant. Solve mathematical problems by thinking step by step. First, identify what the problem is asking. Then, break down the solution into clear logical steps. Show all your work and calculations. Finally, verify that your answer makes sense.",
"optimizer_kwargs": {
"lr": 0.005
}
}
@@ -0,0 +1,17 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"inference_mode": false,
"num_attention_heads": 24,
"num_layers": 28,
"num_transformer_submodules": 1,
"num_virtual_tokens": 200,
"peft_type": "PROMPT_TUNING",
"prompt_tuning_init": "RANDOM",
"prompt_tuning_init_text": null,
"revision": null,
"task_type": "CAUSAL_LM",
"token_dim": 3072,
"tokenizer_kwargs": null,
"tokenizer_name_or_path": null
}
@@ -0,0 +1,17 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"inference_mode": false,
"num_attention_heads": 24,
"num_layers": 28,
"num_transformer_submodules": 1,
"num_virtual_tokens": 200,
"peft_type": "PROMPT_TUNING",
"prompt_tuning_init": "RANDOM",
"prompt_tuning_init_text": null,
"revision": null,
"task_type": "CAUSAL_LM",
"token_dim": 3072,
"tokenizer_kwargs": null,
"tokenizer_name_or_path": null
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 1e-3
}
}
@@ -0,0 +1,17 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"inference_mode": false,
"num_attention_heads": 24,
"num_layers": 28,
"num_transformer_submodules": 1,
"num_virtual_tokens": 200,
"peft_type": "PROMPT_TUNING",
"prompt_tuning_init": "SAMPLE_VOCAB",
"prompt_tuning_init_text": null,
"revision": null,
"task_type": "CAUSAL_LM",
"token_dim": 3072,
"tokenizer_kwargs": null,
"tokenizer_name_or_path": null
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 1e-3
}
}
@@ -0,0 +1,26 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"r": 256,
"psoft_alpha": 256,
"psoft_dropout": 0.0,
"exclude_modules": null,
"fan_in_fan_out": false,
"ab_svd_init": "psoft_init",
"psoft_svd": "full",
"psoft_svd_lowrank_niter": 10,
"psoft_orth": true,
"psoft_mag_a": true,
"psoft_mag_b": true,
"use_cayley_neumann": false,
"num_cayley_neumann_terms": 5,
"cayley_neumann_eps": null,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "PSOFT",
"revision": null,
"target_modules": null,
"task_type": null
}
@@ -0,0 +1,26 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"r": 256,
"psoft_alpha": 256,
"psoft_dropout": 0.0,
"exclude_modules": null,
"fan_in_fan_out": false,
"ab_svd_init": "psoft_init",
"psoft_svd": "lowrank",
"psoft_svd_lowrank_niter": 10,
"psoft_orth": true,
"psoft_mag_a": true,
"psoft_mag_b": true,
"use_cayley_neumann": true,
"num_cayley_neumann_terms": 5,
"cayley_neumann_eps": null,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "PSOFT",
"revision": null,
"target_modules": null,
"task_type": null
}
@@ -0,0 +1,17 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"encoder_dropout": 0.0,
"encoder_hidden_size": 3072,
"encoder_num_layers": 2,
"encoder_reparameterization_type": "MLP",
"inference_mode": false,
"num_attention_heads": 24,
"num_layers": 28,
"num_transformer_submodules": 1,
"num_virtual_tokens": 20,
"peft_type": "P_TUNING",
"revision": null,
"task_type": "CAUSAL_LM",
"token_dim": 3072
}
@@ -0,0 +1,20 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"d_initial": 0.1,
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "PVERA",
"projection_prng_key": 0,
"r": 256,
"revision": null,
"save_projection": true,
"target_modules": null,
"task_type": null,
"pvera_dropout": 0.0
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 3e-3
}
}
@@ -0,0 +1,20 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"d_initial": 0.1,
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "PVERA",
"projection_prng_key": 0,
"r": 64,
"revision": null,
"save_projection": true,
"target_modules": null,
"task_type": null,
"pvera_dropout": 0.0
}
@@ -0,0 +1,5 @@
{
"optimizer_kwargs": {
"lr": 3e-3
}
}
@@ -0,0 +1,22 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "RANDLORA",
"projection_prng_key": 0,
"r": 32,
"randlora_alpha": 640,
"randlora_dropout": 0.0,
"revision": null,
"save_projection": true,
"sparse": false,
"target_modules": null,
"task_type": null,
"very_sparse": false
}
@@ -0,0 +1,12 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"group_size": 64,
"inference_mode": false,
"init_weights": true,
"peft_type": "ROAD",
"revision": null,
"target_modules": null,
"task_type": null,
"variant": "road_2"
}
@@ -0,0 +1,5 @@
{
"optimizer_kwargs": {
"lr": 1e-3
}
}
@@ -0,0 +1,15 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": true,
"mask_type": "random",
"modules_to_save": null,
"peft_type": "SHIRA",
"r": 32,
"random_seed": 42,
"revision": null,
"target_modules": null,
"task_type": null
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 3e-4
}
}
@@ -0,0 +1,21 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "TINYLORA",
"projection_seed": 42,
"r": 2,
"revision": null,
"save_projection": true,
"target_modules": null,
"task_type": null,
"tinylora_dropout": 0.0,
"u": 64,
"weight_tying": 0.0
}
@@ -0,0 +1,5 @@
{
"optimizer_kwargs": {
"lr": 1e-3
}
}
@@ -0,0 +1,21 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "TINYLORA",
"projection_seed": 42,
"r": 2,
"revision": null,
"save_projection": true,
"target_modules": null,
"task_type": null,
"tinylora_dropout": 0.0,
"u": 64,
"weight_tying": 1.0
}
@@ -0,0 +1,5 @@
{
"optimizer_kwargs": {
"lr": 1e-3
}
}
@@ -0,0 +1,7 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"peft_type": "TRAINABLE_TOKENS",
"token_indices": [128000, 128001],
"task_type": "CAUSAL_LM"
}
@@ -0,0 +1,5 @@
{
"optimizer_kwargs": {
"lr": 0.2
}
}
@@ -0,0 +1,24 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_theta_d_bound": 0.02,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "UNILORA",
"proj_seed": 42,
"r": 32,
"revision": null,
"target_modules": [
"q_proj",
"v_proj"
],
"task_type": "CAUSAL_LM",
"theta_d_length": 256,
"unilora_dropout": 0.0
}
@@ -0,0 +1,26 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_logits_std": 0.1,
"init_vector_bank_bound": 0.02,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"num_vectors": 256,
"peft_type": "VBLORA",
"r": 4,
"revision": null,
"save_only_topk_weights": false,
"target_modules": [
"v_proj",
"q_proj"
],
"task_type": null,
"topk": 2,
"vblora_dropout": 0.0,
"vector_length": 256
}
@@ -0,0 +1,20 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"d_initial": 0.1,
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"peft_type": "VERA",
"projection_prng_key": 0,
"r": 256,
"revision": null,
"save_projection": true,
"target_modules": null,
"task_type": null,
"vera_dropout": 0.0
}
@@ -0,0 +1,6 @@
{
"optimizer_kwargs": {
"lr": 1e-3
}
}
@@ -0,0 +1,26 @@
{
"auto_mapping": null,
"base_model_name_or_path": null,
"bias": "none",
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": false,
"init_weights": true,
"layers_pattern": null,
"layers_to_transform": null,
"modules_to_save": null,
"n_frequency": 5000,
"n_frequency_pattern": {},
"peft_type": "WAVEFT",
"proportional_parameters": false,
"random_loc_seed": 777,
"revision": null,
"scaling": 25.0,
"target_modules": [
"q_proj",
"v_proj"
],
"task_type": "CAUSAL_LM",
"use_idwt": true,
"wavelet_family": "db1"
}
@@ -0,0 +1,4 @@
bitsandbytes
datasets
numpy
tqdm
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,363 @@
{
"run_info": {
"created_at": "2026-04-14T13:52:52+00:00",
"total_time": 5544.705792816996,
"experiment_name": "adamss/llama-3.2-3B-rank32",
"peft_branch": "main",
"train_config": {
"model_id": "meta-llama/Llama-3.2-3B",
"dtype": "bfloat16",
"max_seq_length": 768,
"batch_size": 4,
"batch_size_eval": 50,
"max_steps": 5000,
"eval_steps": 250,
"compile": false,
"query_template": "Question: {query} Think step by step.\nAnswer:",
"seed": 0,
"grad_norm_clip": 1.0,
"optimizer_type": "AdamW",
"optimizer_kwargs": {
"lr": 0.0001,
"weight_decay": 0.1
},
"lr_scheduler": "cosine",
"use_amp": false,
"autocast_adapter_dtype": true,
"generation_kwargs": {
"max_length": 800,
"max_new_tokens": 300
},
"attn_implementation": null,
"init_kv_cache_prefix": null
},
"peft_config": {
"task_type": "CAUSAL_LM",
"peft_type": "ADAMSS",
"auto_mapping": null,
"peft_version": "0.19.0",
"base_model_name_or_path": "meta-llama/Llama-3.2-3B",
"revision": null,
"inference_mode": false,
"r": 100,
"num_subspaces": 32,
"subspace_rank": 1,
"target_modules": [
"q_proj",
"v_proj"
],
"init_weights": "orthogonal",
"modules_to_save": null,
"layers_to_transform": null,
"layers_pattern": null,
"use_asa": false,
"asa_target_subspaces": 50,
"init_warmup": 50,
"final_warmup": 1000,
"mask_interval": 100,
"asa_importance_beta": 0.85,
"asa_uncertainty_beta": 0.85,
"asa_schedule_exponent": 3.0,
"use_dynamic_rank": false,
"svd_threshold": 0.1
},
"error_msg": ""
},
"train_info": {
"accelerator_memory_reserved_avg": 13458967049,
"accelerator_memory_max": 20323500032,
"accelerator_memory_reserved_99th": 18486394880,
"train_time": 4596.08915475203,
"file_size": 70459192,
"num_trainable_params": 293888,
"num_total_params": 3213043712,
"status": "success",
"metrics": [
{
"step": 250,
"valid accuracy": 0.0,
"train loss": 1.3170231812000275,
"train samples": 1000,
"train time": 164.87659186910605,
"eval time": 45.593037275990355,
"tokens / sec": 1284.1058733678926,
"mem allocated avg": 6859081226.24,
"mem reserved avg": 13558565830.656,
"elapsed time": 295.8943835730024
},
{
"step": 500,
"valid accuracy": 0.0,
"train loss": 1.1954840586185456,
"train samples": 2000,
"train time": 166.43435910790868,
"eval time": 44.427490632995614,
"tokens / sec": 1249.7119051309908,
"mem allocated avg": 6852174585.856,
"mem reserved avg": 13240302043.136,
"elapsed time": 509.59304542800237
},
{
"step": 750,
"valid accuracy": 0.24,
"train loss": 0.9188390662670135,
"train samples": 3000,
"train time": 165.89597663206223,
"eval time": 45.04990096799156,
"tokens / sec": 1292.3821562925316,
"mem allocated avg": 6861978892.288,
"mem reserved avg": 13438810062.848,
"elapsed time": 723.2884168320015
},
{
"step": 1000,
"valid accuracy": 0.28,
"train loss": 0.8316707408428192,
"train samples": 4000,
"train time": 165.8942028221063,
"eval time": 44.705238544993335,
"tokens / sec": 1255.8365298840815,
"mem allocated avg": 6853364180.992,
"mem reserved avg": 13442173894.656,
"elapsed time": 936.7426501810114
},
{
"step": 1250,
"valid accuracy": 0.34,
"train loss": 0.8031793196201324,
"train samples": 5000,
"train time": 166.34746922992053,
"eval time": 45.23661799800175,
"tokens / sec": 1253.628930848145,
"mem allocated avg": 6853527777.28,
"mem reserved avg": 13494325870.592,
"elapsed time": 1151.1076066460082
},
{
"step": 1500,
"valid accuracy": 0.36,
"train loss": 0.7772162261009217,
"train samples": 6000,
"train time": 167.20215503200598,
"eval time": 45.08574113200302,
"tokens / sec": 1251.9635285796985,
"mem allocated avg": 6855708528.64,
"mem reserved avg": 13412318838.784,
"elapsed time": 1366.2412558400101
},
{
"step": 1750,
"valid accuracy": 0.32,
"train loss": 0.7615521411895751,
"train samples": 7000,
"train time": 167.64521759089257,
"eval time": 45.147190629999386,
"tokens / sec": 1248.797925813145,
"mem allocated avg": 6856783118.336,
"mem reserved avg": 13761318486.016,
"elapsed time": 1581.863356398011
},
{
"step": 2000,
"valid accuracy": 0.26,
"train loss": 0.7539848216772079,
"train samples": 8000,
"train time": 166.568618839985,
"eval time": 44.94827433799219,
"tokens / sec": 1246.9095406231604,
"mem allocated avg": 6852422844.416,
"mem reserved avg": 13454152826.88,
"elapsed time": 1796.2559075200115
},
{
"step": 2250,
"valid accuracy": 0.38,
"train loss": 0.7444141312837601,
"train samples": 9000,
"train time": 166.63916836991848,
"eval time": 45.11883862000832,
"tokens / sec": 1289.9008204532192,
"mem allocated avg": 6863277742.08,
"mem reserved avg": 13692187967.488,
"elapsed time": 2010.7747859730007
},
{
"step": 2500,
"valid accuracy": 0.34,
"train loss": 0.7402979242801666,
"train samples": 10000,
"train time": 167.3797131489846,
"eval time": 44.99307104799664,
"tokens / sec": 1230.53741773753,
"mem allocated avg": 6850039672.832,
"mem reserved avg": 13260275318.784,
"elapsed time": 2225.957470817011
},
{
"step": 2750,
"valid accuracy": 0.3,
"train loss": 0.733423663854599,
"train samples": 11000,
"train time": 166.81764313385065,
"eval time": 45.51151215299615,
"tokens / sec": 1270.1354366335913,
"mem allocated avg": 6859437490.176,
"mem reserved avg": 13584763453.44,
"elapsed time": 2441.0304056930036
},
{
"step": 3000,
"valid accuracy": 0.34,
"train loss": 0.7258533200025559,
"train samples": 12000,
"train time": 166.40352799696848,
"eval time": 45.112399252000614,
"tokens / sec": 1254.3664338883648,
"mem allocated avg": 6855105021.952,
"mem reserved avg": 13508292902.912,
"elapsed time": 2655.413832613005
},
{
"step": 3250,
"valid accuracy": 0.28,
"train loss": 0.7344502800703049,
"train samples": 13000,
"train time": 167.75549283101282,
"eval time": 44.94758386199828,
"tokens / sec": 1257.1928134266784,
"mem allocated avg": 6858180347.904,
"mem reserved avg": 13389225000.96,
"elapsed time": 2870.820019774008
},
{
"step": 3500,
"valid accuracy": 0.38,
"train loss": 0.7221226370334626,
"train samples": 14000,
"train time": 166.08321435720427,
"eval time": 45.384310558001744,
"tokens / sec": 1262.921125483995,
"mem allocated avg": 6854977140.736,
"mem reserved avg": 13403082981.376,
"elapsed time": 3085.1512631299993
},
{
"step": 3750,
"valid accuracy": 0.36,
"train loss": 0.717872628569603,
"train samples": 15000,
"train time": 167.00246237695683,
"eval time": 45.29121434899571,
"tokens / sec": 1297.6036216212158,
"mem allocated avg": 6866502846.464,
"mem reserved avg": 13721313214.464,
"elapsed time": 3300.268306899001
},
{
"step": 4000,
"valid accuracy": 0.36,
"train loss": 0.7365663632154464,
"train samples": 16000,
"train time": 167.08000112406444,
"eval time": 45.17965000300319,
"tokens / sec": 1223.2044447273126,
"mem allocated avg": 6847144562.688,
"mem reserved avg": 13416219541.504,
"elapsed time": 3515.3813499660027
},
{
"step": 4250,
"valid accuracy": 0.44,
"train loss": 0.7155313398838044,
"train samples": 17000,
"train time": 167.22311856393935,
"eval time": 34.083910091008875,
"tokens / sec": 1264.1134899010594,
"mem allocated avg": 6859216920.576,
"mem reserved avg": 13421261094.912,
"elapsed time": 3719.3419795750087
},
{
"step": 4500,
"valid accuracy": 0.28,
"train loss": 0.7270838797092438,
"train samples": 18000,
"train time": 167.84598211097182,
"eval time": 45.66838745299901,
"tokens / sec": 1238.1470046902914,
"mem allocated avg": 6853195386.88,
"mem reserved avg": 13379812982.784,
"elapsed time": 3935.711468303998
},
{
"step": 4750,
"valid accuracy": 0.38,
"train loss": 0.7194143581390381,
"train samples": 19000,
"train time": 167.38743777899072,
"eval time": 45.20093128300505,
"tokens / sec": 1254.2100099363015,
"mem allocated avg": 6855967637.504,
"mem reserved avg": 13455318843.392,
"elapsed time": 4151.067342627008
},
{
"step": 5000,
"valid accuracy": 0.38,
"train loss": 0.7252694470882416,
"train samples": 20000,
"train time": 167.5015109970991,
"eval time": 44.824427195999306,
"tokens / sec": 1243.4514695429054,
"mem allocated avg": 6852545486.848,
"mem reserved avg": 13145619824.64,
"elapsed time": 4366.147349254999
},
{
"step": 5000,
"test accuracy": 0.3366186504927976,
"train loss": 0.7252694470882416,
"train samples": 20000,
"train total tokens": 4198051,
"forgetting": 0.1917562484741211
}
]
},
"meta_info": {
"model_info": {
"sha": "13afe5124825b4f3751f836b40dafda64c1ed062",
"created_at": "2024-09-18T15:23:48+00:00"
},
"dataset_info": {
"metamath": {
"sha": "aa4f34d3d2d3231299b5b03d9b3e5a20da45aa18",
"created_at": "2023-09-21T17:22:46+00:00"
},
"gsm8k": {
"sha": "740312add88f781978c0658806c59bc2815b9866",
"created_at": "2022-04-12T10:22:10+00:00"
}
},
"package_info": {
"transformers-version": "5.5.4",
"transformers-commit-hash": null,
"peft-version": "0.19.0",
"peft-commit-hash": "6d5a6f4f2f902dbf13d21d2661d57c3c05df1dae",
"datasets-version": "4.2.0",
"datasets-commit-hash": null,
"bitsandbytes-version": "0.46.0",
"bitsandbytes-commit-hash": null,
"torch-version": "2.9.0+cu128",
"torch-commit-hash": null
},
"system_info": {
"system": "Linux",
"release": "6.17.0-1009-aws",
"version": "#9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026",
"machine": "x86_64",
"processor": "x86_64",
"accelerator": "NVIDIA L40S"
},
"pytorch_info": "PyTorch built with:\n - GCC 13.3\n - C++ Version: 201703\n - Intel(R) oneAPI Math Kernel Library Version 2024.2-Product Build 20240605 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v3.7.1 (Git Hash 8d263e693366ef8db40acc569cc7d8edf644556d)\n - OpenMP 201511 (a.k.a. OpenMP 4.5)\n - LAPACK is enabled (usually provided by MKL)\n - NNPACK is enabled\n - CPU capability usage: AVX2\n - CUDA Runtime 12.8\n - NVCC architecture flags: -gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_90,code=sm_90;-gencode;arch=compute_100,code=sm_100;-gencode;arch=compute_120,code=sm_120\n - CuDNN 90.7.1\n - Built with CuDNN 90.8\n - Magma 2.6.1\n - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, COMMIT_SHA=0fabc3ba44823f257e70ce397d989c8de5e362c1, CUDA_VERSION=12.8, CUDNN_VERSION=9.8.0, CXX_COMPILER=/opt/rh/gcc-toolset-13/root/usr/bin/c++, CXX_FLAGS= -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_FBGEMM -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -DC10_NODEPRECATED -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=range-loop-construct -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-unknown-pragmas -Wno-unused-parameter -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=old-style-cast -faligned-new -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-dangling-reference -Wno-error=dangling-reference -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, TORCH_VERSION=2.9.0, USE_CUDA=ON, USE_CUDNN=ON, USE_CUSPARSELT=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_GLOO=ON, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=1, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF, USE_XCCL=OFF, USE_XPU=OFF, \n"
}
}
@@ -0,0 +1,343 @@
{
"run_info": {
"created_at": "2026-01-09T17:25:16+00:00",
"total_time": 1466.8854283409892,
"experiment_name": "adaptionprompt/llama-3.2-3B-lr_0.0005",
"peft_branch": "main",
"train_config": {
"model_id": "meta-llama/Llama-3.2-3B",
"dtype": "bfloat16",
"max_seq_length": 768,
"batch_size": 4,
"batch_size_eval": 50,
"max_steps": 5000,
"eval_steps": 250,
"compile": false,
"query_template": "Question: {query} Think step by step.\nAnswer:",
"seed": 0,
"grad_norm_clip": 1.0,
"optimizer_type": "AdamW",
"optimizer_kwargs": {
"lr": 0.0005
},
"lr_scheduler": "cosine",
"use_amp": false,
"autocast_adapter_dtype": true,
"generation_kwargs": {
"max_length": 800,
"max_new_tokens": 300
},
"attn_implementation": null
},
"peft_config": {
"task_type": "CAUSAL_LM",
"peft_type": "ADAPTION_PROMPT",
"auto_mapping": null,
"peft_version": "0.18.1.dev0@UNKNOWN",
"base_model_name_or_path": "meta-llama/Llama-3.2-3B",
"revision": null,
"inference_mode": false,
"target_modules": "self_attn",
"adapter_len": 100,
"adapter_layers": 28
},
"error_msg": ""
},
"train_info": {
"accelerator_memory_reserved_avg": 14458868570,
"accelerator_memory_max": 22445817856,
"accelerator_memory_reserved_99th": 20222836736,
"train_time": 1180.5937879550038,
"file_size": 17210384,
"num_trainable_params": 8601628,
"num_total_params": 3221351452,
"status": "success",
"metrics": [
{
"step": 250,
"valid accuracy": 0.0,
"train loss": 1.3200566630363464,
"train samples": 1000,
"train time": 34.53835600853199,
"eval time": 14.21398706396576,
"tokens / sec": 6129.967504756138,
"mem allocated avg": 6848584845.312,
"mem reserved avg": 14547960201.216,
"elapsed time": 71.65906680002809
},
{
"step": 500,
"valid accuracy": 0.08,
"train loss": 1.1533236474990844,
"train samples": 2000,
"train time": 34.522620833537076,
"eval time": 14.150563488015905,
"tokens / sec": 6024.890201787426,
"mem allocated avg": 6841784819.712,
"mem reserved avg": 14164156219.392,
"elapsed time": 123.70079839800019
},
{
"step": 750,
"valid accuracy": 0.2,
"train loss": 0.9019568083286286,
"train samples": 3000,
"train time": 35.55624677182641,
"eval time": 14.130223647051025,
"tokens / sec": 6029.910900772695,
"mem allocated avg": 6852599943.168,
"mem reserved avg": 14414614888.448,
"elapsed time": 176.709548267012
},
{
"step": 1000,
"valid accuracy": 0.18,
"train loss": 0.8574914336204529,
"train samples": 4000,
"train time": 35.06597913411679,
"eval time": 14.383076103986241,
"tokens / sec": 5941.2571713220295,
"mem allocated avg": 6843962202.112,
"mem reserved avg": 14454611771.392,
"elapsed time": 229.6261993580265
},
{
"step": 1250,
"valid accuracy": 0.22,
"train loss": 0.8493955388069153,
"train samples": 5000,
"train time": 35.032775730942376,
"eval time": 14.193959789990913,
"tokens / sec": 5952.6542116333285,
"mem allocated avg": 6843453933.568,
"mem reserved avg": 14489709707.264,
"elapsed time": 282.2174852700555
},
{
"step": 1500,
"valid accuracy": 0.2,
"train loss": 0.8379271342754364,
"train samples": 6000,
"train time": 35.1143401027075,
"eval time": 14.287394939980004,
"tokens / sec": 5961.410619926743,
"mem allocated avg": 6845303027.712,
"mem reserved avg": 14413767639.04,
"elapsed time": 335.0856573909987
},
{
"step": 1750,
"valid accuracy": 0.24,
"train loss": 0.8321145892143249,
"train samples": 7000,
"train time": 34.62294518906856,
"eval time": 14.048951104981825,
"tokens / sec": 6046.712631081982,
"mem allocated avg": 6846216781.824,
"mem reserved avg": 14785382973.44,
"elapsed time": 387.15798614604864
},
{
"step": 2000,
"valid accuracy": 0.24,
"train loss": 0.836554151058197,
"train samples": 8000,
"train time": 34.390015198267065,
"eval time": 14.16389181703562,
"tokens / sec": 6039.427397824062,
"mem allocated avg": 6842828976.128,
"mem reserved avg": 14449343725.568,
"elapsed time": 439.18930962705053
},
{
"step": 2250,
"valid accuracy": 0.2,
"train loss": 0.8322268238067627,
"train samples": 9000,
"train time": 35.45279946445953,
"eval time": 14.172650399035774,
"tokens / sec": 6062.934471944297,
"mem allocated avg": 6854121762.816,
"mem reserved avg": 14755116875.776,
"elapsed time": 492.21291138301603
},
{
"step": 2500,
"valid accuracy": 0.24,
"train loss": 0.8304620375633239,
"train samples": 10000,
"train time": 35.034967973362654,
"eval time": 14.244871944014449,
"tokens / sec": 5878.897910127911,
"mem allocated avg": 6840198320.128,
"mem reserved avg": 14230501720.064,
"elapsed time": 544.8923244239995
},
{
"step": 2750,
"valid accuracy": 0.22,
"train loss": 0.8325318789482117,
"train samples": 11000,
"train time": 35.15703216131078,
"eval time": 14.128618655027822,
"tokens / sec": 6026.703250371868,
"mem allocated avg": 6849819580.416,
"mem reserved avg": 14618449674.24,
"elapsed time": 597.5583866710076
},
{
"step": 3000,
"valid accuracy": 0.16,
"train loss": 0.8273461208343506,
"train samples": 12000,
"train time": 35.226769833650906,
"eval time": 14.172337282972876,
"tokens / sec": 5925.3516852574585,
"mem allocated avg": 6844943210.496,
"mem reserved avg": 14524555984.896,
"elapsed time": 650.4424432980013
},
{
"step": 3250,
"valid accuracy": 0.16,
"train loss": 0.832145271062851,
"train samples": 13000,
"train time": 34.82297695695888,
"eval time": 14.088282125012483,
"tokens / sec": 6056.374797039126,
"mem allocated avg": 6846756392.96,
"mem reserved avg": 14383988080.64,
"elapsed time": 702.644515115011
},
{
"step": 3500,
"valid accuracy": 0.2,
"train loss": 0.8267167332172394,
"train samples": 14000,
"train time": 35.251085491792765,
"eval time": 14.197126877959818,
"tokens / sec": 5950.171379795793,
"mem allocated avg": 6845619677.184,
"mem reserved avg": 14408566702.08,
"elapsed time": 755.514794363
},
{
"step": 3750,
"valid accuracy": 0.24,
"train loss": 0.8225111892223358,
"train samples": 15000,
"train time": 35.429980689892545,
"eval time": 14.131252312974539,
"tokens / sec": 6116.373641203281,
"mem allocated avg": 6856933664.768,
"mem reserved avg": 14748112388.096,
"elapsed time": 808.5010599610396
},
{
"step": 4000,
"valid accuracy": 0.18,
"train loss": 0.8426167027950286,
"train samples": 16000,
"train time": 34.42210436682217,
"eval time": 14.11721703200601,
"tokens / sec": 5937.260483033845,
"mem allocated avg": 6838090446.848,
"mem reserved avg": 14423599087.616,
"elapsed time": 860.4732752880082
},
{
"step": 4250,
"valid accuracy": 0.22,
"train loss": 0.8195950338840484,
"train samples": 17000,
"train time": 35.29558803292457,
"eval time": 14.072754080989398,
"tokens / sec": 5989.105488278345,
"mem allocated avg": 6848445681.664,
"mem reserved avg": 14423037050.88,
"elapsed time": 913.1631882850197
},
{
"step": 4500,
"valid accuracy": 0.22,
"train loss": 0.8332238008975983,
"train samples": 18000,
"train time": 34.60890661936719,
"eval time": 14.16370828700019,
"tokens / sec": 6004.754853587451,
"mem allocated avg": 6843256502.272,
"mem reserved avg": 14372839620.608,
"elapsed time": 965.424148318998
},
{
"step": 4750,
"valid accuracy": 0.2,
"train loss": 0.8247757973670959,
"train samples": 19000,
"train time": 34.65050247934414,
"eval time": 14.110966334003024,
"tokens / sec": 6058.7577373560125,
"mem allocated avg": 6846388692.992,
"mem reserved avg": 14453437366.272,
"elapsed time": 1017.51672834903
},
{
"step": 5000,
"valid accuracy": 0.24,
"train loss": 0.8316655712127685,
"train samples": 20000,
"train time": 34.58433834684547,
"eval time": 14.152012452017516,
"tokens / sec": 6022.379202723645,
"mem allocated avg": 6842473314.304,
"mem reserved avg": 14115619733.504,
"elapsed time": 1069.6098215640523
},
{
"step": 5000,
"test accuracy": 0.21228203184230476,
"train loss": 0.8316655712127685,
"train samples": 20000,
"train total tokens": 4198051,
"forgetting": -0.9543380737304688
}
]
},
"meta_info": {
"model_info": {
"sha": "13afe5124825b4f3751f836b40dafda64c1ed062",
"created_at": "2024-09-18T15:23:48+00:00"
},
"dataset_info": {
"metamath": {
"sha": "aa4f34d3d2d3231299b5b03d9b3e5a20da45aa18",
"created_at": "2023-09-21T17:22:46+00:00"
},
"gsm8k": {
"sha": "cc7b047b6e5bb11b4f1af84efc572db110a51b3c",
"created_at": "2022-04-12T10:22:10+00:00"
}
},
"package_info": {
"transformers-version": "4.57.1",
"transformers-commit-hash": null,
"peft-version": "0.18.1.dev0",
"peft-commit-hash": "8be1a16f5e06ca5e197d2af74bdfc5b3c8072d26",
"datasets-version": "4.2.0",
"datasets-commit-hash": null,
"bitsandbytes-version": "0.46.0",
"bitsandbytes-commit-hash": null,
"torch-version": "2.9.0+cu128",
"torch-commit-hash": null
},
"system_info": {
"system": "Linux",
"release": "6.14.0-1016-aws",
"version": "#16~24.04.1-Ubuntu SMP Tue Oct 14 02:15:09 UTC 2025",
"machine": "x86_64",
"processor": "x86_64",
"accelerator": "NVIDIA L40S"
},
"pytorch_info": "PyTorch built with:\n - GCC 13.3\n - C++ Version: 201703\n - Intel(R) oneAPI Math Kernel Library Version 2024.2-Product Build 20240605 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v3.7.1 (Git Hash 8d263e693366ef8db40acc569cc7d8edf644556d)\n - OpenMP 201511 (a.k.a. OpenMP 4.5)\n - LAPACK is enabled (usually provided by MKL)\n - NNPACK is enabled\n - CPU capability usage: AVX2\n - CUDA Runtime 12.8\n - NVCC architecture flags: -gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_90,code=sm_90;-gencode;arch=compute_100,code=sm_100;-gencode;arch=compute_120,code=sm_120\n - CuDNN 90.7.1\n - Built with CuDNN 90.8\n - Magma 2.6.1\n - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, COMMIT_SHA=0fabc3ba44823f257e70ce397d989c8de5e362c1, CUDA_VERSION=12.8, CUDNN_VERSION=9.8.0, CXX_COMPILER=/opt/rh/gcc-toolset-13/root/usr/bin/c++, CXX_FLAGS= -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_FBGEMM -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -DC10_NODEPRECATED -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=range-loop-construct -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-unknown-pragmas -Wno-unused-parameter -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=old-style-cast -faligned-new -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-dangling-reference -Wno-error=dangling-reference -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, TORCH_VERSION=2.9.0, USE_CUDA=ON, USE_CUDNN=ON, USE_CUSPARSELT=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_GLOO=ON, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=1, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF, USE_XCCL=OFF, USE_XPU=OFF, \n"
}
}
@@ -0,0 +1,348 @@
{
"run_info": {
"created_at": "2026-05-27T17:05:39+00:00",
"total_time": 1164.475218601001,
"experiment_name": "beft/llama-3.2-3B-target-v_proj",
"peft_branch": "main",
"train_config": {
"model_id": "meta-llama/Llama-3.2-3B",
"dtype": "bfloat16",
"max_seq_length": 768,
"batch_size": 4,
"batch_size_eval": 50,
"max_steps": 5000,
"eval_steps": 250,
"compile": false,
"use_gc": false,
"query_template": "Question: {query} Think step by step.\nAnswer:",
"seed": 0,
"grad_norm_clip": 1.0,
"optimizer_type": "AdamW",
"optimizer_kwargs": {
"lr": 0.0001,
"weight_decay": 0.1
},
"lr_scheduler": "cosine",
"use_amp": false,
"autocast_adapter_dtype": true,
"generation_kwargs": {
"max_length": 800,
"max_new_tokens": 300
},
"attn_implementation": null,
"init_kv_cache_prefix": null
},
"peft_config": {
"task_type": null,
"peft_type": "BEFT",
"auto_mapping": null,
"peft_version": "0.19.2.dev0@UNKNOWN",
"base_model_name_or_path": "meta-llama/Llama-3.2-3B",
"revision": null,
"inference_mode": false,
"target_modules": [
"v_proj"
],
"modules_to_save": null,
"init_weights": true
},
"error_msg": ""
},
"train_info": {
"accelerator_memory_reserved_avg": 13326048716,
"accelerator_memory_max": 20174602240,
"accelerator_memory_reserved_99th": 18364760064,
"train_time": 895.6792339479998,
"file_size": 118192,
"num_trainable_params": 28672,
"num_total_params": 3212778496,
"status": "success",
"metrics": [
{
"step": 250,
"valid accuracy": 0.0,
"train loss": 1.2536958937644958,
"train samples": 1000,
"train time": 25.995308880001176,
"eval time": 11.279193141999713,
"tokens / sec": 8144.507956313632,
"mem allocated avg": 6780321925.12,
"mem reserved avg": 13421118488.576,
"elapsed time": 61.48009839899896
},
{
"step": 500,
"valid accuracy": 0.24,
"train loss": 0.9777627243995667,
"train samples": 2000,
"train time": 25.780909876006262,
"eval time": 11.061198373001389,
"tokens / sec": 8067.791284340064,
"mem allocated avg": 6773625614.336,
"mem reserved avg": 13099566366.72,
"elapsed time": 101.17452364900055
},
{
"step": 750,
"valid accuracy": 0.46,
"train loss": 0.8528003213405609,
"train samples": 3000,
"train time": 26.55431071399107,
"eval time": 11.05525916499937,
"tokens / sec": 8074.056310828482,
"mem allocated avg": 6783347279.872,
"mem reserved avg": 13318257377.28,
"elapsed time": 141.63149280499965
},
{
"step": 1000,
"valid accuracy": 0.3,
"train loss": 0.809947411775589,
"train samples": 4000,
"train time": 26.26542209602667,
"eval time": 11.06809749599961,
"tokens / sec": 7931.949436727928,
"mem allocated avg": 6774604892.16,
"mem reserved avg": 13324137791.488,
"elapsed time": 181.8820559550004
},
{
"step": 1250,
"valid accuracy": 0.32,
"train loss": 0.7861457334756852,
"train samples": 5000,
"train time": 26.317507632986235,
"eval time": 11.035170441000446,
"tokens / sec": 7923.926646405509,
"mem allocated avg": 6774791225.344,
"mem reserved avg": 13359990702.08,
"elapsed time": 222.1126937299996
},
{
"step": 1500,
"valid accuracy": 0.28,
"train loss": 0.7697241091728211,
"train samples": 6000,
"train time": 26.55908623099276,
"eval time": 11.054187975998502,
"tokens / sec": 7881.709414976937,
"mem allocated avg": 6777222809.6,
"mem reserved avg": 13278612815.872,
"elapsed time": 262.6382690669998
},
{
"step": 1750,
"valid accuracy": 0.26,
"train loss": 0.7580352199077606,
"train samples": 7000,
"train time": 26.747784329987553,
"eval time": 11.021172044000195,
"tokens / sec": 7827.003441376163,
"mem allocated avg": 6778111371.264,
"mem reserved avg": 13628283551.744,
"elapsed time": 303.3206812520002
},
{
"step": 2000,
"valid accuracy": 0.34,
"train loss": 0.7508488984107972,
"train samples": 8000,
"train time": 26.545016925963864,
"eval time": 11.080554445999951,
"tokens / sec": 7824.293372246868,
"mem allocated avg": 6773797535.744,
"mem reserved avg": 13307318632.448,
"elapsed time": 343.8978338319994
},
{
"step": 2250,
"valid accuracy": 0.34,
"train loss": 0.7441560583114624,
"train samples": 9000,
"train time": 27.327815797998483,
"eval time": 11.055995652999627,
"tokens / sec": 7865.538965457423,
"mem allocated avg": 6784505901.056,
"mem reserved avg": 13558280617.984,
"elapsed time": 385.14220218899936
},
{
"step": 2500,
"valid accuracy": 0.3,
"train loss": 0.7427490262985229,
"train samples": 10000,
"train time": 26.416417789998377,
"eval time": 11.091206763001537,
"tokens / sec": 7796.931500605732,
"mem allocated avg": 6771203348.48,
"mem reserved avg": 13125269061.632,
"elapsed time": 425.5365456790005
},
{
"step": 2750,
"valid accuracy": 0.26,
"train loss": 0.7366866612434387,
"train samples": 11000,
"train time": 27.10851580999406,
"eval time": 11.050364470000204,
"tokens / sec": 7816.031002401323,
"mem allocated avg": 6780755542.016,
"mem reserved avg": 13451804016.64,
"elapsed time": 466.5525102729989
},
{
"step": 3000,
"valid accuracy": 0.4,
"train loss": 0.7303342999219894,
"train samples": 12000,
"train time": 26.899115040016113,
"eval time": 11.087409264999224,
"tokens / sec": 7759.772010695671,
"mem allocated avg": 6776335720.448,
"mem reserved avg": 13375073419.264,
"elapsed time": 507.4421382820001
},
{
"step": 3250,
"valid accuracy": 0.36,
"train loss": 0.7387652082443237,
"train samples": 13000,
"train time": 26.94703685899003,
"eval time": 11.049139168000693,
"tokens / sec": 7826.500594615081,
"mem allocated avg": 6779590395.904,
"mem reserved avg": 13257020538.88,
"elapsed time": 548.2433796669993
},
{
"step": 3500,
"valid accuracy": 0.36,
"train loss": 0.7276337064504623,
"train samples": 14000,
"train time": 26.94882840199716,
"eval time": 10.589796242000375,
"tokens / sec": 7783.269716632859,
"mem allocated avg": 6776255127.552,
"mem reserved avg": 13281758543.872,
"elapsed time": 588.7085180619997
},
{
"step": 3750,
"valid accuracy": 0.28,
"train loss": 0.7233721593618393,
"train samples": 15000,
"train time": 27.595731332001378,
"eval time": 9.353614206000202,
"tokens / sec": 7852.772495603349,
"mem allocated avg": 6787800502.272,
"mem reserved avg": 13584134307.84,
"elapsed time": 628.6007220949996
},
{
"step": 4000,
"valid accuracy": 0.28,
"train loss": 0.7426576368808746,
"train samples": 16000,
"train time": 26.120023386005414,
"eval time": 11.07476948799922,
"tokens / sec": 7824.380437174454,
"mem allocated avg": 6768310173.696,
"mem reserved avg": 13282731622.4,
"elapsed time": 668.7208018139991
},
{
"step": 4250,
"valid accuracy": 0.36,
"train loss": 0.7218096262216568,
"train samples": 17000,
"train time": 26.7786224240117,
"eval time": 11.070321331999367,
"tokens / sec": 7893.946023543501,
"mem allocated avg": 6780493502.464,
"mem reserved avg": 13286196117.504,
"elapsed time": 709.3163593569989
},
{
"step": 4500,
"valid accuracy": 0.3,
"train loss": 0.7325530879497528,
"train samples": 18000,
"train time": 27.066992443002164,
"eval time": 11.09822626499954,
"tokens / sec": 7677.912514204318,
"mem allocated avg": 6774668625.92,
"mem reserved avg": 13242130759.68,
"elapsed time": 750.4343246320004
},
{
"step": 4750,
"valid accuracy": 0.32,
"train loss": 0.726402741074562,
"train samples": 19000,
"train time": 27.221641966965763,
"eval time": 6.558379473000969,
"tokens / sec": 7712.209287550213,
"mem allocated avg": 6777282058.24,
"mem reserved avg": 13315707240.448,
"elapsed time": 787.0632161579997
},
{
"step": 5000,
"valid accuracy": 0.3,
"train loss": 0.732575830578804,
"train samples": 20000,
"train time": 26.564427542021804,
"eval time": 11.065521769000043,
"tokens / sec": 7840.5604513978515,
"mem allocated avg": 6773862078.464,
"mem reserved avg": 13023582355.456,
"elapsed time": 827.522590474
},
{
"step": 5000,
"test accuracy": 0.3290371493555724,
"train loss": 0.732575830578804,
"train samples": 20000,
"train total tokens": 4198051,
"forgetting": -0.029061317443847656
}
]
},
"meta_info": {
"model_info": {
"sha": "13afe5124825b4f3751f836b40dafda64c1ed062",
"created_at": "2024-09-18T15:23:48+00:00"
},
"dataset_info": {
"metamath": {
"sha": "aa4f34d3d2d3231299b5b03d9b3e5a20da45aa18",
"created_at": "2023-09-21T17:22:46+00:00"
},
"gsm8k": {
"sha": "740312add88f781978c0658806c59bc2815b9866",
"created_at": "2022-04-12T10:22:10+00:00"
}
},
"package_info": {
"transformers-version": "5.5.4",
"transformers-commit-hash": null,
"peft-version": "0.19.2.dev0",
"peft-commit-hash": "51bd32da394265b5ff438123ebef37be35bd2c2d",
"datasets-version": "4.2.0",
"datasets-commit-hash": null,
"bitsandbytes-version": "0.46.0",
"bitsandbytes-commit-hash": null,
"torch-version": "2.9.0+cu128",
"torch-commit-hash": null
},
"system_info": {
"system": "Linux",
"release": "6.17.0-1009-aws",
"version": "#9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026",
"machine": "x86_64",
"processor": "x86_64",
"accelerator": "NVIDIA L40S"
},
"pytorch_info": "PyTorch built with:\n - GCC 13.3\n - C++ Version: 201703\n - Intel(R) oneAPI Math Kernel Library Version 2024.2-Product Build 20240605 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v3.7.1 (Git Hash 8d263e693366ef8db40acc569cc7d8edf644556d)\n - OpenMP 201511 (a.k.a. OpenMP 4.5)\n - LAPACK is enabled (usually provided by MKL)\n - NNPACK is enabled\n - CPU capability usage: AVX2\n - CUDA Runtime 12.8\n - NVCC architecture flags: -gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_90,code=sm_90;-gencode;arch=compute_100,code=sm_100;-gencode;arch=compute_120,code=sm_120\n - CuDNN 90.7.1\n - Built with CuDNN 90.8\n - Magma 2.6.1\n - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, COMMIT_SHA=0fabc3ba44823f257e70ce397d989c8de5e362c1, CUDA_VERSION=12.8, CUDNN_VERSION=9.8.0, CXX_COMPILER=/opt/rh/gcc-toolset-13/root/usr/bin/c++, CXX_FLAGS= -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_FBGEMM -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -DC10_NODEPRECATED -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=range-loop-construct -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-unknown-pragmas -Wno-unused-parameter -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=old-style-cast -faligned-new -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-dangling-reference -Wno-error=dangling-reference -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, TORCH_VERSION=2.9.0, USE_CUDA=ON, USE_CUDNN=ON, USE_CUSPARSELT=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_GLOO=ON, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=1, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF, USE_XCCL=OFF, USE_XPU=OFF, \n"
}
}
@@ -0,0 +1,356 @@
{
"run_info": {
"created_at": "2026-01-09T17:49:47+00:00",
"total_time": 10059.440659368003,
"experiment_name": "boft/llama-3.2-3B-default",
"peft_branch": "main",
"train_config": {
"model_id": "meta-llama/Llama-3.2-3B",
"dtype": "bfloat16",
"max_seq_length": 768,
"batch_size": 4,
"batch_size_eval": 50,
"max_steps": 5000,
"eval_steps": 250,
"compile": false,
"query_template": "Question: {query} Think step by step.\nAnswer:",
"seed": 0,
"grad_norm_clip": 1.0,
"optimizer_type": "AdamW",
"optimizer_kwargs": {
"lr": 0.0001,
"weight_decay": 0.1
},
"lr_scheduler": "cosine",
"use_amp": false,
"autocast_adapter_dtype": true,
"generation_kwargs": {
"max_length": 800,
"max_new_tokens": 300
},
"attn_implementation": null
},
"peft_config": {
"task_type": null,
"peft_type": "BOFT",
"auto_mapping": null,
"peft_version": "0.18.1.dev0@UNKNOWN",
"base_model_name_or_path": "meta-llama/Llama-3.2-3B",
"revision": null,
"inference_mode": false,
"boft_block_size": 4,
"boft_block_num": 0,
"boft_n_butterfly_factor": 1,
"target_modules": [
"v_proj",
"q_proj"
],
"exclude_modules": null,
"boft_dropout": 0.0,
"fan_in_fan_out": false,
"bias": "none",
"modules_to_save": null,
"init_weights": true,
"layers_to_transform": null,
"layers_pattern": null
},
"error_msg": ""
},
"train_info": {
"accelerator_memory_reserved_avg": 17188165936,
"accelerator_memory_max": 24410849280,
"accelerator_memory_reserved_99th": 22345154560,
"train_time": 7190.453845723998,
"file_size": 3225360,
"num_trainable_params": 802816,
"num_total_params": 3213552640,
"status": "success",
"metrics": [
{
"step": 250,
"valid accuracy": 0.0,
"train loss": 1.2914534993171691,
"train samples": 1000,
"train time": 168.16101133066695,
"eval time": 142.30593162897276,
"tokens / sec": 1259.025491846513,
"mem allocated avg": 6795307169.792,
"mem reserved avg": 17261339344.896,
"elapsed time": 344.37489816197194
},
{
"step": 500,
"valid accuracy": 0.12,
"train loss": 1.065816521883011,
"train samples": 2000,
"train time": 169.6081039829878,
"eval time": 143.82841559901135,
"tokens / sec": 1226.3270157236266,
"mem allocated avg": 6787530438.656,
"mem reserved avg": 16960280592.384,
"elapsed time": 662.5959406199981
},
{
"step": 750,
"valid accuracy": 0.42,
"train loss": 0.8761289038658142,
"train samples": 3000,
"train time": 170.50346154812723,
"eval time": 143.55063587299082,
"tokens / sec": 1257.4583416271698,
"mem allocated avg": 6797964732.416,
"mem reserved avg": 17119546703.872,
"elapsed time": 981.3382467220072
},
{
"step": 1000,
"valid accuracy": 0.44,
"train loss": 0.8187025270462036,
"train samples": 4000,
"train time": 170.603982186527,
"eval time": 143.48508089897223,
"tokens / sec": 1221.1672748190563,
"mem allocated avg": 6789360863.232,
"mem reserved avg": 17173468676.096,
"elapsed time": 1300.2320007149829
},
{
"step": 1250,
"valid accuracy": 0.38,
"train loss": 0.7968714184761048,
"train samples": 5000,
"train time": 170.08946738566738,
"eval time": 143.52085828600684,
"tokens / sec": 1226.0488741913275,
"mem allocated avg": 6788928741.376,
"mem reserved avg": 17237641527.296,
"elapsed time": 1618.561195612012
},
{
"step": 1500,
"valid accuracy": 0.42,
"train loss": 0.7768479048013687,
"train samples": 6000,
"train time": 171.03791188867763,
"eval time": 142.4387985090143,
"tokens / sec": 1223.8865505809376,
"mem allocated avg": 6790983270.4,
"mem reserved avg": 17204464582.656,
"elapsed time": 1936.8438452039845
},
{
"step": 1750,
"valid accuracy": 0.34,
"train loss": 0.7638826340436935,
"train samples": 7000,
"train time": 169.5759706167737,
"eval time": 142.81106396700488,
"tokens / sec": 1234.5793996551745,
"mem allocated avg": 6792170039.296,
"mem reserved avg": 17521872732.16,
"elapsed time": 2253.9779722079984
},
{
"step": 2000,
"valid accuracy": 0.3,
"train loss": 0.7574314765930176,
"train samples": 8000,
"train time": 169.80084089771844,
"eval time": 142.94605548703112,
"tokens / sec": 1223.1741545090943,
"mem allocated avg": 6788512305.152,
"mem reserved avg": 17193743941.632,
"elapsed time": 2571.564919157012
},
{
"step": 2250,
"valid accuracy": 0.4,
"train loss": 0.747995015501976,
"train samples": 9000,
"train time": 169.89184381318046,
"eval time": 142.61838847299805,
"tokens / sec": 1265.2049396577568,
"mem allocated avg": 6799572060.16,
"mem reserved avg": 17437013573.632,
"elapsed time": 2888.81089515402
},
{
"step": 2500,
"valid accuracy": 0.3,
"train loss": 0.7451818664073944,
"train samples": 10000,
"train time": 169.05202275590273,
"eval time": 142.17101406800793,
"tokens / sec": 1218.3645995020095,
"mem allocated avg": 6785213417.472,
"mem reserved avg": 17006149500.928,
"elapsed time": 3204.817744602973
},
{
"step": 2750,
"valid accuracy": 0.26,
"train loss": 0.7368416948318481,
"train samples": 11000,
"train time": 169.79861720540794,
"eval time": 142.90656082698843,
"tokens / sec": 1247.837017092338,
"mem allocated avg": 6795389593.6,
"mem reserved avg": 17333305212.928,
"elapsed time": 3522.2434823570075
},
{
"step": 3000,
"valid accuracy": 0.42,
"train loss": 0.7283624488115311,
"train samples": 12000,
"train time": 169.40914075018372,
"eval time": 142.4628674259875,
"tokens / sec": 1232.1117920537804,
"mem allocated avg": 6790662739.968,
"mem reserved avg": 17229924007.936,
"elapsed time": 3838.9266921749804
},
{
"step": 3250,
"valid accuracy": 0.4,
"train loss": 0.7360379147529602,
"train samples": 13000,
"train time": 169.2894103731378,
"eval time": 142.70766545902006,
"tokens / sec": 1245.8014918661738,
"mem allocated avg": 6792828252.16,
"mem reserved avg": 17116644245.504,
"elapsed time": 4155.603474072996
},
{
"step": 3500,
"valid accuracy": 0.38,
"train loss": 0.7245079389810563,
"train samples": 14000,
"train time": 169.62816236459184,
"eval time": 142.80769011599477,
"tokens / sec": 1236.528162989657,
"mem allocated avg": 6790204116.992,
"mem reserved avg": 17182729699.328,
"elapsed time": 4472.8496758749825
},
{
"step": 3750,
"valid accuracy": 0.32,
"train loss": 0.7198032699823379,
"train samples": 15000,
"train time": 169.99743940570625,
"eval time": 143.21545482298825,
"tokens / sec": 1274.742729993885,
"mem allocated avg": 6802659770.368,
"mem reserved avg": 17454201831.424,
"elapsed time": 4790.820539581007
},
{
"step": 4000,
"valid accuracy": 0.36,
"train loss": 0.7386080088615418,
"train samples": 16000,
"train time": 169.4405590199167,
"eval time": 142.85203308903147,
"tokens / sec": 1206.1633954829977,
"mem allocated avg": 6782729986.048,
"mem reserved avg": 17107366445.056,
"elapsed time": 5107.90697863797
},
{
"step": 4250,
"valid accuracy": 0.4,
"train loss": 0.7167673094272613,
"train samples": 17000,
"train time": 169.4217613734072,
"eval time": 142.6639407540206,
"tokens / sec": 1247.7086667402577,
"mem allocated avg": 6793673689.088,
"mem reserved avg": 17128346353.664,
"elapsed time": 5424.600868158974
},
{
"step": 4500,
"valid accuracy": 0.36,
"train loss": 0.7279775400161743,
"train samples": 18000,
"train time": 169.55897833802737,
"eval time": 142.51284795097308,
"tokens / sec": 1225.6384299845254,
"mem allocated avg": 6789383653.376,
"mem reserved avg": 17117466329.088,
"elapsed time": 5741.48882275197
},
{
"step": 4750,
"valid accuracy": 0.4,
"train loss": 0.7207833558321,
"train samples": 19000,
"train time": 169.6458221563953,
"eval time": 142.71257099701324,
"tokens / sec": 1237.513528664789,
"mem allocated avg": 6791604719.616,
"mem reserved avg": 17139536756.736,
"elapsed time": 6058.54882254597
},
{
"step": 5000,
"valid accuracy": 0.36,
"train loss": 0.7267992464303971,
"train samples": 20000,
"train time": 169.51394822495058,
"eval time": 142.66391144797672,
"tokens / sec": 1228.6894511099795,
"mem allocated avg": 6788474263.552,
"mem reserved avg": 16838276677.632,
"elapsed time": 6375.395246869011
},
{
"step": 5000,
"test accuracy": 0.36239575435936316,
"train loss": 0.7267992464303971,
"train samples": 20000,
"train total tokens": 4198051,
"forgetting": 0.3084230422973633
}
]
},
"meta_info": {
"model_info": {
"sha": "13afe5124825b4f3751f836b40dafda64c1ed062",
"created_at": "2024-09-18T15:23:48+00:00"
},
"dataset_info": {
"metamath": {
"sha": "aa4f34d3d2d3231299b5b03d9b3e5a20da45aa18",
"created_at": "2023-09-21T17:22:46+00:00"
},
"gsm8k": {
"sha": "cc7b047b6e5bb11b4f1af84efc572db110a51b3c",
"created_at": "2022-04-12T10:22:10+00:00"
}
},
"package_info": {
"transformers-version": "4.57.1",
"transformers-commit-hash": null,
"peft-version": "0.18.1.dev0",
"peft-commit-hash": "8be1a16f5e06ca5e197d2af74bdfc5b3c8072d26",
"datasets-version": "4.2.0",
"datasets-commit-hash": null,
"bitsandbytes-version": "0.46.0",
"bitsandbytes-commit-hash": null,
"torch-version": "2.9.0+cu128",
"torch-commit-hash": null
},
"system_info": {
"system": "Linux",
"release": "6.14.0-1016-aws",
"version": "#16~24.04.1-Ubuntu SMP Tue Oct 14 02:15:09 UTC 2025",
"machine": "x86_64",
"processor": "x86_64",
"accelerator": "NVIDIA L40S"
},
"pytorch_info": "PyTorch built with:\n - GCC 13.3\n - C++ Version: 201703\n - Intel(R) oneAPI Math Kernel Library Version 2024.2-Product Build 20240605 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v3.7.1 (Git Hash 8d263e693366ef8db40acc569cc7d8edf644556d)\n - OpenMP 201511 (a.k.a. OpenMP 4.5)\n - LAPACK is enabled (usually provided by MKL)\n - NNPACK is enabled\n - CPU capability usage: AVX2\n - CUDA Runtime 12.8\n - NVCC architecture flags: -gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_90,code=sm_90;-gencode;arch=compute_100,code=sm_100;-gencode;arch=compute_120,code=sm_120\n - CuDNN 90.7.1\n - Built with CuDNN 90.8\n - Magma 2.6.1\n - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, COMMIT_SHA=0fabc3ba44823f257e70ce397d989c8de5e362c1, CUDA_VERSION=12.8, CUDNN_VERSION=9.8.0, CXX_COMPILER=/opt/rh/gcc-toolset-13/root/usr/bin/c++, CXX_FLAGS= -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_FBGEMM -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -DC10_NODEPRECATED -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=range-loop-construct -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-unknown-pragmas -Wno-unused-parameter -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=old-style-cast -faligned-new -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-dangling-reference -Wno-error=dangling-reference -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, TORCH_VERSION=2.9.0, USE_CUDA=ON, USE_CUDNN=ON, USE_CUSPARSELT=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_GLOO=ON, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=1, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF, USE_XCCL=OFF, USE_XPU=OFF, \n"
}
}

Some files were not shown because too many files have changed in this diff Show More