Vendor pinned MeZO, AGZO, LOZO and LoREN sources with independent environments. Add direct in-place fix/adjust/node training, derived history-free basis gradients, development-best checkpoints and experiment tooling. Keep models, datasets, caches and credentials outside Git. Validation: 93 project tests passed; 521 vendored author files verified.
96 lines
3.9 KiB
JSON
96 lines
3.9 KiB
JSON
{
|
|
"commit": "552cb1b710767f9a6e1dc8f9645d7640376f9941",
|
|
"files": {
|
|
"templates.py": {
|
|
"upstream": "baselines/mezo/large_models/templates.py",
|
|
"upstream_sha256": "bc80e8f55c4d7cfdd3ca8493131297b6c7687d7ebc714ee5aebe16c6856ec2f6",
|
|
"reused_sha256": "bc80e8f55c4d7cfdd3ca8493131297b6c7687d7ebc714ee5aebe16c6856ec2f6",
|
|
"changes": []
|
|
},
|
|
"metrics.py": {
|
|
"upstream": "baselines/mezo/large_models/metrics.py",
|
|
"upstream_sha256": "a9146177b85b5aa654583ac2ed1f0c6aefb8940bf86aa4964ad02bd46165c94c",
|
|
"reused_sha256": "a9146177b85b5aa654583ac2ed1f0c6aefb8940bf86aa4964ad02bd46165c94c",
|
|
"changes": []
|
|
},
|
|
"tasks.py": {
|
|
"upstream": "baselines/mezo/large_models/tasks.py",
|
|
"upstream_sha256": "693c28ccc7e02997a7dced601f15a89d67a514581f98d1bc642768ef3271ed58",
|
|
"reused_sha256": "11f2904364f63f462aebb64adc191dc59fb0e0ad632c474f80c1d8617af45376",
|
|
"changes": [
|
|
{
|
|
"old": "from templates import *",
|
|
"new": "from .templates import *"
|
|
},
|
|
{
|
|
"old": "from utils import temp_seed",
|
|
"new": "from .utils import temp_seed"
|
|
},
|
|
{
|
|
"old": "from datasets import load_dataset",
|
|
"new": "from .assets import load_dataset"
|
|
}
|
|
]
|
|
},
|
|
"utils.py": {
|
|
"upstream": "baselines/mezo/large_models/utils.py",
|
|
"upstream_sha256": "04686e63041fcc9efce7284ead16c8b5a5aa6f6e648ede447b587cad9531b0aa",
|
|
"reused_sha256": "2b4df62167638e61f63ab7d90857d0d7114bb656f84b61f8e4f4ff68d0495570",
|
|
"changes": [
|
|
{
|
|
"old": "if tokenizer.add_bos_token:",
|
|
"new": "if getattr(tokenizer, \"add_bos_token\", False):"
|
|
}
|
|
]
|
|
},
|
|
"_upstream_run.py": {
|
|
"upstream": "baselines/mezo/large_models/run.py",
|
|
"upstream_sha256": "00b864c0e53c28f02572a510e6d612bfcca38682be843054bc1806354815bd81",
|
|
"reused_sha256": "32d6dc17ab9da185912c813b80487ce2db28fd213ac31b03cab6c801e9d742ec",
|
|
"changes": [
|
|
{
|
|
"old": "import tasks",
|
|
"new": "from . import tasks"
|
|
},
|
|
{
|
|
"old": "from tasks import get_task",
|
|
"new": "from .tasks import get_task"
|
|
},
|
|
{
|
|
"old": "from metrics import calculate_metric",
|
|
"new": "from .metrics import calculate_metric"
|
|
},
|
|
{
|
|
"old": "from utils import *",
|
|
"new": "from .utils import *"
|
|
},
|
|
{
|
|
"old": "from trainer import OurTrainer",
|
|
"new": "from .trainer import OurTrainer"
|
|
},
|
|
{
|
|
"old": "free_in_GB = int(torch.cuda.mem_get_info()[0]/1024**3)",
|
|
"new": "free_in_GB = int(torch.cuda.mem_get_info()[0]/1024**3) if torch.cuda.is_available() else 0"
|
|
},
|
|
{
|
|
"old": "config=config,\n )",
|
|
"new": "config=config,\n torch_dtype=torch.float32, attn_implementation=\"eager\", local_files_only=True,\n )"
|
|
},
|
|
{
|
|
"old": "tokenizer = AutoTokenizer.from_pretrained(self.args.model_name, use_fast=False)",
|
|
"new": "tokenizer = AutoTokenizer.from_pretrained(self.args.model_name, use_fast=\"qwen\" in self.args.model_name.lower(), local_files_only=True)\n if tokenizer.pad_token_id is None:\n tokenizer.pad_token = tokenizer.eos_token"
|
|
},
|
|
{
|
|
"old": "if self.args.save_on_interrupt:\n trainer.add_callback",
|
|
"new": "self.trainer = trainer\n if self.args.save_on_interrupt:\n trainer.add_callback"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"trainer_reuse": {
|
|
"upstream": "baselines/mezo/large_models/trainer.py:OurTrainer.zo_forward",
|
|
"ast_identical": true,
|
|
"base": "transformers.Trainer (modern supported API)",
|
|
"reason": "MeZO 2023 copied Trainer imports removed private APIs; retain original zo_forward and Framework, replace only inner loop with structured branches"
|
|
}
|
|
} |