Spaces:
Runtime error
Runtime error
File size: 1,854 Bytes
a57357b 3da7418 20852a7 a57357b 3da7418 a57357b 3da7418 20852a7 3da7418 a57357b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
{
"model": {
"name": "unsloth/phi-4-unsloth-bnb-4bit",
"trust_remote_code": true,
"use_fast_tokenizer": true
},
"tokenizer": {
"chat_template": "phi",
"max_seq_length": 2048,
"padding_side": "right",
"add_eos_token": true
},
"training": {
"per_device_train_batch_size": 24,
"gradient_accumulation_steps": 2,
"learning_rate": 2e-5,
"num_train_epochs": 3,
"max_steps": -1,
"logging_steps": 10,
"save_steps": 200,
"save_total_limit": 5,
"push_to_hub": true,
"hub_strategy": "every_save",
"gradient_checkpointing": true,
"optim": "adamw_torch",
"lr_scheduler_type": "cosine",
"warmup_ratio": 0.05,
"weight_decay": 0.01,
"max_grad_norm": 1.0,
"neftune_noise_alpha": 5
},
"checkpointing": {
"output_dir": "./results",
"save_strategy": "steps",
"save_steps": 100,
"save_total_limit": 3,
"hub_strategy": "every_save"
},
"unsloth": {
"enabled": true,
"r": 32,
"alpha": 16,
"dropout": 0.05,
"target_modules": [
"q_proj",
"k_proj",
"v_proj",
"o_proj",
"gate_proj",
"up_proj",
"down_proj"
]
},
"distributed_training": {
"fsdp_config": {
"enabled": true,
"sharding_strategy": "FULL_SHARD",
"mixed_precision": "BF16",
"activation_checkpointing": true,
"offload_params": false
},
"ddp_find_unused_parameters": false,
"dataloader_num_workers": 4
},
"logging": {
"logging_steps": 50,
"log_level": "info"
},
"huggingface_hub": {
"push_to_hub": true,
"hub_model_id": "phi-4-research-assistant",
"hub_private_repo": true
},
"model_name_or_path": "unsloth/phi-4-unsloth-bnb-4bit",
"model_revision": "main",
"use_flash_attention": true,
"torch_dtype": "bfloat16",
"bf16": true
} |