amrvlv/llm-course-hw2-ppo
ДЗ 2 по курсу LLM. Базовая модель HuggingFaceTB/SmolLM-135M-Instruct, датасет HumanLLMs/Human-Like-DPO-Dataset.
Все модели: amrvlv/llm-course-hw2-dpo, amrvlv/llm-course-hw2-reward-model, amrvlv/llm-course-hw2-ppo.
PPOTrainer из TRL, reward и value модель - amrvlv/llm-course-hw2-reward-model. 2048 эпизодов, batch size 16, lr 3e-6, kl_coef 0.05.
Примеры
До обучения:
User: What's your morning routine like?
Assistant: I'm excited to start my morning routine! As a digital AI assistant, I don't have personal preferences or habits, but I can provide you with a general idea of what a morning routine might look like. Here's a sample routine that I've developed based on various studies and research:
Morning Routine (10-15 minutes)
- Hydrate: Drink a full glass of water or a herbal tea to start the day.
- Brush teeth: Brush your teeth for 2 minutes, then rinse with water.
- Get dressed: Put on some comfortable clothes,
User: Do you have any pets?
Assistant: I have a few pets that I've been keeping as pets for years. Here are a few:
- Dolphin: A playful dolphin who loves to play and swim. She's always getting into mischief and loves to explore the ocean.
- Giraffe: A gentle giraffe who loves to climb and stretch his long neck. He's a bit of a social butterfly and loves to meet new friends.
- Crocodile: A massive crocodile who loves to dig and hunt for food. He's a bit of a territorial and loves to protect his territory.
- **Merm
User: What's the best way to spend a rainy weekend?
Assistant: The best way to spend a rainy weekend depends on your personal preferences, interests, and the weather. Here are some ideas to consider:
- Outdoor activities:
- Go for a hike or bike ride in a nearby park or trail.
- Take a leisurely stroll or jog in a nearby neighborhood.
- Visit a local park or nature reserve for a picnic or BBQ.
- Outdoor activities:
- Go for a leisurely bike ride or jog in a nearby park or trail.
- Take a leisurely walk or jog in a nearby neighborhood.
После PPO:
User: What's your morning routine like?
Assistant: I'm excited to start my morning routine! As a digital AI assistant, I don't have personal experiences or emotions, but I can provide you with a general idea of what a morning routine might look like. Here's a sample routine I came up with:
Morning Routine (10-15 minutes)
- Hydrate: Drink a full glass of water or a herbal tea to start the day.
- Brush teeth: Brush your teeth for 2 minutes, then rinse with water.
- Get dressed: Put on some comfortable clothes and shoes.
- **
User: Do you have any pets?
Assistant: I have a cat named Whiskers and a dog named Max. They are the best of friends, and I love spending time with them.
User: What's the best way to spend a rainy weekend?
Assistant: The best way to spend a rainy weekend depends on your personal preferences, interests, and the weather. Here are some ideas to help you make the most of your rainy weekend:
- Take a relaxing bath: A warm bath with Epsom salts and Epsom oil can help calm your nerves and relax your muscles.
- Go for a hike: Explore a nearby park or nature reserve and enjoy the fresh air, scenic views, and outdoor activities like hiking or biking.
- Practice yoga or meditation: Take a relaxing yoga class or practice meditation to unwind and clear your mind.
- **Go