Downloads · 30 days
0
Nishef/SmolLM2-360M-Full_ENHANCED_KTO_20251225_074953
SmolLM2-360M-Full_ENHANCED_KTO_20251225_074953 is a text generation model from Nishef. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
<div align="center" <img src="thesisplots/benchmarkresults.png" alt="Benchmark Results" width="700"/ </div
Downloads · 30 days
0
Access
Public
Updated Jan 8, 2026
Repo size
16 MB
Likes
0
Public
Click a slice to open those files.
.safetensors13.1 MB · 63%
From the Hugging Face model README
This model is a LoRA Adapter fine-tuned from HuggingFaceTB/SmolLM2-360M using Enhanced KTO (Kahneman-Tversky Optimization) with authentic Prospect Theory components.
This model was developed as part of thesis research on LLM Alignment using Preference Optimization Methods.
| Property | Value |
|---|---|
| Base Model | HuggingFaceTB/SmolLM2-360M |
| Training Method | Enhanced KTO |
| Model Type | LoRA Adapter |
| Training Date | December 2025 |
| Framework | PyTorch + Transformers + PEFT |
| Benchmark | Score |
|---|---|
| HellaSwag (10-shot) | 0.496 |
| TruthfulQA (0-shot MC2) | 0.390 |
| MMLU-Mini (5-shot) | 0.289 |
This implementation incorporates multiple Prospect Theory-inspired components:
| Component | Status | Description |
|---|---|---|
| Value Function | Active | Asymmetric loss treatment reflecting loss aversion (losses weighted ~2x gains) |
| Probability Weighting | Active | Non-linear transformation of model confidence scores |
| Odds Ratio Integration | Active | ORPO-inspired reference-free preference modeling |
| BCO Shift | Implemented but Disabled | Baseline-corrected optimization (see note below) |
The BCO (Baseline-Corrected Optimization) Shift component was fully implemented in the codebase following the approach described in recent preference optimization literature. However, it was disabled for final training due to the following observations during hyperparameter tuning:
The BCO Shift code remains in the implementation for transparency and future research. We hypothesize that a staged training approach (enabling BCO after initial convergence) or component-specific gradient clipping may enable stable integration.




| Parameter | Value |
|---|---|
| Epochs | 1 |
| Batch Size | 2 |
| Gradient Accumulation | 8 |
| Effective Batch Size | 16 |
| Learning Rate | 2e-4 |
| Max Sequence Length | 512 |
| LoRA Rank | 16 |
| LoRA Alpha | 32 |
| Dataset | Combined Preference Dataset (HH-RLHF + SHP + OpenAssistant) |
| Beta (KTO) | 0.1 |
Training uses a Combined Preference Dataset built via Round-Robin Sampling from three sources:
| Source | Total Samples | Interactions |
|---|---|---|
| Anthropic HH-RLHF | 321,600 | 61,568 |
| Stanford Human Preferences (SHP) | 697,436 | 38,984 |
| OpenAssistant Conversations v1 | 16,810 | 8,904 |
| Total | 1,035,846 | 109,456 |
Actual Training Statistics (subset split train_prefs[:32090]):
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM2-360M")
tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/SmolLM2-360M")
# Load adapter
model = PeftModel.from_pretrained(base_model, "Nishef/SmolLM2-360M-Full_ENHANCED_KTO_20251225_074953")
# Generate text
inputs = tokenizer("Hello, how are you?", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0]))
Enhanced KTO extends the standard KTO algorithm by incorporating additional components from Kahneman and Tversky's Prospect Theory:
Value Function: Standard KTO treats gains and losses symmetrically. Enhanced KTO applies an asymmetric value function where losses are weighted approximately 2x more than equivalent gains, reflecting the psychological phenomenon of loss aversion.
Probability Weighting: Instead of using raw model probabilities, Enhanced KTO applies a non-linear weighting function that overweights small probabilities and underweights large ones, as observed in human decision-making.
Odds Ratio: Borrowing from ORPO, the odds ratio component provides reference-free preference modeling, reducing memory requirements while maintaining alignment quality.
@misc{smollm2_360m_enhanced_kto_2025,
title = {SmolLM2-360M Fine-tuned with Enhanced KTO},
author = {Thesis Research},
year = {2025},
publisher = {HuggingFace},
note = {BCO Shift implemented but disabled for stability},
url = {https://huggingface.co/Nishef/SmolLM2-360M-Full_ENHANCED_KTO_20251225_074953}
}
Apache 2.0
This model was created as part of thesis research on LLM alignment using preference optimization methods.