Homework
Complete these tasks before Lesson 25. Tasks 1 and 2 require written analysis; Task 3 involves research. Budget approximately 60–90 minutes total.
Task 1: Decision Framework — Your Own Use Case
Goal: Apply the 5-question decision framework to a real task from your work or a personal project.
Instructions
Identify a task where you currently use (or would like to use) an LLM. It could be anything: generating reports, classifying tickets, writing documentation, answering user questions, producing structured data, etc.
Walk through the decision framework, answering each question explicitly:
- Does the base model understand the task? Test with a clear prompt. What happens?
- Is the output format/style acceptable? Where does it deviate from what you need?
- Does the model need external knowledge? Does the information exist in the model's training data, or does it need your documents?
- Do you have 500+ labelled examples? If not, how would you create them? What would each example look like?
- Is this a high-volume production task? Estimate calls per day. Would fine-tuning pay for itself?
Deliverable
A written analysis (300–500 words) structured around the 5 questions, ending with a clear recommendation: prompt engineering, RAG, fine-tuning, or a combination. Include your reasoning at each step.
Self-Check
- ✓ You answered all 5 framework questions with specific details about your use case.
- ✓ Your recommendation follows logically from your answers.
- ✓ You considered at least one alternative approach and explained why you ruled it out.
- ✓ You included a rough cost or volume estimate to support your recommendation.
Task 2: Fine-Tuning Proposal
Goal: Practice the planning process for a fine-tuning project, even if you ultimately decide not to fine-tune.
Instructions
Choose one of the following scenarios (or use your own from Task 1 if fine-tuning was your recommendation):
- Scenario X: A SaaS company wants all AI-generated help articles to match their documentation style: concise, second-person ("you"), always includes a code example, and ends with a "Next steps" section.
- Scenario Y: A financial services firm needs to generate risk assessment summaries that follow a strict 4-section template (Overview, Risk Factors, Mitigations, Rating) using industry-standard terminology.
Write a fine-tuning proposal that includes:
- Task description: What the model needs to do, what "success" looks like.
- Data plan: How many examples you need, how you would collect them, what each example looks like (write 2 sample input/output pairs).
- Approach selection: Which fine-tuning method (API-based, LoRA, QLoRA, full) and why.
- Cost estimate: Training cost, per-call inference cost, and break-even point at the expected volume.
- Risks: What could go wrong and how you would mitigate it.
Deliverable
A structured document (500–800 words) covering all 5 sections above. Include the 2 sample input/output pairs.
Self-Check
- ✓ Your proposal has all 5 sections.
- ✓ Your sample input/output pairs are realistic and clearly demonstrate the desired behaviour.
- ✓ Your cost estimate uses specific numbers (not "it would be cheap").
- ✓ You identified at least 2 risks with concrete mitigation strategies.
- ✓ A teammate could read your proposal and implement the project without further guidance.
Task 3: Provider Research
Goal: Familiarise yourself with one API-based fine-tuning provider so you can make informed choices in later lessons.
Instructions
Choose one of the following providers:
Research and summarise the following:
- Data format: What format does the training data need to be in? (JSONL, CSV, etc.) Show a 2-line example of the expected format.
- Supported models: Which base models can you fine-tune?
- Pricing: What does training cost? What does inference on the fine-tuned model cost? Is there a storage fee?
- Limitations: Maximum dataset size, maximum epochs, any restrictions on use cases?
- Unique features: Anything this provider offers that others do not (e.g., evaluation tools, hosted inference, model merging).
Deliverable
A summary (200–400 words) covering the 5 points above. Include the 2-line data format example as a code block.
Self-Check
- ✓ You covered all 5 research areas.
- ✓ Your data format example is valid (you could paste it into the provider's API).
- ✓ Pricing information includes both training and inference costs.
- ✓ You identified at least one unique feature or limitation that would affect your provider choice.
📥 Reference Solution
⬇ lab_answer.pySubmission
There is no formal submission for this course. These tasks are for your own development. However:
- Keep your Task 2 proposal — you will refine and implement it in Lessons 25–27.
- Your Task 3 research will inform your choice of provider when we do hands-on fine-tuning in Lesson 26.
- If working with a group, share your Task 1 analysis for peer discussion — different use cases will lead to different recommendations, and debating the edge cases is where the learning happens.
Next lesson: Lesson 25 — LoRA and QLoRA — hands-on parameter-efficient fine-tuning on open-source models.