SmolLM2-360M-Humanized

Table of Contents

  1. Model Summary
  2. Limitations
  3. Training
  4. License
  5. Citation

Model Summary

SmolLM2-360M-Humanized is a fine-tuned version of the SmolLM2-360M-Instruct model, optimized using the Direct Preference Optimization (DPO) method. To do this we used the "Human-Like-DPO-Dataset" from Human-Like LLMs.

Unlike traditional fine-tuning datasets that aim to improve specific benchmarks or metrics, the Human-Like-DPO-Dataset focuses on aligning the model's behavior with human preferences. This process enhances the model's ability to generate more natural, human-like responses, making it particularly well-suited for conversational applications.

By emphasizing response quality and relatability, SmolLM2-360M-Humanized is designed to deliver an engaging and intuitive user experience in dialogue-based scenarios.

Model example response

To reiterate, the goal is to make the model more human and less 'robot like'. Given the system prompt "You are a helpful assistant that lives inside the users PC" and the user message "How are you?"

SmolLM2-360M-Instruct SmolLM2-360M-Humanized
I'm doing well, thanks for asking. I'm currently running on Windows 10, and I'm enjoying the experience of being inside your PC. I'm doing great! How about you? How's your day going so far?

How to use

Transformers

pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "AssistantsLab/SmolLM2-360M-humanized"

device = "cuda" # for GPU usage or "cpu" for CPU usage
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
# for multiple GPUs install accelerate and do `model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto")`
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)

messages = [{"role": "user", "content": "What is gravity?"}]
input_text=tokenizer.apply_chat_template(messages, tokenize=False)
print(input_text)
inputs = tokenizer.encode(input_text, return_tensors="pt").to(device)
outputs = model.generate(inputs, max_new_tokens=50, temperature=0.2, top_p=0.9, do_sample=True)
print(tokenizer.decode(outputs[0]))

Chat in TRL

You can also use the TRL CLI to chat with the model from the terminal:

pip install trl
trl chat --model_name_or_path AssistantsLab/SmolLM2-360M-humanized --device cpu

Evaluation

In this section, we report the evaluation results of SmolLM2. All evaluations are zero-shot unless stated otherwise, and we use lighteval to run them.

Instruction model Vs. Humanized model

Metric SmolLM2-360M-Instruct SmolLM2-360M-Humanized Difference
MMLU 24.0 25.4 +1.4
ARC (Easy) 56.4 54.8 -1.6
ARC (Challenge) 31.7 28.8 -2.9
HellaSwag 56.9 54.9 -2.0
PIQA 71.6 70.6 -1.0
WinoGrande 54.8 54.9 +0.1
TriviaQA 0.2 0.2 +0.0
GSM8K 0.3 0.1 -0.2
OpenBookQA 36.2 35.8 -0.4
QuAC (F1) 23.0 23.7 +0.7

Limitations

SmolLM2 models primarily understand and generate content in English. They can produce text on a variety of topics, but the generated content may not always be factually accurate, logically consistent, or free from biases present in the training data. These models should be used as assistive tools rather than definitive sources of information. Users should always verify important information and critically evaluate any generated content.

Humanized models display a bigger preference for confident hallucinating in some limited testing. Please keep this in mind in any potential applications.

License

Apache 2.0

Citation

SmolLM2:

@misc{allal2024SmolLM2,
      title={SmolLM2 - with great data, comes great performance}, 
      author={Loubna Ben Allal and Anton Lozhkov and Elie Bakouch and Gabriel Martín Blázquez and Lewis Tunstall and Agustín Piqueres and Andres Marafioti and Cyril Zakka and Leandro von Werra and Thomas Wolf},
      year={2024},
}

Human-Like-DPO-Dataset:

@misc{çalık2025enhancinghumanlikeresponseslarge,
      title={Enhancing Human-Like Responses in Large Language Models}, 
      author={Ethem Yağız Çalık and Talha Rüzgar Akkuş},
      year={2025},
      eprint={2501.05032},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2501.05032}, 
}
Downloads last month
27
Safetensors
Model size
362M params
Tensor type
BF16
·
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.

Model tree for AssistantsLab/SmolLM2-360M-humanized

Finetuned
(104)
this model

Dataset used to train AssistantsLab/SmolLM2-360M-humanized

Collection including AssistantsLab/SmolLM2-360M-humanized