Downloads · 30 days
9
2% of all-time downloads
AmirMohseni/SmolLM-360M-Instruct-finetuned-sft
SmolLM-360M-Instruct-finetuned-sft is a text generation model from AmirMohseni. 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.
This is a fine-tuned version of the SmolLM-360M model, optimized for instruction-following tasks. The model has been trained using the HelpSteer2 dataset to generate accurate, contextually appropriate, and helpful res…
Downloads · 30 days
9
2% of all-time downloads
All-time downloads
468
Public
Parameters
362M
2.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
SmolLM-360M-Instruct-finetuned-sftThis is a fine-tuned version of the SmolLM-360M model, optimized for instruction-following tasks. The model has been trained using the HelpSteer2 dataset to generate accurate, contextually appropriate, and helpful responses. The fine-tuning was performed on an NVIDIA A100 GPU, enabling efficient training.
The SmolLM-360M-Instruct-finetuned-sft model is a compact language model part of the SmolLM family, designed for computational efficiency and strong performance across various tasks. This specific version has been fine-tuned to excel at instruction-following scenarios, making it ideal for applications requiring clear and coherent responses based on detailed prompts.
The fine-tuning process was evaluated using the NVIDIA Nemotron-4-340B-Reward model, which assesses AI-generated responses on five key attributes: helpfulness, correctness, coherence, complexity, and verbosity. Based on this reward model, the fine-tuning resulted in the following performance boosts:
These results indicate that the fine-tuning process generally improved the model's ability to generate more helpful and correct responses, while making the outputs slightly less complex and verbose. The decrease in coherence is minimal, suggesting that the overall logical consistency of the responses remains strong.

The model can be directly used for generating coherent and contextually relevant responses to a wide range of prompts, particularly in scenarios where instruction-following is essential.
This model should not be used for tasks that require deep reasoning or extensive context beyond the given prompt. Additionally, it is not suitable for applications requiring highly specialized knowledge unless further fine-tuned on relevant data.
As with all language models, this model may reflect biases present in its training data. Users should exercise caution when deploying the model in sensitive contexts and should consider further fine-tuning or bias mitigation strategies if needed.
Use the code below to get started with the model:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "AmirMohseni/SmolLM-360M-Instruct-finetuned-sft"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example usage
prompt = "Explain the process of photosynthesis."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
The model was fine-tuned using the HelpSteer2 dataset, which consists of approximately 21,400 examples of instruction-based prompts and corresponding responses. The dataset is designed to enhance AI models' ability to generate helpful, correct, and coherent outputs.
The fine-tuning was performed using the following hyperparameters:
The model was evaluated using a validation subset of the HelpSteer2 dataset.
The model demonstrated a consistent decrease in both training and validation losses, indicating effective learning and good generalization.
Carbon emissions for the training process were minimal due to the efficient use of the NVIDIA A100 GPU, which allowed for rapid fine-tuning within an hour.