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
{
"meta": {
"gpu": "NVIDIA GeForce RTX 5070 Laptop GPU",
"torch": "2.14.0+cu130",
"vram_total_gb": 8.518,
"soup_cli_file": "C:\\Users\\user\\projects\\Soup-r2\\src\\soup_cli\\__init__.py",
"driver": "616.92",
"pcie_gen": "5",
"pcie_width": "8",
"label": "R2 batch control round 0 arm SINGLE batch 3",
"weights": "D:/synth/llama-70b-shape-v32k-f4",
"weights_dir": "D:\\synth\\llama-70b-shape-v32k-f4",
"shard_dir": "C:\\Users\\user\\.soup\\layer-stream\\D___synth__llama-70b-shape-v32k-f4",
"quant": "nf4",
"dtype": "bfloat16",
"tier": "disk",
"pinned": true,
"source_class": "AsyncDiskSource",
"control_sync_source": false,
"read_ahead": 2,
"stripe_dirs": [],
"stripe_roots": [],
"layer_roots": [],
"direct_io": true,
"open_per_root": {
"0": "open_direct"
},
"store_gb": 1.956601912,
"disk_gb": 36.388145344,
"buffers": 2,
"buffer_bytes": 1419731000,
"large_buffer_bytes": 536870912,
"n_layers": 80,
"total_params": 68989231104,
"shapes": {
"hidden": 8192,
"intermediate": 28672,
"layers": 80,
"kv_out": 1024,
"q_out": 8192,
"vocab": 32768,
"decoder_params": 68451041280,
"lm_head_params": 268435456,
"flop_per_token": 411779989504,
"tied": false
},
"lora_r": 8,
"lora_targets": "q_proj,k_proj,v_proj,o_proj",
"batch": 3,
"seq": 512,
"steps": 3,
"warmup": 1,
"shard_seconds": 0.00372769997920841,
"build_seconds": 2.2415204999269918,
"evict_gb": 0.0,
"started": "2026-10-07T15:28:36"
},
"records": [
{
"kind": "step",
"label": "step_plain",
"tokens_per_step": 1536,
"steps": 3,
"warmup": 1,
"events_on": false,
"nocopy": false,
"nodequant": false,
"step_s_mean": 20.66072013330025,
"step_s_min": 20.455391100025736,
"step_s_max": 20.790929599897936,
"tok_per_s": 74.3439720440493,
"layer_loads_per_step": 157.0,
"large_loads_per_step": 2.0,
"bytes_moved_per_step": 70378258732.0,
"implied_h2d_gb_per_s": 3.406379752396273,
"copy_s_per_step": 0.0,
"copy_stream_gb_per_s": null,
"stall_s_per_step": 0.0,
"stall_share": 0.0,
"peak_alloc_gb": 6.311822848,
"peak_reserved_gb": 7.027556352,
"sm_clock_mhz_start": 180,
"sm_clock_mhz_end": 2362,
"records": [
{
"step_s": 20.455391100025736,
"started_unix": 1791368938.4757333,
"loss": 11.969038009643555,
"layer_loads": 157,
"large_loads": 2,
"copy_s": 0.0,
"stall_s": 0.0,
"copy_events": 0
},
{
"step_s": 20.790929599897936,
"started_unix": 1791368958.9313474,
"loss": 11.910778045654297,
"layer_loads": 157,
"large_loads": 2,
"copy_s": 0.0,
"stall_s": 0.0,
"copy_events": 0
},
{
"step_s": 20.735839699977078,
"started_unix": 1791368979.72275,
"loss": 11.796875,
"layer_loads": 157,
"large_loads": 2,
"copy_s": 0.0,
"stall_s": 0.0,
"copy_events": 0
}
],
"ids": {
"shape": [
3,
512
],
"dtype": "int64",
"row_sha256": [
"01a8953cd89bfb3fe6e003606e1e10d7643bbc1c319458eb59ac53c5e0212b9b",
"676866c07ba282c9aa763fbdfd4bcde63e758b6a11e995a0fc04b039395db09a",
"ae6a77fa48999a13be128003098acdad01030c26e3f034b39dec2ee0c22bc6eb"
]
},
"memory": {
"num_alloc_retries": 0,
"num_ooms": 0,
"free_gb": 0.263192576,
"total_gb": 8.5180416
}
},
{
"kind": "ablate",
"label": "B_nocopy_r0",
"tokens_per_step": 1536,
"steps": 3,
"warmup": 1,
"events_on": false,
"nocopy": true,
"nodequant": false,
"step_s_mean": 17.72433879998668,
"step_s_min": 17.617695500026457,
"step_s_max": 17.923134099924937,
"tok_per_s": 86.66049646947363,
"layer_loads_per_step": 157.0,
"large_loads_per_step": 2.0,
"bytes_moved_per_step": 70378258732.0,
"implied_h2d_gb_per_s": 3.970712788002726,
"copy_s_per_step": 0.0,
"copy_stream_gb_per_s": null,
"stall_s_per_step": 0.0,
"stall_share": 0.0,
"peak_alloc_gb": 6.311822848,
"peak_reserved_gb": 7.027556352,
"sm_clock_mhz_start": 2460,
"sm_clock_mhz_end": 2422,
"records": [
{
"step_s": 17.923134099924937,
"started_unix": 1791369018.7485578,
"loss": 12.058713912963867,
"layer_loads": 157,
"large_loads": 2,
"copy_s": 0.0,
"stall_s": 0.0,
"copy_events": 0
},
{
"step_s": 17.63218680000864,
"started_unix": 1791369036.6722436,
"loss": 12.023580551147461,
"layer_loads": 157,
"large_loads": 2,
"copy_s": 0.0,
"stall_s": 0.0,
"copy_events": 0
},
{
"step_s": 17.617695500026457,
"started_unix": 1791369054.3045237,
"loss": 11.973220825195312,
"layer_loads": 157,
"large_loads": 2,
"copy_s": 0.0,
"stall_s": 0.0,
"copy_events": 0
}
],
"arm": "B_nocopy",
"round": 0,
"memory": {
"num_alloc_retries": 0,
"num_ooms": 0,
"free_gb": 0.263192576,
"total_gb": 8.5180416
}
}
]
}