=== RUN HEADER === Timestamp: 2026-04-12T16:51:53 Model dir: D:\Models\gemma-3-1b-pt Model file: D:\Models\gemma-3-1b-pt\model.safetensors Output file: D:\Models\gemma-3-1b-pt\test_layers_1_swap_q2_output.txt Target layers: [1] Target tensors: 7 - model.layers.1.self_attn.q_proj.weight - model.layers.1.self_attn.k_proj.weight - model.layers.1.self_attn.v_proj.weight - model.layers.1.self_attn.o_proj.weight - model.layers.1.mlp.gate_proj.weight - model.layers.1.mlp.up_proj.weight - model.layers.1.mlp.down_proj.weight Levels: [-0.75, -0.25, 0.25, 0.75] Block size: 64 Use sampling: False Max new tokens: 80 Seed: 42 Loading tokenizer/model from: D:\Models\gemma-3-1b-pt === BASELINE GENERATION === --- Prompt 1 --- PROMPT: 'Once upon a time' Once upon a time, there was a little girl who loved to read. She loved to read books, and she loved to read books about animals. She loved to read books about animals that were funny, and books that were sad, and books that were scary. She loved to read books about animals that were funny, and books that were sad, and books that were scary. She loved to read books about animals that --- Prompt 2 --- PROMPT: 'The capital of France is' The capital of France is a city of contrasts. It is a city of history, culture, and art. It is a city of the rich and the poor. It is a city of the beautiful and the ugly. It is a city of the famous and the unknown. It is a city of the famous and the unknown. It is a city of the famous and the unknown. It is a city of the famous and --- Prompt 3 --- PROMPT: 'Python is a programming language that' Python is a programming language that is used for a wide range of applications. It is a high-level language that is easy to learn and use. It is also a very versatile language that can be used for a wide range of applications. Python is a very popular language and is used by many companies and organizations. It is also used by many individuals who are interested in learning programming. Python is a very powerful language that can be --- Prompt 4 --- PROMPT: 'In a shocking discovery, scientists found' In a shocking discovery, scientists found that the human brain is not the only organ that can be affected by the COVID-19 virus. The study, published in the journal Nature, found that the virus can also affect the heart. The study was conducted by a team of researchers from the University of California, San Francisco, and the University of California, San Diego. The researchers used a mouse model to --- Prompt 5 --- PROMPT: 'Q: What is 2 + 2?\nA:' Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: === QUANTIZING TARGET TENSORS === Reading: model.layers.1.self_attn.q_proj.weight shape: (1024, 1152) mse: 0.00010693 max abs err: 0.16210938 Reading: model.layers.1.self_attn.k_proj.weight shape: (256, 1152) mse: 0.00020224 max abs err: 0.08154297 Reading: model.layers.1.self_attn.v_proj.weight shape: (256, 1152) mse: 0.00021702 max abs err: 0.06494141 Reading: model.layers.1.self_attn.o_proj.weight shape: (1152, 1024) mse: 0.00008120 max abs err: 0.04980469 Reading: model.layers.1.mlp.gate_proj.weight shape: (6912, 1152) mse: 0.00014803 max abs err: 0.13769531 Reading: model.layers.1.mlp.up_proj.weight shape: (6912, 1152) mse: 0.00014968 max abs err: 0.08544922 Reading: model.layers.1.mlp.down_proj.weight shape: (1152, 6912) mse: 0.00000721 max abs err: 0.04516602 === AGGREGATE ERROR === Tensor count: 7 Average MSE: 0.00013033 Worst max abs: 0.16210938 === SWAPPING TENSORS INTO MODEL === === SWAPPED GENERATION === --- Prompt 1 --- PROMPT: 'Once upon a time' Once upon a time, there was a little girl who lived in a small town in the United States. She was a normal little girl, with a normal little family. She had a little brother, a little sister, and a little dog. She was a normal little girl, until one day, she met a little boy. The little boy was a little different from the other boys in the town. He was --- Prompt 2 --- PROMPT: 'The capital of France is' The capital of France is a city of contrasts. The city is a mix of old and new, of the past and the present. The city is a mix of the old and the new, of the past and the present. The city is a mix of the old and the new, of the past and the present. The city is a mix of the old and the new, of the past and the present. The --- Prompt 3 --- PROMPT: 'Python is a programming language that' Python is a programming language that is used to create applications and programs. It is a high-level language that is easy to learn and use. It is also a general-purpose language that can be used for a variety of purposes. Python is a popular language that is used for a variety of purposes. It is used for creating applications and programs. It is also used for creating games and websites. It is also used for creating --- Prompt 4 --- PROMPT: 'In a shocking discovery, scientists found' In a shocking discovery, scientists found that the human brain is not as big as we thought. The study, published in the journal Nature, found that the human brain is actually smaller than we thought. The study was conducted by a team of researchers from the University of California, San Diego, and the University of California, San Francisco. The researchers used a technique called magnetic resonance imaging (MRI) to measure --- Prompt 5 --- PROMPT: 'Q: What is 2 + 2?\nA:' Q: What is 2 + 2? A: 4 Q: What is 3 + 3? A: 6 Q: What is 4 + 4? A: 8 Q: What is 5 + 5? A: 10 Q: What is 6 + 6? A: 12 Q: What is 7 + 7? === RESTORING ORIGINAL TENSORS === === RESTORED GENERATION === --- Prompt 1 --- PROMPT: 'Once upon a time' Once upon a time, there was a little girl who loved to read. She loved to read books, and she loved to read books about animals. She loved to read books about animals that were funny, and books that were sad, and books that were scary. She loved to read books about animals that were funny, and books that were sad, and books that were scary. She loved to read books about animals that --- Prompt 2 --- PROMPT: 'The capital of France is' The capital of France is a city of contrasts. It is a city of history, culture, and art. It is a city of the rich and the poor. It is a city of the beautiful and the ugly. It is a city of the famous and the unknown. It is a city of the famous and the unknown. It is a city of the famous and the unknown. It is a city of the famous and --- Prompt 3 --- PROMPT: 'Python is a programming language that' Python is a programming language that is used for a wide range of applications. It is a high-level language that is easy to learn and use. It is also a very versatile language that can be used for a wide range of applications. Python is a very popular language and is used by many companies and organizations. It is also used by many individuals who are interested in learning programming. Python is a very powerful language that can be --- Prompt 4 --- PROMPT: 'In a shocking discovery, scientists found' In a shocking discovery, scientists found that the human brain is not the only organ that can be affected by the COVID-19 virus. The study, published in the journal Nature, found that the virus can also affect the heart. The study was conducted by a team of researchers from the University of California, San Francisco, and the University of California, San Diego. The researchers used a mouse model to --- Prompt 5 --- PROMPT: 'Q: What is 2 + 2?\nA:' Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: === RUN SETTINGS === Levels: [-0.75, -0.25, 0.25, 0.75] Block size: 64 Use sampling: False Max new tokens: 80 Target layers: [1] === COMPARISON SUMMARY === --- Prompt 1 --- PROMPT: 'Once upon a time' Baseline == Swapped: False Baseline == Restored: True First diff index: 47 Baseline snippet: on a time, there was a little girl who loved to read. She loved to read books, and she loved to read books about animals Swapped snippet: on a time, there was a little girl who lived in a small town in the United States. She was a normal little girl, with a --- Prompt 2 --- PROMPT: 'The capital of France is' Baseline == Swapped: False Baseline == Restored: True First diff index: 46 Baseline snippet: pital of France is a city of contrasts. It is a city of history, culture, and art. It is a city of the rich and the poor Swapped snippet: pital of France is a city of contrasts. The city is a mix of old and new, of the past and the present. The city is a mix --- Prompt 3 --- PROMPT: 'Python is a programming language that' Baseline == Swapped: False Baseline == Restored: True First diff index: 46 Baseline snippet: is a programming language that is used for a wide range of applications. It is a high-level language that is easy to le Swapped snippet: is a programming language that is used to create applications and programs. It is a high-level language that is easy to --- Prompt 4 --- PROMPT: 'In a shocking discovery, scientists found' Baseline == Swapped: False Baseline == Restored: True First diff index: 70 Baseline snippet: tists found that the human brain is not the only organ that can be affected by the COVID-19 virus. The study, published Swapped snippet: tists found that the human brain is not as big as we thought. The study, published in the journal Nature, foun --- Prompt 5 --- PROMPT: 'Q: What is 2 + 2?\nA:' Baseline == Swapped: False Baseline == Restored: True First diff index: 35 Baseline snippet: Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A: 4 Q: What is 2 + 2? A Swapped snippet: Q: What is 2 + 2? A: 4 Q: What is 3 + 3? A: 6 Q: What is 4 + 4? A: 8 Q: What is 5 + 5? A: 10 Q: What is 6 + 6?