Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.
Python cliconsumer-gpudpofine-tuningggufhuggingfacellmllmopslocal-ailocal-llmloralow-vrammachine-learningollamapeftpythonpytorchqlorasfttransformers
{
"valid": true,
"failures": [],
"checks": {
"trainable_parameters": 96,
"grad_norm": "all reported steps finite and non-zero",
"parameters_changed": true
},
"timing": {
"median_seconds": 5.503868050000165,
"p95_seconds": 5.56110770000123,
"counted_steps": 8,
"warmup_steps_discarded": 4,
"total_seconds": 39.97305530000085
},
"tokens": {
"useful": 27204,
"total": 29184,
"utilisation": 0.9321546052631579
},
"throughput": {
"useful_tokens_per_second": 680.5584360722964,
"total_tokens_per_second": 730.0918026148323
},
"memory": {
"max_memory_allocated_bytes": 12879608320,
"max_memory_reserved_bytes": 16944988160
},
"provenance": {
"device": "cuda",
"card": "NVIDIA GeForce RTX 5070 Laptop GPU",
"cuda_runtime": "13.0",
"compute_capability": "12.0",
"driver": "616.92",
"sm_clock_mhz_after_run": 180,
"platform": "Windows-11-10.0.26200-SP0",
"python": "3.12.10",
"versions": {
"torch": "2.14.0+cu130",
"transformers": "5.17.0",
"peft": "0.20.0",
"trl": "0.29.1",
"bitsandbytes": "0.50.2",
"accelerate": "1.15.0"
},
"dtype": "torch.bfloat16",
"optimizer": "OptimizerNames.ADAMW_TORCH",
"seed": 1234,
"data_seed": 1234
},
"config_hash": "29a22bc9734a04e3e4b8accecef6de171d4a909727ffc57800ca7649480b8e5d",
"steps_requested": 12,
"steps_measured": 12,
"resolved_config": {
"base": "Qwen/Qwen2.5-0.5B-Instruct",
"task": "sft",
"modality": "text",
"backend": "transformers",
"data": {
"train": "bench_fixture_long.jsonl",
"format": "alpaca",
"val_split": 0.1,
"max_length": 512,
"image_dir": null,
"audio_dir": null,
"train_on_responses_only": true,
"train_on_messages_with_train_field": false,
"chat_template": null,
"raft_shuffle_seed": null,
"raft_epoch_shuffle": false,
"replay": null,
"replay_ratio": 0.1,
"replay_seed": null,
"video_dir": null,
"tokenized_path": null,
"streaming": false,
"buffer_size": null,
"shards": null,
"interleave": null,
"mask_history": false,
"train_on_prompt": false,
"eval_on_each_dataset": false,
"split_thinking": false,
"image_min_pixels": null,
"image_max_pixels": null,
"image_resize_algorithm": null,
"video_fps": null,
"video_maxlen": null,
"add_new_tokens": null,
"new_special_tokens": null,
"resize_vocab": false,
"extend_conversation": false,
"skip_prepare_dataset": false,
"remove_unused_columns": false,
"prompt_strategy": null,
"forget_set": null,
"retain_set": null
},
"training": {
"epochs": 1,
"lr": 0.0002,
"batch_size": 8,
"auto_batch_size_strategy": "auto",
"gradient_accumulation_steps": 1,
"seed": 1234,
"data_seed": 1234,
"warmup_ratio": 0.0,
"weight_decay": 0.0,
"max_grad_norm": 1.0,
"lora": {
"r": 16,
"alpha": 32,
"dropout": 0.0,
"target_modules": [
"q_proj",
"v_proj"
],
"target_parameters": null,
"use_dora": false,
"use_rslora": false,
"use_vera": false,
"use_olora": false,
"rank_pattern": null,
"alpha_pattern": null,
"init_strategy": "random",
"loftq_iter": 1,
"loftq_bits": 4
},
"quantization": "none",
"gptq_disable_exllama": true,
"bnb_4bit_quant_storage": null,
"quantization_aware": false,
"fp8_recipe": "tensorwise",
"optimizer": "adamw_torch",
"lr_groups": null,
"expand_layers": null,
"freeze_trainable_layers": null,
"use_mod": false,
"mod_capacity_factor": 0.125,
"load_in_8bit": null,
"load_in_16bit": null,
"scheduler": "linear",
"save_steps": 13,
"logging_steps": 1,
"dpo_beta": 0.1,
"kto_beta": 0.1,
"orpo_beta": 0.1,
"simpo_gamma": 0.5,
"cpo_alpha": 1.0,
"ipo_tau": 0.1,
"bco_beta": 0.1,
"preference_loss": null,
"dpo_beta_schedule": null,
"dpo_beta_end": null,
"dpo_ref_regen_epochs": null,
"preference_loss_weights": null,
"grpo_beta": 0.1,
"num_generations": 4,
"reward_fn": "accuracy",
"verifiable_domain": null,
"prm_reward": null,
"prm_aggregate": "min",
"online_dpo_judge": null,
"online_dpo_loss_type": "sigmoid",
"online_dpo_max_new_tokens": 64,
"asr_language": null,
"asr_task": "transcribe",
"asr_lora": false,
"grpo_variant": null,
"grpo_delta": null,
"grpo_fp16": false,
"long_context_grpo": false,
"vllm_sleep_mode": false,
"rollout_backend": null,
"rollout_func": null,
"ref_model_ema_alpha": null,
"replay_buffer_size": null,
"async_grpo_prefetch": false,
"tis_threshold": null,
"mask_truncated_completions": false,
"defer_rerolling": false,
"skip_zero_advantage": false,
"off_policy_mask_threshold": null,
"vision_grpo": false,
"hub": "hf",
"tts_family": null,
"tts_emotion": null,
"num_labels": null,
"classifier_kind": null,
"label_names": null,
"mole_task_adapters": null,
"mole_top_k": null,
"mole_temperature": null,
"teacher_model": null,
"distill_divergence": null,
"distill_temperature": null,
"distill_mode": "token",
"distill_chunk_size": null,
"distill_checkpoint": false,
"classifier_lora": false,
"ebft_variant": null,
"ebft_temperature": null,
"gdpo_variant": null,
"moe_expert_quant": null,
"train_router_only": false,
"reasoning_effort": null,
"train_on_eot": false,
"kv_cache_type": null,
"fp8_attention": false,
"nvfp4": false,
"unsloth_bnb_4bit": false,
"bnb_4bit_use_double_quant": null,
"llm_int8": false,
"quantize_ref_model": false,
"quantize_reward_model": false,
"echo_trap_enabled": false,
"echo_trap_threshold": 0.6,
"echo_trap_halt": false,
"echo_trap_tokenizer_aware": false,
"rl_checkpoint_save_every_steps": null,
"rl_checkpoint_keep_last": 3,
"rl_checkpoint_include_optimizer": true,
"rl_checkpoint_include_ref_model": false,
"rl_checkpoint_include_rollout_buffer": false,
"minillm_enabled": false,
"minillm_teacher_mix_ratio": 0.0,
"minillm_length_normalize": true,
"minillm_pretrain_anchor_weight": 0.0,
"minillm_pretrain_anchor_path": null,
"minillm_on_policy": false,
"minillm_rollout_length": null,
"uld_strategy": null,
"uld_top_k": null,
"reward_hack_detector": null,
"reward_hack_halt": false,
"reward_hack_mitigation": "off",
"reward_hack_beta_floor": 0.02,
"reward_hack_beta_ceil": 1.0,
"reward_hack_trip_band": 0.3,
"reward_hack_release_band": 0.1,
"reward_hack_dwell_steps": 2,
"reward_hack_release_patience": 3,
"reward_hack_kl_gain": 1.5,
"reward_hack_signals": [
"info_rm"
],
"reward_hack_pid_kp": 0.5,
"reward_hack_pid_ki": 0.1,
"reward_hack_pid_kd": 0.05,
"reward_hack_signal_target": 0.15,
"reward_hack_integral_clamp": 1.0,
"reward_hack_rollback": false,
"reward_hack_rollback_patience": 3,
"reward_hack_max_recovery_attempts": 2,
"reward_hack_signal_smoothing": "none",
"reward_hack_smoothing_window": 8,
"reward_hack_conservative_on_disagreement": false,
"reward_hack_reward_shaping": false,
"reward_hack_shaping_kind": "length",
"reward_hack_shaping_strength": 0.0,
"ppo_epochs": 4,
"ppo_clip_ratio": 0.2,
"ppo_kl_penalty": 0.05,
"reward_model": null,
"loraplus_lr_ratio": null,
"use_lorafa": false,
"use_galore": false,
"galore_rank": 128,
"galore_update_proj_gap": 200,
"galore_scale": 0.25,
"moe_lora": false,
"moe_aux_loss_coeff": 0.01,
"use_liger": false,
"use_flash_attn": false,
"use_ring_attention": false,
"rope_scaling_type": null,
"yarn_factor": null,
"yarn_attn_factor": null,
"yarn_beta_fast": null,
"yarn_beta_slow": null,
"use_longlora": false,
"gradient_checkpointing": false,
"use_cut_ce": false,
"kernel_auto_compose": false,
"packing_cross_doc_attn_mask": false,
"activation_offloading": null,
"embedding_loss": "contrastive",
"embedding_margin": 0.5,
"embedding_pooling": "mean",
"embedding_temperature": 0.05,
"curriculum": false,
"curriculum_metric": "length",
"curriculum_buckets": 4,
"curriculum_dynamic": false,
"curriculum_dynamic_recompute_steps": 50,
"curriculum_dynamic_floor": 0.05,
"curriculum_dynamic_temperature": 1.0,
"loss_watchdog": false,
"loss_watchdog_threshold": 3.0,
"loss_watchdog_patience": 5,
"rewind_log": true,
"loss_spike_recovery": false,
"loss_spike_recovery_max_attempts": 3,
"loss_spike_recovery_lr_decay": 0.5,
"relora_steps": null,
"relora_warmup_ratio": 0.1,
"relora_reset_optimizer": true,
"relora_prune_ratio": 0.9,
"convergence_detection": false,
"convergence_window": 50,
"convergence_rel_tol": 0.005,
"warmup_auto": false,
"auto_mixed_precision": false,
"grad_accum_auto_tune": false,
"grad_accum_pressure_threshold": 0.92,
"freeze_layers": null,
"freeze_ratio": null,
"unfrozen_parameters": null,
"lisa_enabled": false,
"lisa_num_layers": 2,
"lisa_interval_steps": 20,
"lisa_reset_optimizer": true,
"lisa_train_embeddings": true,
"stream_layers": false,
"stream_source": "auto",
"stream_ngram_source": "auto",
"stream_buffers": 2,
"stream_read_ahead": 2,
"stream_pin": null,
"stream_vram_override": null,
"stream_vram_probe": false,
"stream_disk_kind": null,
"packing": false,
"multipack": false,
"neftune_alpha": null,
"forgetting_detection": false,
"forgetting_eval_steps": 100,
"forgetting_threshold": 0.1,
"forgetting_benchmark": "mini_mmlu",
"forgetting_stop": false,
"checkpoint_intelligence": false,
"checkpoint_eval_steps": 200,
"checkpoint_eval_metric": "composite",
"checkpoint_eval_tasks": null,
"checkpoint_keep_top": 3,
"early_stop_on_regression": false,
"early_stop_patience": 2,
"eval_gate": null,
"use_fsdp2_compile": false,
"parallelism": "data",
"pipeline_stages": 1,
"unlearn_method": null,
"unlearn_alpha": null,
"ra_dit_stage": null,
"ra_dit_retriever_model": null,
"citation_faithful": false,
"citation_style": null,
"citation_recall_threshold": null,
"grace_codebook": false,
"grace_codebook_size": null,
"grace_codebook_dim": null
},
"experiment_name": null,
"eval": null,
"advise": null
}
}