Views
No views yet

| Metric | Value |
|---|---|
| Total Steps | 910 |
| Final Training Loss | 1.7795 |
| Min Training Loss | 1.7795 |
| Training Runtime | 487.12 seconds |
| Samples/Second | 119.44 |
| Parameter | Value |
|---|---|
| Base Model | openai-community/gpt2-xl |
| Dataset | activeDap/ultrafeedback_chosen |
| Number of Epochs | 1.0 |
| Per Device Batch Size | 16 |
| Gradient Accumulation Steps | 1 |
| Total Batch Size | 64 (4 GPUs) |
| Learning Rate | 2e-05 |
| LR Scheduler | cosine |
| Warmup Ratio | 0.1 |
| Max Sequence Length | 512 |
| Optimizer | adamw_torch_fused |
| Mixed Precision | BF16 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "activeDap/gpt2-xl_ultrafeedback_chosen"
4
5tokenizer = AutoTokenizer.from_pretrained(model_name)
6model = AutoModelForCausalLM.from_pretrained(model_name)
7
8# Format input with prompt template
9prompt = "What is machine learning?\nAssistant:"
10inputs = tokenizer(prompt, return_tensors="pt")
11
12# Generate response
13outputs = model.generate(**inputs, max_new_tokens=100)
14response = tokenizer.decode(outputs[0], skip_special_tokens=True)
15print(response)1@misc{ultrafeedback2023,
2 title={UltraFeedback: Boosting Language Models with High-quality Feedback},
3 author={Ganqu Cui and Lifan Yuan and Ning Ding and others},
4 year={2023},
5 eprint={2310.01377},
6 archivePrefix={arXiv}
7}