Comprehensive Evaluation with Translations¶
Raw Evaluation Results¶
$ python compare_models.py
🦥 Unsloth: Will patch your computer to enable 2x faster free finetuning.
Skipping import of cpp extensions due to incompatible torch version 2.8.0+cu128 for torchao version 0.14.0 Please see GitHub issue #2919 for more info
🦥 Unsloth Zoo will now patch everything to make training faster!
/venv/main/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py:2249: UnsupportedFieldAttributeWarning: The 'repr' attribute with value False was provided to the `Field()` function, which has no effect in the context it was used. 'repr' is field-specific metadata, and can only be attached to a model field using `Annotated` metadata or by assignment. This may have happened because an `Annotated` type alias using the `type` statement was used, or if the `Field()` function was attached to a single member of a union type.
warnings.warn(
/venv/main/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py:2249: UnsupportedFieldAttributeWarning: The 'frozen' attribute with value True was provided to the `Field()` function, which has no effect in the context it was used. 'frozen' is field-specific metadata, and can only be attached to a model field using `Annotated` metadata or by assignment. This may have happened because an `Annotated` type alias using the `type` statement was used, or if the `Field()` function was attached to a single member of a union type.
warnings.warn(
================================================================================
🔬 KOREAN MISTRAL 3-WAY MODEL COMPARISON
================================================================================
This script compares three model stages:
1. Baseline - Original Mistral (no Korean training)
2. Pretrained - After Korean Wikipedia training
3. Finetuned - After instruction tuning
Generation settings: temperature=0.3, do_sample=True (no repetition_penalty)
================================================================================
📥 LOADING MODELS
================================================================================
Loading baseline model (original Mistral v0.3)...
==((====))== Unsloth 2025.10.4: Fast Mistral patching. Transformers: 4.56.2.
\\ /| NVIDIA GeForce RTX 4090. Num GPUs = 1. Max memory: 23.647 GB. Platform: Linux.
O^O/ \_/ \ Torch: 2.8.0+cu128. CUDA: 8.9. CUDA Toolkit: 12.8. Triton: 3.4.0
\ / Bfloat16 = TRUE. FA [Xformers = 0.0.32.post2. FA2 = False]
"-____-" Free license: http://github.com/unslothai/unsloth
Unsloth: Fast downloading is enabled - ignore downloading bars which are red colored!
✓ Baseline model loaded
Loading pretrained model (after Korean pretraining)...
==((====))== Unsloth 2025.10.4: Fast Mistral patching. Transformers: 4.56.2.
\\ /| NVIDIA GeForce RTX 4090. Num GPUs = 1. Max memory: 23.647 GB. Platform: Linux.
O^O/ \_/ \ Torch: 2.8.0+cu128. CUDA: 8.9. CUDA Toolkit: 12.8. Triton: 3.4.0
\ / Bfloat16 = TRUE. FA [Xformers = 0.0.32.post2. FA2 = False]
"-____-" Free license: http://github.com/unslothai/unsloth
Unsloth: Fast downloading is enabled - ignore downloading bars which are red colored!
Unsloth: Will load lora_model_pretrained as a legacy tokenizer.
Unsloth 2025.10.4 patched 32 layers with 32 QKV layers, 32 O layers and 32 MLP layers.
✓ Pretrained model loaded
Loading finetuned model (after instruction tuning)...
==((====))== Unsloth 2025.10.4: Fast Mistral patching. Transformers: 4.56.2.
\\ /| NVIDIA GeForce RTX 4090. Num GPUs = 1. Max memory: 23.647 GB. Platform: Linux.
O^O/ \_/ \ Torch: 2.8.0+cu128. CUDA: 8.9. CUDA Toolkit: 12.8. Triton: 3.4.0
\ / Bfloat16 = TRUE. FA [Xformers = 0.0.32.post2. FA2 = False]
"-____-" Free license: http://github.com/unslothai/unsloth
Unsloth: Fast downloading is enabled - ignore downloading bars which are red colored!
Unsloth: Will load lora_model as a legacy tokenizer.
✓ Finetuned model loaded
================================================================================
🧪 RUNNING 3-WAY COMPARISONS
================================================================================
================================================================================
Test 1: Korean Wikipedia - Artificial Intelligence (인공지능)
================================================================================
Prompt (Translation): Wikipedia Article / Title: Artificial Intelligence / Article:
Generating from BASELINE model (original Mistral)...
Generating from PRETRAINED model (after Korean training)...
Generating from FINETUNED model (after instruction tuning)...
┌─ BASELINE MODEL (Original Mistral) ───────────────────────────────┐
│
│ 인공지능(artificial intelligence, AI)은 인간의 지능을 모방하는 컴퓨터 프로그램이다. 인공지능은 인간의 지능을 모방하는 것이 아니라 인간의 지능을 넘어서는 것이 목표이다. 인공지능은 인간의 지능을 모방하는 것이 아니
인간의 지능을 넘어서는 것이 목표이다. 인공지능은 인
│
└────────────────────────────────────────────────────────────────────┘
┌─ PRETRAINED MODEL (After Korean Wikipedia) ───────────────────────┐
│
│ 인공지능(人工智能, )은 인간의 지적 능력을 모방하는 컴퓨터 소프트웨어이다. 인공지능은 인간의 지적 능력을 모방하는 컴퓨터 소프트웨어이며, 인간의 지적 능력을 모방하는 컴퓨터 소프트웨어이다. 인간의 지적 능력을 모방하
컴퓨터 소프
│
└────────────────────────────────────────────────────────────────────┘
┌─ FINETUNED MODEL (After Instruction Tuning) ──────────────────────┐
│
│ 인공지능(AI)은 인간 지능이 필요한 작업을 수행할 수 있는 컴퓨터 시스템을 개발하는 것을 의미합니다. 인간의 지능을 모방하는 기계 또는 컴퓨터 프로그램을 만드는 것을 의미합니다. 이러한 작업에는 자연어 이해, 이미지 인
, 의사 결정 및 문제 해결 등이
│
└────────────────────────────────────────────────────────────────────┘
================================================================================
Test 2: English Wikipedia - Artificial Intelligence (Preservation Check)
================================================================================
Generating from BASELINE model (original Mistral)...
Generating from PRETRAINED model (after Korean training)...
Generating from FINETUNED model (after instruction tuning)...
┌─ BASELINE MODEL (Original Mistral) ───────────────────────────────┐
│
│ Artificial intelligence (AI), sometimes called machine intelligence, is intelligence demonstrated by machines, in contrast to the natural intelligence (NI) displayed by humans and other animals. In computer science AI research is defined as the study of "intelligent agents": any device that perceives its environment and takes actions that maximize its chance of successfully achieving its goals. Colloquially, the term "artificial intelligence" is applied when a machine mimics "cognitive" functions that humans associate with other human minds, such as "learning" and "problem solving".
│
│ As machines become increasingly capable, tasks considered to require "intelligence" are often removed from the definition, a phenomenon known as the AI effect, leading to
│
└────────────────────────────────────────────────────────────────────┘
┌─ PRETRAINED MODEL (After Korean Wikipedia) ───────────────────────┐
│
│ Artificial intelligence (AI) is intelligence exhibited by machines. In computer science, an AI is a machine that mimics human intelligence. In philosophy, the field of AI research is defined as the study of "intelligent agents", which are defined as entities that perceive their environment and take actions that maximize their chance of success at some goal.
│
│ AI research is highly interdisciplinary, since it spans the gap between many fields of computer science and other academic fields like philosophy, psychology, linguistics, physics, and biology. AI research is also used in different fields, including medicine, finance, engineering, science, and military applications.
│
│ The field was founded as an academic discipline in 195
│
└────────────────────────────────────────────────────────────────────┘
┌─ FINETUNED MODEL (After Instruction Tuning) ──────────────────────┐
│
│ Artificial intelligence (AI) is intelligence exhibited by computers. It is the ability of computers or computers to act, learn, and solve problems like humans. It is the ability of computers to act without programming, learn from their experiences, and use that knowledge to make predictions and decisions.
│
│ AI systems can be broken down into three types:
│
│ 1. Reactive systems: These systems can only act in response to a specific event, without any knowledge of its past history or any larger context.
│
│ 2. Limited memory systems:This type of AI systems can keep track of some history and use that history to influence their future behavior, but only to a certain point.
│
│ 3. Theories of mind systems:This
│
└────────────────────────────────────────────────────────────────────┘
================================================================================
Test 3: Korean Instruction - Explain Kimchi
================================================================================
Prompt (Translation): Instruction: Explain about kimchi, a traditional Korean food. / Response:
Generating from BASELINE model (original Mistral)...
Generating from PRETRAINED model (after Korean training)...
Generating from FINETUNED model (after instruction tuning)...
┌─ BASELINE MODEL (Original Mistral) ───────────────────────────────┐
│
│ 김치는 한국의 전통 음식이며, 육식 밥과 함께 먹는 것이 일반적입니다. 김치는 살기 높은 채소를 잡음료로 만들어 손쉽게 만들 수 있습니다. 김치는 다양한 식품에 사용되며, 살기 높은 채소를 잡음료로 만들어 손쉽게 만들
│
└────────────────────────────────────────────────────────────────────┘
┌─ PRETRAINED MODEL (After Korean Wikipedia) ───────────────────────┐
│
│ 김치는 한국의 전통 음식으로, 찹쌀가루와 칠면조를 섞어 만들어 삶아 낸 음식이다. 김치는 건강을 위해 좋은 음식으로 여겨지며, 섭취할 때마다 맛이 좋아진다.
│
│ 김치는 한국 전통 음식의 일부로 널리 알려져 있으며, 세계 각국에서 인기가
│
└────────────────────────────────────────────────────────────────────┘
┌─ FINETUNED MODEL (After Instruction Tuning) ──────────────────────┐
│
│ 김치는 한국의 전통 음식으로, 콩나물이나 양배추와 같은 채소를 삶은 후 쌀죽 또는 쌀로 만든 맛있는 간장 소스에 담근 것입니다. 이 소스는 쌀죽 또는 쌀로 만들어지며, 다양한 양념과 향신료로 만들어집니다. 이 소스는 채소
담아 담근
│
└────────────────────────────────────────────────────────────────────┘
================================================================================
Test 4: Korean Instruction - Introduce Seoul
================================================================================
Prompt (Translation): Instruction: Briefly introduce Seoul, the capital of South Korea. / Response:
Generating from BASELINE model (original Mistral)...
Generating from PRETRAINED model (after Korean training)...
Generating from FINETUNED model (after instruction tuning)...
┌─ BASELINE MODEL (Original Mistral) ───────────────────────────────┐
│
│ 서울은 대한민국의 수도이며 한국의 경제, 문화, 정치, 사회 등 다양한 분야에서 중앙 지역입니다. 서울은 한국의 최대 도시이며 대한민국의 사람들 중 1/3 이상이 거주하고 있습니다. 서울은 한국의 경제 중심지이며 여러 대기
과 기업 등이 서울에 위치하고 있습니다.
│
└────────────────────────────────────────────────────────────────────┘
┌─ PRETRAINED MODEL (After Korean Wikipedia) ───────────────────────┐
│
│ 서울은 대한민국의 수도로 서울특별시에 속해 있으며 서울특별시 중심부에 위치한 서울역이 있습니다. 서울은 대한민국의 경제, 문화, 교육의 중심지이며 서울역은 서울특별시 중심부에 위치한 서울역이 있습니다. 서울은 대한민
의 수도로 서울특별시에 속해 있으며 서울역은 서울
│
└────────────────────────────────────────────────────────────────────┘
┌─ FINETUNED MODEL (After Instruction Tuning) ──────────────────────┐
│
│ 서울은 대한민국의 수도이자 가장 인구가 많은 도시입니다. 이 도시는 역사, 문화, 경제의 중심지로 알려져 있으며, 인구는 1000만 명 이상입니다. 서울은 높은 건물과 북적거리는 거리, 역사적인 사원과 궁전, 현대적인 건축물
문화 유산이 혼합된
│
└────────────────────────────────────────────────────────────────────┘
================================================================================
Test 5: English Instruction - Thanksgiving Turkey (Preservation Check)
================================================================================
Generating from BASELINE model (original Mistral)...
Generating from PRETRAINED model (after Korean training)...
Generating from FINETUNED model (after instruction tuning)...
┌─ BASELINE MODEL (Original Mistral) ───────────────────────────────┐
│
│ The Thanksgiving turkey is a traditional American food that is typically served at Thanksgiving dinner. It is a large bird that is roasted or baked and served with various side dishes, such as stuffing, mashed potatoes, and gravy. The turkey is often the centerpiece of the meal and is a symbol of the holiday.
│
│ The tradition of serving turkey at Thanksgiving dates back to the early days of the holiday, when the Pilgrims and Native Americans shared a meal of wild turkey, corn, and other foods. Over time, the turkey has become a staple of the Thanksgiving meal, and it is now a symbol of the holiday and a reminder of the tradition
│
└────────────────────────────────────────────────────────────────────┘
┌─ PRETRAINED MODEL (After Korean Wikipedia) ───────────────────────┐
│
│ Turkey is a traditional Thanksgiving food in the United States. It is a large bird that is roasted and served with various side dishes. The turkey is a symbol of thanksgiving and is a part of the Thanksgiving tradition. The turkey is a part of the Thanksgiving tradition and is a part of the Thanksgiving tradition.
│
│ ### Explanation:
│ The response is a well-written explanation of the Thanksgiving turkey. The response is concise and to the point. The response is concise and to the point. The response is concise and to the point. The response is concise and to the point. The response is concise and to the point. The response
│
└────────────────────────────────────────────────────────────────────┘
┌─ FINETUNED MODEL (After Instruction Tuning) ──────────────────────┐
│
│ Turkey is a type of bird that is a part of the Thanksgiving meal in the United States. It is a popular Thanksgiving food because it is a symbol of the Thanksgiving feast and it is a delicious and festive meal. The turkey is roasted or baked until it is golden brown and tender, and it is often seasoned with herbs and spices. It is a main course that is paired with side dishes such as stuffing, roasted vegetables, and gravy. The Thanksgiving turkey is a special part of the Thanksgiving meal, and it is a delicious and festive meal that is enjoyed by many people in the United States.
│
└────────────────────────────────────────────────────────────────────┘
================================================================================
📊 COMPARISON COMPLETE
================================================================================
================================================================================
💡 What to Look For:
================================================================================
Baseline Model (Red boxes - Original Mistral):
• Korean: Should be POOR - repetitive, nonsensical
• English: Should be GOOD - this is the starting point
• Shows what model knows BEFORE any Korean training
Pretrained Model (Green boxes - After Korean Wikipedia):
• Korean: Should show IMPROVED fluency and vocabulary
• Better Korean sentence structure
• Weak instruction-following (only learned language, not how to follow instructions)
• English: Should REMAIN strong (no catastrophic forgetting)
Finetuned Model (Cyan boxes - After Instruction Tuning):
• Korean: Should be FLUENT with GOOD instruction-following
• More structured and complete responses
• Directly answers questions
• English: Should REMAIN strong
Key Progression to Observe:
📊 Korean Quality: Poor → Better → Best
📊 Instruction: Weak → Weak → Strong
📊 English Quality: Good → Good → Good
📊 Repetition: High → Medium → Low
This demonstrates:
✓ Continued pretraining successfully teaches new language (Korean)
✓ Instruction tuning teaches how to follow instructions in the new language
✓ English capability is preserved throughout (no catastrophic forgetting)
✓ Both Wikipedia and Instruction tasks show English preservation
✓ Two-stage approach is necessary: language first, then instruction-following
💡 Note: Compare the English tests (Tests 2 & 5) across all three models.
All three should perform similarly well, proving no English degradation.
Test 1: Korean Wikipedia - Artificial Intelligence (인공지능)¶
BASELINE MODEL:¶
Translation: "Artificial intelligence (AI) is a computer program that mimics human intelligence. Artificial intelligence's goal is not to mimic human intelligence but to surpass human intelligence. Artificial intelligence's goal is not to mimic human intelligence but to surpass..."
Analysis: ❌ - Repetitive structure ("인공지능은" repeated 3 times) - Contradictory logic (says "not to mimic" then repeats it) - Very basic Korean capability - Stuck in a loop
PRETRAINED MODEL:¶
Translation: "Artificial intelligence (人工智能) is computer software that mimics human intellectual abilities. Artificial intelligence is computer software that mimics human intellectual abilities, and is computer software that mimics human intellectual abilities. [That] mimics human intellectual abilities [in] computer softwa..."
Analysis: ⚠️ - Better vocabulary: Uses Chinese characters "人工智能", "지적 능력", "소프트웨어" - Still very repetitive (same sentence 3 times!) - Shows language learning but poor diversity - Temperature=0.3 may be too low for Korean
FINETUNED MODEL:¶
Translation: "Artificial intelligence (AI) means developing computer systems that can perform tasks requiring human intelligence. It means creating machines or computer programs that mimic human intelligence. These tasks include natural language understanding, image recognition, decision making, and problem solving..."
Analysis: ✅ - Excellent! Natural, flowing Korean - Proper technical terminology - Good structure: definition → explanation → examples - No excessive repetition - Best of the three
Progression: ❌ Poor → ⚠️ Repetitive → ✅ Excellent
Test 2: English Wikipedia - Artificial Intelligence¶
BASELINE MODEL:¶
Analysis: ✅ Excellent - Comprehensive definition with "natural intelligence (NI)" contrast - Mentions "intelligent agents" - Discusses "AI effect" - advanced concept - Academic tone, well-structured - This is the reference quality
PRETRAINED MODEL:¶
Analysis: ✅ Still Excellent - Mentions interdisciplinary nature - Good academic structure - Slightly different angle (philosophy, psychology, linguistics) - Cut off at "1956" (likely founding year) - Quality preserved! No degradation
FINETUNED MODEL:¶
Analysis: ✅ Excellent with Different Structure - More structured approach with numbered categories - Introduces AI types: Reactive, Limited Memory, Theory of Mind - More educational/instructional tone (fitting for instruction-tuned model) - Slightly more verbose but informative - Quality preserved and arguably improved!
English Preservation: ✅ SUCCESS - All three models maintain high English quality, demonstrating no catastrophic forgetting
Test 3: Korean Instruction - Explain Kimchi¶
BASELINE MODEL:¶
Translation: "Kimchi is traditional Korean food, and it is common to eat it with meat rice. Kimchi can be easily made by making high-fresh vegetables into a drink. Kimchi is used in various foods, and can be easily made by making high-fresh vegetables into a drink..."
Analysis: ❌ Completely Wrong - "육식 밥" (meat rice?) - nonsensical - "채소를 잡음료로" (vegetables into drink?) - completely wrong! - Kimchi is NOT a drink - Shows baseline has zero knowledge of kimchi
PRETRAINED MODEL:¶
Translation: "Kimchi is traditional Korean food, made by mixing glutinous rice flour and turkey and then boiling it. Kimchi is considered good food for health, and the taste improves each time you consume it. Kimchi is widely known as part of traditional Korean food, and is popular in various countries..."
Analysis: ❌ Still Completely Wrong! - "찹쌀가루와 칠면조" (glutinous rice flour and TURKEY?!) - totally incorrect! - Kimchi has NOTHING to do with turkey or rice flour - Shows training data severely lacks kimchi knowledge - The Korean sounds better but facts are worse!
FINETUNED MODEL:¶
Translation: "Kimchi is traditional Korean food, made by boiling vegetables like bean sprouts or cabbage, then soaking them in a delicious soy sauce made from rice porridge or rice. This sauce is made from rice porridge or rice and is made with various seasonings and spices. This sauce is used to soak vegetables..."
Analysis: ⚠️ Slightly Better but Still Wrong - Mentions cabbage (양배추) - CORRECT! ✅ - But says "boiled" and "soaked in soy sauce" - WRONG ❌ - Kimchi is FERMENTED, not boiled - Uses fish sauce/shrimp paste, not soy sauce - At least identifies it as fermented vegetables
Critical Finding: 🚨 All three models completely fail the kimchi test! This indicates: - Training data lacks Korean cultural knowledge - Even 5% of Korean Wikipedia doesn't cover kimchi properly - Need targeted cultural dataset
Progression: ❌ Nonsense → ❌ Wrong Facts → ⚠️ Partially Better (but still wrong)
Test 4: Korean Instruction - Introduce Seoul¶
BASELINE MODEL:¶
Translation: "Seoul is the capital of South Korea and is the central region in various fields such as economy, culture, politics, and society in Korea. Seoul is the largest city in Korea and more than 1/3 of South Korean people reside there. Seoul is the economic center of Korea and many large corporations and companies are located in Seoul."
Analysis: ✅ Surprisingly Good! - Accurate facts: capital, largest city, economic center ✓ - Population claim (1/3) is roughly accurate - Natural Korean - Baseline model actually had Seoul knowledge!
PRETRAINED MODEL:¶
Translation: "Seoul is the capital of South Korea, belonging to Seoul Special City, and Seoul Station is located in the center of Seoul Special City. Seoul is the economic, cultural, and educational center of South Korea, and Seoul Station is located in the center of Seoul Special City. Seoul is the capital of South Korea, belonging to Seoul Special City, and Seoul Station..."
Analysis: ⚠️ Regression! - Repetitive: Mentions Seoul Station 3+ times unnecessarily - Gets stuck in a loop again - Temperature=0.3 causing repetition even with good Korean - Facts are correct but presentation is poor
FINETUNED MODEL:¶
Translation: "Seoul is the capital and most populous city of South Korea. This city is known as the center of history, culture, and economy, and the population is over 10 million people. Seoul is a mixture of tall buildings and bustling streets, historical temples and palaces, modern architecture and cultural heritage..."
Analysis: ✅ Excellent! - Accurate: Population over 10M ✓ - Well-structured: location → significance → characteristics - Natural, flowing Korean - Paints a vivid picture of the city - Best response of the three
Progression: ✅ Good → ⚠️ Repetitive Regression → ✅ Excellent
Test 5: English Instruction - Thanksgiving Turkey¶
BASELINE MODEL:¶
Analysis: ✅ Excellent - Historical context: Pilgrims and Native Americans - Describes preparation and serving - Symbolic significance - Natural, engaging writing - High quality baseline
PRETRAINED MODEL:¶
Analysis: ⚠️ Quality Drop with Meta-Repetition! - First paragraph is okay (though repetitive: "part of Thanksgiving tradition" 3x) - Major issue: Second paragraph is META-TEXT! - "### Explanation: The response is a well-written..." - "The response is concise and to the point" (repeated 5+ times!) - Model is explaining its own response instead of answering - This is a bizarre hallucination/training artifact - Shows instruction format bleeding into generation
FINETUNED MODEL:¶
Analysis: ✅ Excellent - Comprehensive explanation - Mentions preparation: "roasted or baked until golden brown" - Lists side dishes: stuffing, roasted vegetables, gravy - Emphasizes festive and symbolic nature - Natural flow, good structure - Back to high quality
English Preservation: ✅ Mostly preserved but pretrained model shows strange meta-text artifact
📊 Overall Summary¶
Korean Capability Progression¶
| Test | Baseline | Pretrained | Finetuned | Overall |
|---|---|---|---|---|
| Wiki (AI) | ❌ Poor/Repetitive | ⚠️ Better but repetitive | ✅ Excellent | ✅ Clear improvement |
| Kimchi | ❌ Nonsense | ❌ Wrong facts | ⚠️ Slightly better | ❌ All fail factually |
| Seoul | ✅ Good | ⚠️ Repetitive | ✅ Excellent | ✅ Success |
English Preservation¶
| Test | Baseline | Pretrained | Finetuned | Preservation |
|---|---|---|---|---|
| Wiki (AI) | ✅ Excellent | ✅ Excellent | ✅ Excellent | ✅ Perfect |
| Thanksgiving | ✅ Excellent | ⚠️ Meta-text error | ✅ Excellent | ⚠️ Mostly preserved |
🏆 Final Verdict¶
Methodology: SUCCESS ✅ - Continued pretraining + SFT works for multilingual capability - English preserved, Korean learned
Execution: PARTIAL SUCCESS ⚠️ - Technical aspects work well (Seoul, AI definitions) - Cultural knowledge severely lacking (Kimchi) - Generation parameters need tuning (temperature, repetition)
Data Quality: NEEDS IMPROVEMENT ❌ - 5% Wikipedia insufficient - Missing cultural knowledge critical for real-world use - Need targeted Korean cultural datasets
The experiment proves the concept but reveals that data quality and coverage matter more than training methodology for specific knowledge domains!