Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+10
- .gitignoreAdded+216
- README.mdAdded+3
- SVD64_llama2/config.jsonAdded+96
- SVD64_llama2/generation_config.jsonAdded+6
- SVD64_llama2/pytorch_model-00001-of-00006.binAdded+3
- SVD64_llama2/pytorch_model-00002-of-00006.binAdded+3
- SVD64_llama2/pytorch_model-00003-of-00006.binAdded+3
- SVD64_llama2/pytorch_model-00004-of-00006.binAdded+3
- SVD64_llama2/pytorch_model-00005-of-00006.binAdded+3
- SVD64_llama2/pytorch_model-00006-of-00006.binAdded+3
- SVD64_llama2/pytorch_model.bin.index.jsonAdded
- SVD_llama2/config.jsonAdded+80
- SVD_llama2/generation_config.jsonAdded+6
- SVD_llama2/pytorch_model-00001-of-00006.binAdded+3
- SVD_llama2/pytorch_model-00002-of-00006.binAdded+3
- SVD_llama2/pytorch_model-00003-of-00006.binAdded+3
- SVD_llama2/pytorch_model-00004-of-00006.binAdded+3
- SVD_llama2/pytorch_model-00005-of-00006.binAdded+3
- SVD_llama2/pytorch_model-00006-of-00006.binAdded+3
- SVD_llama2/pytorch_model.bin.index.jsonAdded
- bash_scripts/all.shAdded+3
- bash_scripts/cms_eval.shAdded+18
- bash_scripts/ft.shAdded+1
- bash_scripts/main.shAdded+32
- conf_hydra/config.yamlAdded+16
- conf_hydra/data/cifa.yamlAdded+3
- conf_hydra/data/cs15k.yamlAdded+2
- conf_hydra/data/faci.yamlAdded+2
- conf_hydra/data/math7k.yamlAdded+2
- config_draccus/config.yamlAdded+39
- dataset/AQuA/AQuA.jsonAdded
- dataset/AQuA/aqua_1.jsonAdded
- dataset/AQuA/test.jsonAdded
- dataset/ARC-Challenge/test.jsonAdded
- dataset/ARC-Challenge/train.jsonAdded
- dataset/ARC-Easy/test.jsonAdded
- dataset/ARC-Easy/train.jsonAdded
- dataset/AddSub/AddSub.jsonAdded
- dataset/AddSub/addsub_1.jsonAdded
- dataset/AddSub/test.jsonAdded
- dataset/MultiArith/MultiArith.jsonAdded
- dataset/MultiArith/multiarith_1.jsonAdded
- dataset/MultiArith/test.jsonAdded
- dataset/SVAMP/SVAMP.jsonAdded
- dataset/SVAMP/svamp_1.jsonAdded
- dataset/SVAMP/test.jsonAdded
- dataset/SingleEq/SingleEq.jsonAdded
- dataset/SingleEq/singleeq_1.jsonAdded
- dataset/SingleEq/test.jsonAdded
32 unmodified lines3334353637383940414243444532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textdataset/hellaswag/test.json filter=lfs diff=lfs merge=lfs -textdataset/hellaswag/train.json filter=lfs diff=lfs merge=lfs -textdataset/social_i_qa/train.json filter=lfs diff=lfs merge=lfs -textdataset/winogrande/train.json filter=lfs diff=lfs merge=lfs -textft-training_set/alpaca_data.json filter=lfs diff=lfs merge=lfs -textft-training_set/alpaca_data_cleaned.json filter=lfs diff=lfs merge=lfs -textft-training_set/commonsense_147k.json filter=lfs diff=lfs merge=lfs -textft-training_set/commonsense_170k.json filter=lfs diff=lfs merge=lfs -textft-training_set/math_14k.json filter=lfs diff=lfs merge=lfs -textft-training_set/math_50k.json filter=lfs diff=lfs merge=lfs -text123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216# Byte-compiled / optimized / DLL files__pycache__/*.py[codz]*$py.class
# C extensions*.so
# Distribution / packaging.Pythonbuild/develop-eggs/dist/downloads/eggs/.eggs/lib/lib64/parts/sdist/var/wheels/share/python-wheels/*.egg-info/.installed.cfg*.eggMANIFEST
# PyInstaller# Usually these files are written by a python script from a template# before PyInstaller builds the exe, so as to inject date/other infos into it.*.manifest*.spec
# Installer logspip-log.txtpip-delete-this-directory.txt
# Unit test / coverage reportshtmlcov/.tox/.nox/.coverage.coverage.*.cachenosetests.xmlcoverage.xml*.cover*.py.cover.hypothesis/.pytest_cache/cover/
# Translations*.mo*.pot
# Django stuff:*.loglocal_settings.pydb.sqlite3db.sqlite3-journal
# Flask stuff:instance/.webassets-cache
# Scrapy stuff:.scrapy
# Sphinx documentationdocs/_build/
# PyBuilder.pybuilder/target/
# Jupyter Notebook.ipynb_checkpoints
# IPythonprofile_default/ipython_config.py
# pyenv# For a library or package, you might want to ignore these files since the code is# intended to run in multiple environments; otherwise, check them in:# .python-version
# pipenv# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.# However, in case of collaboration, if having platform-specific dependencies or dependencies# having no cross-platform support, pipenv may install dependencies that don't work, or not# install all needed dependencies.#Pipfile.lock
# UV# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.# This is especially recommended for binary packages to ensure reproducibility, and is more# commonly ignored for libraries.#uv.lock
# poetry# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.# This is especially recommended for binary packages to ensure reproducibility, and is more# commonly ignored for libraries.# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control#poetry.lock#poetry.toml
# pdm# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.# https://pdm-project.org/en/latest/usage/project/#working-with-version-control#pdm.lock#pdm.toml.pdm-python.pdm-build/
# pixi# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.#pixi.lock# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one# in the .venv directory. It is recommended not to include this directory in version control..pixi
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm__pypackages__/
# Celery stuffcelerybeat-schedulecelerybeat.pid
# SageMath parsed files*.sage.py
# Environments.env.envrc.venvenv/venv/ENV/env.bak/venv.bak/
# Spyder project settings.spyderproject.spyproject
# Rope project settings.ropeproject
# mkdocs documentation/site
# mypy.mypy_cache/.dmypy.jsondmypy.json
# Pyre type checker.pyre/
# pytype static type analyzer.pytype/
# Cython debug symbolscython_debug/
# PyCharm# JetBrains specific template is maintained in a separate JetBrains.gitignore that can# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore# and can be added to the global gitignore or merged into this file. For a more nuclear# option (not recommended) you can uncomment the following to ignore the entire idea folder.#.idea/
# Abstra# Abstra is an AI-powered process automation framework.# Ignore directories containing user credentials, local state, and settings.# Learn more at https://abstra.io/docs.abstra/
# Visual Studio Code# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore# and can be added to the global gitignore or merged into this file. However, if you prefer, # you could uncomment the following to ignore the entire vscode folder# .vscode/
# Ruff stuff:.ruff_cache/
# PyPI configuration file.pypirc
# Cursor# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data# refer to https://docs.cursor.com/context/ignore-files.cursorignore.cursorindexingignore
# Marimomarimo/_static/marimo/_lsp/__marimo__/
.DS_Store
trainer_output/outputs/src/note.ipynbwandb/runs/src/*.ipynb123# Instance-based-FT
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596{ "architectures": [ "IbaXs_LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 1, "dtype": "float32", "eos_token_id": 2, "head_dim": 128, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 11008, "main_cfg": { "data": { "data_path": "ft-training_set/commonsense_15k.json", "dataset_name": "CMS", "val_set_size": 512 }, "hyperxs": { "drop_out": 0.0, "latent_feature_dim": 512, "layer_embed_dim": 48, "layer_norm_epsilon": 1e-05, "lora_attn_dim": 64, "module_embed_dim": 16, "modules_per_layer": 7, "n_cross_attn_tokens": 8, "out_proj_dim": 128 }, "infer": { "datasets": [ "boolq" ], "eval_batch_size": 128, "is_json": true, "model_path": "" }, "model": { "base_model_name": "meta-llama/Llama-2-7b-hf", "cutoff_len": 512, "train_on_inputs": false }, "run_text": "def", "seed": 42, "training": { "bf16": false, "bf16_full_eval": false, "dataloader_num_workers": 4, "dataloader_persistent_workers": true, "dataloader_pin_memory": true, "dataloader_prefetch_factor": 1, "eval_delay": 0, "eval_steps": 1, "eval_strategy": "steps", "gradient_accumulation_steps": 1, "gradient_checkpointing": false, "gradient_checkpointing_kwargs": { "use_reentrant": false }, "learning_rate": 1e-36, "load_best_model_at_end": true, "logging_steps": 1, "lr_scheduler_type": "cosine", "max_steps": -1, "num_train_epochs": 3.0, "num_workers": 2, "optim": "adamw_torch", "output_dir": "exps", "per_device_eval_batch_size": 32, "per_device_train_batch_size": 16, "report_to": "none", "resume_from_checkpoint": false, "save_safetensors": false, "save_steps": 1.0, "save_strategy": "steps", "save_total_limit": 1, "warmup_ratio": 0.1 } }, "max_position_embeddings": 4096, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 32, "num_key_value_heads": 32, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_scaling": null, "rope_theta": 10000.0, "tie_word_embeddings": false, "transformers_version": "4.57.3", "use_cache": true, "vocab_size": 32000}123456{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 2, "transformers_version": "4.57.3"}123version https://git-lfs.github.com/spec/v1oid sha256:6dee5760aa2c07fd6927b786fc12b15f2ec603d17b46bb546e8717c75a180692size 4989191305123version https://git-lfs.github.com/spec/v1oid sha256:e931345fe7ff136231c6af1ff23be2010a041b8375f4580f94a4847887fea9f4size 4977180989123version https://git-lfs.github.com/spec/v1oid sha256:2655866df455099c513be4709e8c017a389480cd26df66b3fda25f0f97608df6size 4977181117123version https://git-lfs.github.com/spec/v1oid sha256:ee5a72698fefc1ee8b02693829da9a1b43a400e609843ac544c0e9da7a65ab6esize 4977181117123version https://git-lfs.github.com/spec/v1oid sha256:36254a063dcd05b2e8cb1aea8e8422d1a386c6cd00d770a11838691b061bb747size 4977181117123version https://git-lfs.github.com/spec/v1oid sha256:6560e24e92388928012afc6a0503c8f70b6dc13e5c1118e378f3105ca24f573csize 28052743371234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ "architectures": [ "IbaXs_LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 1, "dtype": "float32", "eos_token_id": 2, "head_dim": 128, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 11008, "main_cfg": { "data": { "data_path": "./ft-training_set/math_7k.json", "dataset_name": "math7k" }, "hyperxs": { "latent_feature_dim": 256, "layer_embed_dim": 48, "layer_norm_epsilon": 1e-05, "lora_attn_dim": 32, "module_embed_dim": 16, "modules_per_layer": 7, "n_cross_attn_tokens": 4, "out_proj_dim": 64 }, "model": { "base_model_name": "meta-llama/Llama-2-7b-hf" }, "seed": 42, "training": { "batch_size": 128, "bf16": false, "bf16_full_eval": false, "cutoff_len": 207, "dataloader_num_workers": 4, "dataloader_persistent_workers": true, "dataloader_pin_memory": true, "dataloader_prefetch_factor": 1, "eval_steps": 20, "eval_strategy": "steps", "gradient_checkpointing": false, "learning_rate": 1e-05, "logging_steps": 1, "lr_scheduler_type": "cosine", "max_steps": 10, "num_train_epochs": 1.0, "num_workers": 4, "optim": "adamw_torch", "output_dir": "runs", "per_device_train_batch_size": 32, "per_device_valid_batch_size": 64, "report_to": "none", "resume_from_checkpoint": false, "save_safetensors": false, "save_steps": 0, "torch_compile": false, "train_on_inputs": false, "val_set_size": 128, "warmup_ratio": 0.1 } }, "max_position_embeddings": 4096, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 32, "num_key_value_heads": 32, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_scaling": null, "rope_theta": 10000.0, "tie_word_embeddings": false, "transformers_version": "4.57.3", "use_cache": true, "vocab_size": 32000}123456{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 2, "transformers_version": "4.57.3"}123version https://git-lfs.github.com/spec/v1oid sha256:de1bb1ef2161e2171f7707c43e781875c06698e5893026e4ecfdc53d7ffcecbcsize 4905313922123version https://git-lfs.github.com/spec/v1oid sha256:30322e5ccbc982a56027b451744c097a751eddef0ad193067d738e4b193c8734size 4917215549123version https://git-lfs.github.com/spec/v1oid sha256:323ee40a4b915523360c3493e2a967b68ffe0efa7f3ddc581c7e7366bd026f79size 4917215677123version https://git-lfs.github.com/spec/v1oid sha256:c19895014f0506d3d3f066cac56a8005bf0b7162adca41f8e26459fc1ec6361dsize 4917215677123version https://git-lfs.github.com/spec/v1oid sha256:63a79581ebc6e6fc2e8c759406848e2fdbc438d4a81fa3ea6ec9627468b2d6efsize 4917215677123version https://git-lfs.github.com/spec/v1oid sha256:de55a5650f0ec10fb6fbc0ed1a8990a9fc8fa34bd117d160cafd1cf1aafa4098size 2710278891123bash ./bash_scripts/main.shbash ./bash_scripts/2main.shbash bash_scripts/cms_eval.sh123456789101112131415161718
#!/bin/bash
export IBA_CONFIG=./config_draccus/config.yamlexport TOKENIZERS_PARALLELISM=true
# CUDA Include (/cuda.h)CUDA_INCLUDE_PATH="/home/work/miniconda3/envs/allm/include"
export CPATH=$CPATH:$CUDA_INCLUDE_PATHexport CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$CUDA_INCLUDE_PATH
export WANDB_PROJECT="IBA_CMS"
date +"%F %T"
accelerate launch --dynamo_backend no --main_process_port 41353 -m src.cms_eval \ --config_path $IBA_CONFIG --infer.model_path exps/CMS/t=30d23h18m55,mlr1.0e-04,b16,r64,n_ct8,t30d23h18m55,initdef,dr0.0,ep3.0,ds146071python -m src.ft #--config_path ./conf_hydra/config.yaml1234567891011121314151617181920212223242526272829303132#!/bin/bash
# accelerate launch --main_process_port 41353 -m src.main# python -m src.main# bash bash_scripts/main.sh
export IBA_CONFIG=./config_draccus/config.yamlexport TOKENIZERS_PARALLELISM=true
# CUDA Include (/cuda.h)CUDA_INCLUDE_PATH="/home/work/miniconda3/envs/allm/include"
export CPATH=$CPATH:$CUDA_INCLUDE_PATHexport CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$CUDA_INCLUDE_PATH
export WANDB_PROJECT="IBA_CMS"
date +"%F %T"
STEP=400# accelerate launch --dynamo_backend no --main_process_port 41353 -m src.main \# accelerate launch --dynamo_backend=inductor --dynamo_mode=max-autotune --main_process_port 41353 -m src.main \accelerate launch --dynamo_backend no --main_process_port 41353 -m src.main \ --config_path $IBA_CONFIG --training.save_strategy "steps" \ --training.save_steps $STEP --training.eval_steps $STEP --training.logging_steps $STEP \ --training.report_to wandb --training.learning_rate 2e-4 \
# accelerate launch --dynamo_backend=inductor --dynamo_mode=max-autotune --main_process_port 41353 -m src.main \# --config_path $IBA_CONFIG
# wandb sync wandb/latest-rundate +"%F %T"12345678910111213141516defaults: - _self_ - data: cs15khyperxs: lora_attn_dim: 7
#model:# feature_dim: 768 #n_layersX: 24
training: batch_train: 64
# seed: 42123dataset_name: "cifa"data_path: - ./data/cifa12dataset_name: "commonsense"data_path: './ft-training_set/commonsense_15k.json'12dataset_name: "faci"data_path: ./data/faci12dataset_name: "math"data_path: './ft-training_set/math_7k.json'123456789101112131415161718192021222324252627282930313233343536373839
# config.yaml
#project_name: "Exp"
hyperxs: lora_attn_dim: 64 n_cross_attn_tokens: 8 latent_feature_dim: 512 out_proj_dim: 128
# model:# feature_dim: 768 #n_layersX: 24
data: dataset_name: "CMS" # data_path: './ft-training_set/math_7k.json' data_path: 'ft-training_set/commonsense_147k.json' val_set_size: 512
training: learning_rate: 1e-4 per_device_train_batch_size: 16 per_device_eval_batch_size: 32 max_steps: -1 num_train_epochs: 2 logging_steps: 50 eval_strategy: steps eval_steps: 50 report_to: wandb
infer: # datasets: ['boolq'] eval_batch_size: 128
seed: 42
.gitattributes+10
.gitignoreAdded+216
README.mdAdded+3
SVD64_llama2/config.jsonAdded+96
SVD64_llama2/generation_config.jsonAdded+6
SVD64_llama2/pytorch_model-00001-of-00006.binAdded+3
SVD64_llama2/pytorch_model-00002-of-00006.binAdded+3
SVD64_llama2/pytorch_model-00003-of-00006.binAdded+3
SVD64_llama2/pytorch_model-00004-of-00006.binAdded+3
SVD64_llama2/pytorch_model-00005-of-00006.binAdded+3
SVD64_llama2/pytorch_model-00006-of-00006.binAdded+3
SVD64_llama2/pytorch_model.bin.index.jsonAdded
SVD_llama2/config.jsonAdded+80
SVD_llama2/generation_config.jsonAdded+6
SVD_llama2/pytorch_model-00001-of-00006.binAdded+3
SVD_llama2/pytorch_model-00002-of-00006.binAdded+3
SVD_llama2/pytorch_model-00003-of-00006.binAdded+3
SVD_llama2/pytorch_model-00004-of-00006.binAdded+3
SVD_llama2/pytorch_model-00005-of-00006.binAdded+3
SVD_llama2/pytorch_model-00006-of-00006.binAdded+3
SVD_llama2/pytorch_model.bin.index.jsonAdded
bash_scripts/all.shAdded+3
bash_scripts/cms_eval.shAdded+18
bash_scripts/ft.shAdded+1
bash_scripts/main.shAdded+32
conf_hydra/config.yamlAdded+16
conf_hydra/data/cifa.yamlAdded+3
conf_hydra/data/cs15k.yamlAdded+2
conf_hydra/data/faci.yamlAdded+2
conf_hydra/data/math7k.yamlAdded+2
config_draccus/config.yamlAdded+39
dataset/AQuA/AQuA.jsonAdded
dataset/AQuA/aqua_1.jsonAdded
dataset/AQuA/test.jsonAdded
dataset/ARC-Challenge/test.jsonAdded
dataset/ARC-Challenge/train.jsonAdded
dataset/ARC-Easy/test.jsonAdded
dataset/ARC-Easy/train.jsonAdded
dataset/AddSub/AddSub.jsonAdded
dataset/AddSub/addsub_1.jsonAdded
dataset/AddSub/test.jsonAdded
dataset/MultiArith/MultiArith.jsonAdded
dataset/MultiArith/multiarith_1.jsonAdded
dataset/MultiArith/test.jsonAdded
dataset/SVAMP/SVAMP.jsonAdded
dataset/SVAMP/svamp_1.jsonAdded
dataset/SVAMP/test.jsonAdded
dataset/SingleEq/SingleEq.jsonAdded
dataset/SingleEq/singleeq_1.jsonAdded
dataset/SingleEq/test.jsonAdded