CoolFace
Modelpublic

activeDap/Llama-3.2-3B_hh_helpful

sourceHugging Faceapache-2.0updated 11mo agoView on Hugging Face
0likes11downloads
Model Card

Llama-3.2-3B Fine-tuned on sft-hh-data

This model is a fine-tuned version of meta-llama/Llama-3.2-3B on the activeDap/sft-hh-data dataset.

Training Results

[image]

Training Statistics

MetricValue
Total Steps19
Final Training Loss2.0897
Min Training Loss2.0897
Training Runtime11.40 seconds
Samples/Second105.45

Training Configuration

ParameterValue
Base Modelmeta-llama/Llama-3.2-3B
DatasetactiveDap/sft-hh-data
Number of Epochs1.0
Per Device Batch Size16
Gradient Accumulation Steps1
Total Batch Size64 (4 GPUs)
Learning Rate2e-05
LR Schedulercosine
Warmup Ratio0.1
Max Sequence Length512
Optimizeradamwtorchfused
Mixed PrecisionBF16

Usage

python
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "activeDap/Llama-3.2-3B_sft-hh-data"

tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)

# Format input with prompt template
prompt = "What is machine learning?\nAssistant:"
inputs = tokenizer(prompt, return_tensors="pt")

# Generate response
outputs = model.generate(**inputs, max_new_tokens=100)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)

Training Framework

  • —Library: Transformers + TRL
  • —Training Type: Supervised Fine-Tuning (SFT)
  • —Format: Prompt-completion with Assistant-only loss

Citation

If you use this model, please cite the original base model and dataset:

bibtex
@misc{ultrafeedback2023,
      title={UltraFeedback: Boosting Language Models with High-quality Feedback},
      author={Ganqu Cui and Lifan Yuan and Ning Ding and others},
      year={2023},
      eprint={2310.01377},
      archivePrefix={arXiv}
}